{"id":"CVE-2024-6232","published":"2024-09-03T12:29:00Z","modified":"2025-11-03T22:32:42Z","title":"Regular-expression DoS when parsing TarFile headers","vendor":"Python Software Foundation","product":"CPython","tier":"tail","description":{"text":"There is a MEDIUM severity vulnerability affecting CPython.\n\n\n\n\n\nRegular expressions that allowed excessive backtracking during tarfile.TarFile header parsing are vulnerable to ReDoS via specifically-crafted tar archives.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.02203,"percentile":0.82979,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://github.com/python/cpython/pull/121286","tags":["patch"]},{"url":"https://github.com/python/cpython/issues/121285","tags":["issue-tracking"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/JRYFTPRHZRTLMZLWQEUHZSJXNHM4ACTY/","tags":["vendor-advisory"]},{"url":"https://github.com/python/cpython/commit/4eaf4891c12589e3c7bdad5f5b076e4c8392dd06","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/743acbe872485dc18df4d8ab2dc7895187f062c4","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/d449caf8a179e3b954268b3a88eb9170be3c8fbf","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/ed3a49ea734ada357ff4442996fd4ae71d253373","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/7d1f50cd92ff7e10a1c15a8f591dde8a6843a64d","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/b4225ca91547aa97ed3aca391614afbb255bc877","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/34ddb64d088dd7ccc321f6103d23153256caa5d4","tags":["patch"]},{"url":"http://www.openwall.com/lists/oss-security/2024/09/03/5","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20241018-0007/","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html","tags":[]}],"priority":{"score":26.8,"factors":[{"name":"EPSS percentile","points":16.6},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.25}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-02-18","earliestUrl":"https://github.com/bgutowski/CVE-2025-4517-POC-Sudoers","repos":[{"name":"bgutowski/CVE-2025-4517-POC-Sudoers","url":"https://github.com/bgutowski/CVE-2025-4517-POC-Sudoers","stars":0,"created":"2026-02-18"}]},"first":{"date":"2026-02-18","source":"PoC-in-GitHub","url":"https://github.com/bgutowski/CVE-2025-4517-POC-Sudoers"},"provenance":"source"},"vendorSlug":"python-software-foundation","affectedVersions":[{"vendor":"Python Software Foundation","product":"CPython","versions":["< 3.8.20",">= 3.9.0, < 3.9.20",">= 3.10.0, < 3.10.15",">= 3.11.0, < 3.11.10",">= 3.12.0, < 3.12.6",">= 3.13.0a1, < 3.13.0rc2"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2024-12-04T15:24:31.176254Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-48018","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-python-software-foundation-cpython-cve-2024-6232","children":[{"from":"CVE-2024-6232","to":"CVE-2025-13462","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["Lib/tarfile.py"],"commits":["https://github.com/python/cpython/commit/4eaf4891c12589e3c7bdad5f5b076e4c8392dd06","https://github.com/python/cpython/commit/743acbe872485dc18df4d8ab2dc7895187f062c4","https://github.com/python/cpython/commit/42d754e34c06e57ad6b8e7f92f32af679912d8ab","https://github.com/python/cpython/commit/7ad3093d76a748af55bdb1d2e8aad3638163b017"],"basis":"shared function","functions":["_proc_pax"]}]}]}}