{"id":"CVE-2024-6232","state":"PUBLISHED","title":"Regular-expression DoS when parsing TarFile headers","description":"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.","publishedAt":"2024-09-03T12:29:00.102Z","updatedAt":"2025-11-03T22:32:42.630Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CISA-ADP"},"assigner":"PSF","products":["Python Software Foundation CPython"],"affected":[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.8.20","versionType":"python"},{"version":"3.9.0","status":"affected","lessThan":"3.9.20","versionType":"python"},{"version":"3.10.0","status":"affected","lessThan":"3.10.15","versionType":"python"},{"version":"3.11.0","status":"affected","lessThan":"3.11.10","versionType":"python"},{"version":"3.12.0","status":"affected","lessThan":"3.12.6","versionType":"python"},{"version":"3.13.0a1","status":"affected","lessThan":"3.13.0rc2","versionType":"python"}],"repo":"https://github.com/python/cpython"}],"references":["https://github.com/python/cpython/pull/121286","https://github.com/python/cpython/issues/121285","https://mail.python.org/archives/list/security-announce@python.org/thread/JRYFTPRHZRTLMZLWQEUHZSJXNHM4ACTY/","https://github.com/python/cpython/commit/4eaf4891c12589e3c7bdad5f5b076e4c8392dd06","https://github.com/python/cpython/commit/743acbe872485dc18df4d8ab2dc7895187f062c4","https://github.com/python/cpython/commit/d449caf8a179e3b954268b3a88eb9170be3c8fbf","https://github.com/python/cpython/commit/ed3a49ea734ada357ff4442996fd4ae71d253373","https://github.com/python/cpython/commit/7d1f50cd92ff7e10a1c15a8f591dde8a6843a64d","https://github.com/python/cpython/commit/b4225ca91547aa97ed3aca391614afbb255bc877","https://github.com/python/cpython/commit/34ddb64d088dd7ccc321f6103d23153256caa5d4","http://www.openwall.com/lists/oss-security/2024/09/03/5","https://security.netapp.com/advisory/ntap-20241018-0007/","https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html"],"weaknesses":["CWE-1333"],"ingestedAt":"2026-10-29T20:08:12.933Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/6xxx/CVE-2024-6232.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-6232","state":"PUBLISHED","datePublished":"2024-09-03T12:29:00.102Z","dateUpdated":"2025-11-03T22:32:42.630Z","assignerShortName":"PSF","assignerOrgId":"28c92f92-d60d-412d-b760-e73465c3df22","dateReserved":"2024-06-20T21:01:55.524Z"},"containers":{"cna":{"title":"Regular-expression DoS when parsing TarFile headers","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Python Software Foundation","product":"CPython","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"3.8.20","versionType":"python"},{"version":"3.9.0","status":"affected","lessThan":"3.9.20","versionType":"python"},{"version":"3.10.0","status":"affected","lessThan":"3.10.15","versionType":"python"},{"version":"3.11.0","status":"affected","lessThan":"3.11.10","versionType":"python"},{"version":"3.12.0","status":"affected","lessThan":"3.12.6","versionType":"python"},{"version":"3.13.0a1","status":"affected","lessThan":"3.13.0rc2","versionType":"python"}],"repo":"https://github.com/python/cpython"}],"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"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-1333","description":"CWE-1333 Inefficient Regular Expression Complexity","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"PSF","orgId":"28c92f92-d60d-412d-b760-e73465c3df22","dateUpdated":"2025-01-31T19:54:59.572Z"},"credits":[{"lang":"en","type":"reporter","value":"Elias Joakim Myllymäki"},{"lang":"en","type":"coordinator","value":"Seth Larson"},{"lang":"en","type":"remediation developer","value":"Seth Larson"},{"lang":"en","type":"remediation reviewer","value":"Gregory P. Smith"}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"python","product":"cpython","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"3.8.20","versionType":"custom"},{"version":"3.9.0","status":"affected","lessThan":"3.9.20","versionType":"custom"},{"version":"3.10.0","status":"affected","lessThan":"3.10.15","versionType":"custom"},{"version":"3.11.0","status":"affected","lessThan":"3.11.10","versionType":"custom"},{"version":"3.12.0","status":"affected","lessThan":"3.12.6","versionType":"custom"},{"version":"3.13.0a1","status":"affected","lessThan":"3.13.0rc2","versionType":"custom"}],"cpes":["cpe:2.3:a:python:cpython:*:*:*:*:*:*:*:*"]}],"metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.5,"attackVector":"NETWORK","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"timestamp":"2024-12-04T15:24:31.176254Z","id":"CVE-2024-6232","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-03-20T18:02:26.275Z"}},{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2024/09/03/5"},{"url":"https://security.netapp.com/advisory/ntap-20241018-0007/"},{"url":"https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T22:32:42.630Z"}}]}}}