High severity · published Sep 3, 2024
CVE-2024-6232
Regular-expression DoS when parsing TarFile headers
7.5
CVSS
2.2%
EPSS
No
On KEV
Description
There is a MEDIUM severity vulnerability affecting CPython.
Regular expressions that allowed excessive backtracking during tarfile.TarFile header parsing are vulnerable to ReDoS via specifically-crafted tar archives.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)2.2% · higher than 82% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CP
CPython · Python Software Foundation
before 3.8.20; 3.9.0 before 3.9.20; 3.10.0 before 3.10.15; 3.11.0 before 3.11.10; 3.12.0 before 3.12.6; 3.13.0a1 before 3.13.0rc2 · source: vendor, CISA
PY
Python · Python
before 3.8.20; 3.9.0 before 3.9.20; 3.10.0 before 3.10.15; 3.11.0 before 3.11.10; 3.12.0 before 3.12.6; 3.13.0; +11 more · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-6232
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-6232
Patch
https://github.com/python/cpython/commit/34ddb64d088dd7ccc321f6103d23153256caa5d4
Patch
https://github.com/python/cpython/commit/4eaf4891c12589e3c7bdad5f5b076e4c8392dd06
Patch
https://github.com/python/cpython/commit/743acbe872485dc18df4d8ab2dc7895187f062c4
Patch
https://github.com/python/cpython/commit/7d1f50cd92ff7e10a1c15a8f591dde8a6843a64d
Patch
https://github.com/python/cpython/commit/b4225ca91547aa97ed3aca391614afbb255bc877
Patch
https://github.com/python/cpython/commit/d449caf8a179e3b954268b3a88eb9170be3c8fbf
More from CPython
9.4
CVE-2026-115557
Distrust compromised intermediate certificates in ssl module
9.2
CVE-2026-19445
Use-after-free of a server-side SSLContext when sni_callback switches contexts
8.8
CVE-2026-3298
Out-of-bounds write in Windows asyncio.ProacterEventLoop.sock_recvfrom_into() when using nbytes
8.4
CVE-2026-82049
tarfile extraction filters allow file modification and content disclosure via hard link to symlink
8.2
CVE-2026-11972
tarfile opened in streaming mode mishandles EOF
