Vulnerability · Published Aug 19, 2024 · Assigned by PSF

CVE-2024-7592Quadratic complexity parsing cookies with backslashes

High 7.5

In plain English

A high-severity uncontrolled resource consumption in CPython from Python Software Foundation. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 2.3% (higher than 83% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)2.3%top 16.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:9python3.113.11.9-7.el9_5.3ALSA-2025:3634
AlmaLinux:9python3.11-debug3.11.9-7.el9_5.3ALSA-2025:3634
AlmaLinux:9python3.11-devel3.11.9-7.el9_5.3ALSA-2025:3634
AlmaLinux:9python3.11-idle3.11.9-7.el9_5.3ALSA-2025:3634
AlmaLinux:9python3.11-libs3.11.9-7.el9_5.3ALSA-2025:3634
AlmaLinux:9python3.11-test3.11.9-7.el9_5.3ALSA-2025:3634
AlmaLinux:9python3.11-tkinter3.11.9-7.el9_5.3ALSA-2025:3634
AlmaLinux:9python3.123.12.5-2.el9_5.3ALSA-2025:3631
AlmaLinux:9python3.12-debug3.12.5-2.el9_5.3ALSA-2025:3631
AlmaLinux:9python3.12-devel3.12.5-2.el9_5.3ALSA-2025:3631
AlmaLinux:9python3.12-idle3.12.5-2.el9_5.3ALSA-2025:3631
AlmaLinux:9python3.12-libs3.12.5-2.el9_5.3ALSA-2025:3631
AlmaLinux:9python3.12-test3.12.5-2.el9_5.3ALSA-2025:3631
AlmaLinux:9python3.12-tkinter3.12.5-2.el9_5.3ALSA-2025:3631
Alpine:v3.20py3-tornado6.4.2-r0ALPINE-CVE-2024-7592
Alpine:v3.20python33.12.6-r0ALPINE-CVE-2024-7592
Alpine:v3.21python33.12.6-r0ALPINE-CVE-2024-7592
Alpine:v3.22python33.12.6-r0ALPINE-CVE-2024-7592
Alpine:v3.23python33.12.6-r0ALPINE-CVE-2024-7592
Alpine:v3.24python33.12.6-r0ALPINE-CVE-2024-7592
Debian:12pypy3no fix listedDEBIAN-CVE-2024-7592
Debian:13pypy37.3.18+dfsg-1DEBIAN-CVE-2024-7592
Debian:14pypy37.3.18+dfsg-1DEBIAN-CVE-2024-7592
Debian:12python3.113.11.2-6+deb12u5DEBIAN-CVE-2024-7592
Debian:13python3.133.13.0~rc2-1DEBIAN-CVE-2024-7592
Rocky Linux:9python3.110:3.11.9-7.el9_5.3RLSA-2025:3634
Rocky Linux:9python3.120:3.12.5-2.el9_5.3RLSA-2025:3631
Ubuntu:22.04:LTSpython3.103.10.12-1~22.04.6USN-7015-1
Ubuntu:22.04:LTSpython3.103.10.12-1~22.04.6UBUNTU-CVE-2024-7592
Ubuntu:24.04:LTSpython3.123.12.3-1ubuntu0.2USN-7015-1
Ubuntu:24.04:LTSpython3.123.12.3-1ubuntu0.2UBUNTU-CVE-2024-7592

Affected products (as reported)

VendorProductVersions
Python Software Foundation CPython 0 – before 3.8.203.9.0 – before 3.9.203.10.0 – before 3.10.153.11.0 – before 3.11.103.12.0 – before 3.12.63.13.0a1 – before 3.13.0rc2

Weakness: CWE-400 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References