cve.bz

CVE-2024-7592 python python: Uncontrolled Resource Consumption

7.5 highExploit referenceEPSS 2.3%Fix available

High (7.5) in python python. EPSS 2.3% estimated probability of exploitation activity in the next 30 days.

On this page
There is a LOW severity vulnerability affecting CPython, specifically the 'http.cookies' standard library module. When parsing cookies that contained backslashes for quoted characters in the cookie value, the parser would use an algorithm with quadratic complexity, resulting in excess CPU resources being used while parsing the value.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
2.3% (unchanged from 2.3% a week ago; 2.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 84th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2024-09-03. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-1333 Inefficient Regular Expression Complexity
CWE-400 Uncontrolled Resource Consumption
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-7592 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-7592?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-7592?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-7592 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Python Software Foundation CPythonbefore 3.8.20
Python Software Foundation CPythonfrom 3.9.0 before 3.9.20
Python Software Foundation CPythonfrom 3.10.0 before 3.10.15
Python Software Foundation CPythonfrom 3.11.0 before 3.11.10
Python Software Foundation CPythonfrom 3.12.0 before 3.12.6
Python Software Foundation CPythonfrom 3.13.0a1 before 3.13.0rc2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11pypy37.3.5+dfsg-2+deb11u5DLA-4354-1
Debian11python3.93.9.2-1+deb11u2DLA-3980-1
Debian12pypy3no fix listedDEBIAN-CVE-2024-7592
Debian12python3.113.11.2-6+deb12u5DEBIAN-CVE-2024-7592
Debian13python3.133.13.0~rc2-1DEBIAN-CVE-2024-7592
Debian13, 14pypy37.3.18+dfsg-1DEBIAN-CVE-2024-7592
Ubuntu20.04:LTSpython3.83.8.10-0ubuntu1~20.04.12UBUNTU-CVE-2024-7592 USN-7015-1
Ubuntu22.04:LTSpython3.103.10.12-1~22.04.6UBUNTU-CVE-2024-7592 USN-7015-1
Ubuntu24.04:LTSpython3.123.12.3-1ubuntu0.2UBUNTU-CVE-2024-7592 USN-7015-1
UbuntuPro:14.04:LTSpython2.72.7.6-8ubuntu0.6+esm20UBUNTU-CVE-2024-7592
UbuntuPro:14.04:LTSpython3.4no fix listedUBUNTU-CVE-2024-7592
UbuntuPro:14.04:LTSpython3.53.5.2-2ubuntu0~16.04.4~14.04.1+esm3UBUNTU-CVE-2024-7592
UbuntuPro:16.04:LTSpython2.72.7.12-1ubuntu0~16.04.18+esm10UBUNTU-CVE-2024-7592 USN-7015-2
UbuntuPro:16.04:LTSpython3.53.5.2-2ubuntu0~16.04.13+esm14UBUNTU-CVE-2024-7592 USN-7015-2
UbuntuPro:18.04:LTSpython2.72.7.17-1~18.04ubuntu1.13+esm5UBUNTU-CVE-2024-7592 USN-7015-2
UbuntuPro:18.04:LTSpython3.6, python3.7, python3.8no fix listedUBUNTU-CVE-2024-7592
UbuntuPro:20.04:LTSpython2.72.7.18-1~20.04.4+esm2UBUNTU-CVE-2024-7592 USN-7015-2
UbuntuPro:20.04:LTSpython3.9no fix listedUBUNTU-CVE-2024-7592
2 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:9::appstreampython3-devel, python3-tkinter, python3.9-debuginfo and 2 more0:3.9.21-1.el9_5RHSA-2024:10983
Red Hatenterprise_linux:9::appstreampython3.11, python3.11-libs, python3.11-devel and 3 more0:3.11.9-7.el9_5.3RHSA-2025:3634
Red Hatenterprise_linux:9::appstreampython3.12, python3.12-libs, python3.12-devel and 3 more0:3.12.5-2.el9_5.3RHSA-2025:3631
Red Hatenterprise_linux:9::baseospython3, python3.9, python3-libs and 2 more0:3.9.21-1.el9_5RHSA-2024:10983
Red Hatenterprise_linux:9::crbpython3, python3-idle, python3-test and 4 more0:3.9.21-1.el9_5RHSA-2024:10983
Red Hatenterprise_linux:9::crbpython3.11, python3.11-idle, python3.11-test and 4 more0:3.11.9-7.el9_5.3RHSA-2025:3634
Red Hatenterprise_linux:9::crbpython3.12, python3.12-idle, python3.12-test and 4 more0:3.12.5-2.el9_5.3RHSA-2025:3631
SUSEEL-9:Update:Products:SaltBundle:Updatesaltbundlepy, saltbundlepy-core3.11.9-1.26.1SUSE-SU-2024:4029-1
SUSEEL-9:Update:Products:SaltBundle:Updatesaltbundlepy-cryptography3.3.2-1.18.1SUSE-SU-2024:4029-1
SUSEEL-9:Update:Products:SaltBundle:Updatesaltbundlepy-docker7.0.0-1.8.1SUSE-SU-2024:4029-1
SUSEEL-9:Update:Products:SaltBundle:Updatesaltbundlepy-idna3.4-1.9.2SUSE-SU-2024:4029-1
SUSEEL-9:Update:Products:SaltBundle:Updatesaltbundlepy-passlib, saltbundlepy-passlib-test1.7.4-1.3.1SUSE-SU-2024:4029-1
SUSEEL-9:Update:Products:SaltBundle:Updatesaltbundlepy-setuptools67.7.2-1.12.1SUSE-SU-2024:4029-1
SUSEEL-9:Update:Products:SaltBundle:Updatesaltbundlepy-urllib32.0.7-1.12.1SUSE-SU-2024:4029-1
SUSEEL-9:Update:Products:SaltBundle:Updatesaltbundlepy-zipp3.15.0-1.9.2SUSE-SU-2024:4029-1
SUSEEL-9:Update:Products:SaltBundle:Update, Manager Client Tools for RHEL, Liberty and Clones 9-CLIENT-TOOLSvenv-salt-minion3006.0-1.47.1SUSE-SU-2024:4029-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 13 morepython3, python3-core3.6.15-150300.10.72.1SUSE-SU-2024:3470-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise Module for Legacy 15 SP5 and 2 morepython39, python39-core3.9.20-150300.4.52.1SUSE-SU-2024:3411-1
SUSELinux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise Micro 5.1, Linux Enterprise Server 15 SP2-LTSS and 1 morepython3, python3-core3.6.15-150000.3.155.2SUSE-SU-2024:3302-1
18 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.5python311, python311-core, python311-documentation3.11.10-150400.9.35.1SUSE-SU-2024:3418-1
openSUSELeap 15.5, Leap 15.6python3, python3-core, python3-documentation3.6.15-150300.10.72.1SUSE-SU-2024:3470-1
openSUSELeap 15.5, Leap 15.6python310, python310-core, python310-documentation3.10.15-150400.4.57.1SUSE-SU-2024:3357-1
openSUSELeap 15.5, Leap 15.6python39, python39-core, python39-documentation3.9.20-150300.4.52.1SUSE-SU-2024:3411-1
openSUSELeap 15.6python, python-doc, python-base2.7.18-150000.105.1SUSE-SU-2026:0774-1
openSUSELeap 15.6python311, python311-core, python311-documentation3.11.10-150600.3.6.1SUSE-SU-2024:3427-1
openSUSELeap 15.6python312, python312-core, python312-documentation3.12.6-150600.3.6.1SUSE-SU-2024:3303-1
openSUSELeap Micro 5.5python3, python3-core3.6.15-150300.10.72.1SUSE-SU-2024:3470-1
openSUSETumbleweedpython3103.10.15-1.1openSUSE-SU-2024:14345-1
openSUSETumbleweedpython3113.11.9-7.1openSUSE-SU-2024:14346-1
openSUSETumbleweedpython3123.12.6-1.1openSUSE-SU-2024:14370-1
openSUSETumbleweedpython3133.13.0~rc2-1.1openSUSE-SU-2024:14326-1
3 more for openSUSE in the JSON and on openSUSE's page.
AlmaLinux9python3.11, python3.11-idle, python3.11-libs and 4 more3.11.9-7.el9_5.3ALSA-2025:3634
AlmaLinux9python3.12, python3.12-idle, python3.12-libs and 4 more3.12.5-2.el9_5.3ALSA-2025:3631
Rocky Linux9python3.110:3.11.9-7.el9_5.3RLSA-2025:3634
Rocky Linux9python3.120:3.12.5-2.el9_5.3RLSA-2025:3631
Alpinev3.17python33.10.15-r0ALPINE-CVE-2024-7592
Alpinev3.18, v3.19python33.11.10-r0ALPINE-CVE-2024-7592
Alpinev3.20py3-tornado6.4.2-r0ALPINE-CVE-2024-7592
Alpinev3.20, v3.21, v3.22 and 2 morepython33.12.6-r0ALPINE-CVE-2024-7592
Azure Linux2python33.9.19-4AZL-47860
Azure Linux3python-pyno fix listedAZL-109674
Azure Linux3python33.12.3-2AZL-47865
Azure Linux3tensorflow2.16.1-6AZL-48036
Alpaquita23python33.11.10-r1BELL-CVE-2024-7592
Alpaquitastreampy3-tornado6.4.2-r0BELL-CVE-2024-7592
Alpaquitastreampython33.12.6-r0BELL-CVE-2024-7592
BellSoft Hardened Containers23python33.11.10-r1BELL-CVE-2024-7592
BellSoft Hardened Containersstreampython33.12.6-r0BELL-CVE-2024-7592

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Low.

Red Hat's statement

This vulnerability is classified as low severity, as also marked by upstream Python, because while it can cause excessive CPU usage, its exploitability is constrained by practical factors. Most production environments enforce request size limits (e.g., via web servers like Nginx or Apache), preventing attackers from sending arbitrarily large cookies.

Additionally, the impact is localized to individual requests, meaning it does not persistently degrade system performance or lead to remote code execution (RCE). The attack requires multiple large requests to have a significant effect, making it inefficient compared to more severe denial-of-service (DoS) vectors.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 9python3.9-0:3.9.21-1.el9_5Fixed 2024-12-12RHSA-2024:10983
Red Hat Enterprise Linux 9python3.12-0:3.12.5-2.el9_5.3Fixed 2025-04-07RHSA-2025:3631
Red Hat Enterprise Linux 9python3.11-0:3.11.9-7.el9_5.3Fixed 2025-04-07RHSA-2025:3634
Red Hat Enterprise Linux 10python3.12Fix deferred
Red Hat Enterprise Linux 6pythonFix deferred
Red Hat Enterprise Linux 7pythonFix deferred
Red Hat Enterprise Linux 7python3Fix deferred
Red Hat Enterprise Linux 8gimp:flatpak/python2Fix deferred
Red Hat Enterprise Linux 8python3Fix deferred
Red Hat Enterprise Linux 8python3.11Fix deferred
Red Hat Enterprise Linux 8python3.12Fix deferred
Red Hat Enterprise Linux 8python36:3.6/python36Fix deferred
Red Hat Enterprise Linux 8python39:3.9/python39Fix deferred
Red Hat Enterprise Linux 8python39-devel:3.9/python39Fix deferred
Red Hat Enterprise Linux AI (RHEL AI)rhelai1/bootc-nvidia-rhel9Fix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-7592.

Attack patterns (CAPEC)

  • CAPEC-492 Regular Expression Exponential Blowup
  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON