Vulnerabilities · 2024 · Python
CVE-2024-6232
Python vulnerability
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.
Affected products
Python. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Python runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- mail.python.org/archives/list/[email protected]/thread/JRYFTPRHZRTLMZLWQEUHZSJX · Vendor Advisory
- github.com/python/cpython/commit/34ddb64d088dd7ccc321f6103d23153256caa5d4 · Patch
- github.com/python/cpython/commit/4eaf4891c12589e3c7bdad5f5b076e4c8392dd06 · Patch
- github.com/python/cpython/commit/743acbe872485dc18df4d8ab2dc7895187f062c4 · Patch
- github.com/python/cpython/commit/7d1f50cd92ff7e10a1c15a8f591dde8a6843a64d · Patch
- github.com/python/cpython/commit/b4225ca91547aa97ed3aca391614afbb255bc877 · Patch
- github.com/python/cpython/commit/d449caf8a179e3b954268b3a88eb9170be3c8fbf · Patch
- github.com/python/cpython/commit/ed3a49ea734ada357ff4442996fd4ae71d253373 · Patch
- nvd.nist.gov/vuln/detail/CVE-2024-6232
- cve.org/CVERecord?id=CVE-2024-6232
More vulnerabilities in Python products
CVE-2026-21441CVE-2025-66471CVE-2025-66418CVE-2025-50182CVE-2025-50181CVE-2025-48379CVE-2025-47273CVE-2025-13837All 231
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.