Vulnerability in Python
CVE-2024-6232
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.
Vulnerability class: ReDoS (Regular Expression Denial of Service)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS: 0.022 (81.9th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 82nd percentile — 81.9% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.022 · newest: 0.022 · change: 0.000
Affected products
- Python — versions 3.13.0
- Python Software Foundation Cpython — versions 0, 3.9.0, 3.10.0
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/python/cpython/pull/121286 (Patch, patch, Issue Tracking)
- github.com/python/cpython/issues/121285 (issue-tracking, Exploit, Patch, Issue Tracking)
- mail.python.org/archives/list/security-announce@python.org/thread/JRYFTPRHZRTLM… (vendor-advisory, Vendor Advisory)
- github.com/python/cpython/commit/4eaf4891c12589e3c7bdad5f5b076e4c8392dd06 (Patch, patch)
- github.com/python/cpython/commit/743acbe872485dc18df4d8ab2dc7895187f062c4 (Patch, patch)
- github.com/python/cpython/commit/d449caf8a179e3b954268b3a88eb9170be3c8fbf (Patch, patch)
- github.com/python/cpython/commit/ed3a49ea734ada357ff4442996fd4ae71d253373 (Patch, patch)
- github.com/python/cpython/commit/7d1f50cd92ff7e10a1c15a8f591dde8a6843a64d (Patch, patch)
- github.com/python/cpython/commit/b4225ca91547aa97ed3aca391614afbb255bc877 (Patch, patch)
- github.com/python/cpython/commit/34ddb64d088dd7ccc321f6103d23153256caa5d4 (Patch, patch)
Frequently asked questions
- What is CVE-2024-6232?
- CVE-2024-6232 is a high-severity vulnerability in Python, classified under Inefficient Regular Expression Complexity. CVSS score: 7.5/10. Published 2024-09-03.
- How severe is CVE-2024-6232?
- High severity. CVSS v3 base score is 7.5 out of 10.
- Is CVE-2024-6232 known to be exploited?
- 5 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.