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, 82.8th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Python — versions 3.13.0
- Python Software Foundation Cpython — versions 0, 3.9.0, 3.10.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- bgutowski/CVE-2025-4517-POC-Sudoers (last pushed 2026-02-18): Exploit for CVE-2024-6232 - Python Tarfile Realpath Overflow
Also mentioned in 4 other repositories (adegoodyer/kubernetes-admin-toolkit, fkie-cad/nvd-json-data-feeds, GitHubForSnap/matrix-commander-gael, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
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)
This CVE has public exploit evidence. See the latest CVEs with public exploits.