# CVE-2024-6232: Regular-expression DoS when parsing TarFile headers

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.20%, higher than 83% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-09-03T12:29:00.102Z
- Modified: 2026-09-22T11:25:37.088Z
- Also known as: PSF-2024-11, BIT-LIBPYTHON-2024-6232, BIT-PYTHON-2024-6232, BIT-PYTHON-MIN-2024-6232
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: PSF

## 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.

(As written by CVE List.)

## Affected

- Python Software Foundation CPython: before 3.8.20; from 3.9.0 before 3.9.20; from 3.10.0 before 3.10.15; from 3.11.0 before 3.11.10; from 3.12.0 before 3.12.6; from 3.13.0a1 before 3.13.0rc2
- python cpython: before 3.8.20; from 3.9.0 before 3.9.20; from 3.10.0 before 3.10.15; from 3.11.0 before 3.11.10; from 3.12.0 before 3.12.6; from 3.13.0a1 before 3.13.0rc2
- https://github.com/python/cpython: before 4eaf4891c12589e3c7bdad5f5b076e4c8392dd06; before 743acbe872485dc18df4d8ab2dc7895187f062c4; before d449caf8a179e3b954268b3a88eb9170be3c8fbf; before ed3a49ea734ada357ff4442996fd4ae71d253373; before 7d1f50cd92ff7e10a1c15a8f591dde8a6843a64d; before b4225ca91547aa97ed3aca391614afbb255bc877; before 34ddb64d088dd7ccc321f6103d23153256caa5d4
- python python: before 3.8.20; from 3.9.0 before 3.9.20; from 3.10.0 before 3.10.15; from 3.11.0 before 3.11.10; from 3.12.0 before 3.12.6; 3.13.0
- libpython (Bitnami): before 3.8.20; from 3.9.0 before 3.9.20; from 3.10.0 before 3.10.15; from 3.11.0 before 3.11.10; from 3.12.0 before 3.12.6
- python (Bitnami): before 3.8.20; from 3.9.0 before 3.9.20; from 3.10.0 before 3.10.15; from 3.11.0 before 3.11.10; from 3.12.0 before 3.12.6
- python-min (Bitnami): before 3.8.20; from 3.9.0 before 3.9.20; from 3.10.0 before 3.10.15; from 3.11.0 before 3.11.10; from 3.12.0 before 3.12.6

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/python/cpython/issues/121285> (exploit, fix, issue-tracking, patch, report)
- <https://github.com/python/cpython/pull/121286> (fix, issue-tracking, patch, web)
- <https://mail.python.org/archives/list/security-announce@python.org/thread/JRYFTPRHZRTLMZLWQEUHZSJXNHM4ACTY/> (advisory, vendor-advisory)
- <https://github.com/python/cpython/commit/4eaf4891c12589e3c7bdad5f5b076e4c8392dd06> (fix, patch)
- <https://github.com/python/cpython/commit/743acbe872485dc18df4d8ab2dc7895187f062c4> (fix, patch)
- <https://github.com/python/cpython/commit/d449caf8a179e3b954268b3a88eb9170be3c8fbf> (fix, patch)
- <https://github.com/python/cpython/commit/ed3a49ea734ada357ff4442996fd4ae71d253373> (fix, patch)
- <https://github.com/python/cpython/commit/7d1f50cd92ff7e10a1c15a8f591dde8a6843a64d> (fix, patch)
- <https://github.com/python/cpython/commit/b4225ca91547aa97ed3aca391614afbb255bc877> (fix, patch)
- <https://github.com/python/cpython/commit/34ddb64d088dd7ccc321f6103d23153256caa5d4> (fix, patch)
- <http://www.openwall.com/lists/oss-security/2024/09/03/5> (advisory, mailing-list, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20241018-0007/> (advisory, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-6232> (web)

## Sources

- CVE List: [CVE-2024-6232](https://www.cve.org/CVERecord?id=CVE-2024-6232), CVE Terms of Use, modified 2025-11-03
- Python Software Foundation: [PSF-2024-11](https://osv.dev/vulnerability/PSF-2024-11), CC-BY-4.0, modified 2026-09-22
- NVD: [CVE-2024-6232](https://nvd.nist.gov/vuln/detail/CVE-2024-6232), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-LIBPYTHON-2024-6232](https://osv.dev/vulnerability/BIT-LIBPYTHON-2024-6232), Apache-2.0, modified 2026-09-22
- Bitnami Vulnerability Database: [BIT-PYTHON-2024-6232](https://osv.dev/vulnerability/BIT-PYTHON-2024-6232), Apache-2.0, modified 2026-09-22
- Bitnami Vulnerability Database: [BIT-PYTHON-MIN-2024-6232](https://osv.dev/vulnerability/BIT-PYTHON-MIN-2024-6232), Apache-2.0, modified 2026-09-22

---

Page: https://cve.day/CVE-2024-6232 · Whole record: https://cve.day/CVE-2024-6232.json · Rebuilt by cve.day 2026-11-25T22:58:45.010Z
