Skip to content
Fencer Vulns
high 7.5

CVE-2024-7592 json

Quadratic complexity parsing cookies with backslashes

published 2024-08-19 2 y ago modified 2026-09-08 2 mo ago also BIT-libpython-2024-7592 , BIT-python-2024-7592 , BIT-python-min-2024-7592 , EUVD-2024-48488

cvss
7.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
2.3%
EPSS 2.3% chance of exploitation in 30 days, percentile 83%
public exploits
0
none known

Summary

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.

Patch / fix

  • bitnami libpython 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.6
  • bitnami python 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.6
  • bitnami python-min 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.6
  • Python Software Foundation CPython 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.6, 3.13.0rc2
  • python cpython 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.6, 3.13.0rc2
  • pypy3 Debian 14, Debian 13 7.3.18+dfsg-1
  • python3.11 Debian 12 3.11.2-6+deb12u5
  • python3.13 Debian 13 3.13.0~rc2-1

debian advisories DEBIAN-CVE-2024-7592

  • python3.8 Ubuntu 20.04 LTS 3.8.10-0ubuntu1~20.04.12
  • python3.10 Ubuntu 22.04 LTS 3.10.12-1~22.04.6
  • python3.12 Ubuntu 24.04 LTS 3.12.3-1ubuntu0.2
  • python2.7 Ubuntu Pro 14.04 LTS 2.7.6-8ubuntu0.6+esm20
  • python2.7 Ubuntu Pro 16.04 LTS 2.7.12-1ubuntu0~16.04.18+esm10
  • python2.7 Ubuntu Pro 18.04 LTS 2.7.17-1~18.04ubuntu1.13+esm5
  • python2.7 Ubuntu Pro 20.04 LTS 2.7.18-1~20.04.4+esm2
  • python2.7 Ubuntu Pro 22.04 LTS 2.7.18-13ubuntu1.2+esm2

ubuntu advisories UBUNTU-CVE-2024-7592

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • python3.12 RHEL 9 3.12.5-2.el9_5.3
  • python3.12-idle RHEL 9 3.12.5-2.el9_5.3
  • python3.12-libs RHEL 9 3.12.5-2.el9_5.3
  • python3.12-test RHEL 9 3.12.5-2.el9_5.3
  • python3.12-tkinter RHEL 9 3.12.5-2.el9_5.3
  • python3.11 RHEL 9 3.11.9-7.el9_5.3
  • python3.11-idle RHEL 9 3.11.9-7.el9_5.3
  • python3.11-libs RHEL 9 3.11.9-7.el9_5.3

red hat advisories RHSA-2025:3631RHSA-2025:3634RHSA-2024:10983

  • python SLE Module for Package Hub 15 SP7, openSUSE Leap 15.6 2.7.18-150000.105.1
  • python-base SLE Module for Package Hub 15 SP7, openSUSE Leap 15.6 2.7.18-150000.105.1
  • python311 Linux Micro 6.1 3.11.12-slfo.1.1_1.1
  • python311-core Linux Micro 6.1 3.11.12-slfo.1.1_1.1
  • python311 Linux Micro 6.0 3.11.11-1.1
  • python311-core Linux Micro 6.0 3.11.11-1.1
  • python311 Linux Micro 6.0 3.11.8-4.1
  • python311-core Linux Micro 6.0 3.11.8-4.1

suse advisories SUSE-SU-2026:0802-1SUSE-SU-2026:0774-1SUSE-SU-2025:20374-1SUSE-SU-2025:20154-1SUSE-SU-2025:20065-1SUSE-EL-9-CLIENT-TOOLS-2024-4029

  • python315 openSUSE Tumbleweed 3.15.0~a1-1.1
  • python314 openSUSE Tumbleweed 3.14.0~a1-1.1
  • python312 openSUSE Tumbleweed 3.12.6-1.1
  • python39 openSUSE Tumbleweed 3.9.20-2.1
  • python310 openSUSE Tumbleweed 3.10.15-1.1
  • python311 openSUSE Tumbleweed 3.11.9-7.1
  • python313 openSUSE Tumbleweed 3.13.0~rc2-1.1

opensuse advisories openSUSE-SU-2025:15713-1openSUSE-SU-2024:14434-1openSUSE-SU-2024:14370-1openSUSE-SU-2024:14352-1openSUSE-SU-2024:14345-1openSUSE-SU-2024:14346-1

  • python3.12 AlmaLinux 9 3.12.5-2.el9_5.3
  • python3.12-idle AlmaLinux 9 3.12.5-2.el9_5.3
  • python3.12-libs AlmaLinux 9 3.12.5-2.el9_5.3
  • python3.12-test AlmaLinux 9 3.12.5-2.el9_5.3
  • python3.12-tkinter AlmaLinux 9 3.12.5-2.el9_5.3
  • python3.11 AlmaLinux 9 3.11.9-7.el9_5.3
  • python3.11-idle AlmaLinux 9 3.11.9-7.el9_5.3
  • python3.11-libs AlmaLinux 9 3.11.9-7.el9_5.3

almalinux advisories ALSA-2025:3631ALSA-2025:3634

  • python3.12 Rocky Linux 9 3.12.5-2.el9_5.3
  • python3.11 Rocky Linux 9 3.11.9-7.el9_5.3

rocky linux advisories RLSA-2025:3631RLSA-2025:3634

  • python3 Alpine 3.17 3.10.15-r0
  • python3 Alpine 3.19, Alpine 3.18 3.11.10-r0
  • python3 Alpine 3.24, Alpine 3.23, Alpine 3.22 +2 more 3.12.6-r0
  • py3-tornado Alpine 3.20 6.4.2-r0

alpine advisories ALPINE-CVE-2024-7592

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • python3 CBL-Mariner 2.0 3.9.19-4
  • python3 Azure Linux 3.0 3.12.3-2
  • tensorflow Azure Linux 3.0 2.16.1-6

azure linux advisories AZL-47860AZL-47865AZL-48036

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-7592 updated cvss 4.8

cpython: python: Uncontrolled CPU resource consumption when in http.cookies module

  • Red Hat Enterprise Linux 6 python, tkinter, python-libs, python-test, python-tools Red Hat Enterprise Linux 7 python, python3, tkinter, python-libs, python-test, python-tools, +4 more Red Hat Enterprise Linux 8 numpy, scipy, PyYAML, python2, python3, mod_wsgi, +94 more Red Hat Enterprise Linux 10 python3.12 Red Hat Enterprise Linux AI (RHEL AI) bootc-nvidia-rhel9
    affected: workaround, no fix available “Fix deferred”
  • Red Hat CodeReady Linux Builder (v. 9) python3 3.9.21-1.el9_5, python3-idle 3.9.21-1.el9_5, python3-test 3.9.21-1.el9_5, python3.11 3.11.9-7.el9_5.3, python3.12 3.12.5-2.el9_5.3, python3-tkinter 3.9.21-1.el9_5, +6 more Red Hat Enterprise Linux AppStream (v. 9) python3.11 3.11.9-7.el9_5.3, python3.12 3.12.5-2.el9_5.3, python3-tkinter 3.9.21-1.el9_5, python3.11-libs 3.11.9-7.el9_5.3, python3.12-libs 3.12.5-2.el9_5.3, python3.11-tkinter 3.11.9-7.el9_5.3, +2 more Red Hat Enterprise Linux BaseOS (v. 9) python3 3.9.21-1.el9_5, python3.9 3.9.21-1.el9_5, python3-libs 3.9.21-1.el9_5
    fixed: vendor fix RHSA-2024:10983

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
yes
Technical impact
partial
Assessed
2 y ago

Exploit prediction

2.30% chance of exploitation in the next 30 days, higher than 83% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • github.com https://github.com/python/cpython/issues/123067 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CISA ADP 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CNA 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected packages

ecosystem package affected fixed in
bitnami libpython
<3.8.20
>=3.9.0, <3.9.20
>=3.10.0, <3.10.15
>=3.11.0, <3.11.10
>=3.12.0, <3.12.6
3.8.20
3.9.20
3.10.15
3.11.10
3.12.6
bitnami python
<3.8.20
>=3.9.0, <3.9.20
>=3.10.0, <3.10.15
>=3.11.0, <3.11.10
>=3.12.0, <3.12.6
3.8.20
3.9.20
3.10.15
3.11.10
3.12.6
bitnami python-min
<3.8.20
>=3.9.0, <3.9.20
>=3.10.0, <3.10.15
>=3.11.0, <3.11.10
>=3.12.0, <3.12.6
3.8.20
3.9.20
3.10.15
3.11.10
3.12.6

Affected products

  • Python Software Foundation CPython
  • python cpython

Classification

Weakness
  • CWE-400 Uncontrolled Resource Consumption
  • CWE-1333 Inefficient Regular Expression Complexity

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.