CVE-2024-6232
published high CVSS 3.1 · 7.5Regular-expression DoS when parsing TarFile headers
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Python Software Foundation | — | CPython0 to < 3.8.20 · 3.9.0 to < 3.9.20 · 3.10.0 to < 3.10.15 · 3.11.0 to < 3.11.10 · 3.12.0 to < 3.12.6 · 3.13.0a1 to < 3.13.0rc2 · Other versions: unaffected | Affected | Not stated | PSF |
| python | — | cpython0 to < 3.8.20 · 3.9.0 to < 3.9.20 · 3.10.0 to < 3.10.15 · 3.11.0 to < 3.11.10 · 3.12.0 to < 3.12.6 · 3.13.0a1 to < 3.13.0rc2 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2-2024-2694 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2PYTHON3.8-2024-016 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2024-757 | Fixed | Not stated | Amazon Linux assessment |
Show 1 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | Release evaluationALAS2023-2024-790 | Fixed | Not stated | Amazon Linux assessment |
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.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Python Software Foundation | CPython | 0 to < 3.8.20 (affected · python)3.9.0 to < 3.9.20 (affected · python)3.10.0 to < 3.10.15 (affected · python)3.11.0 to < 3.11.10 (affected · python)3.12.0 to < 3.12.6 (affected · python)3.13.0a1 to < 3.13.0rc2 (affected · python)Default: unaffected | PSF · cna |
| python | cpython | 0 to < 3.8.20 (affected · custom)3.9.0 to < 3.9.20 (affected · custom)3.10.0 to < 3.10.15 (affected · custom)3.11.0 to < 3.11.10 (affected · custom)3.12.0 to < 3.12.6 (affected · custom)3.13.0a1 to < 3.13.0rc2 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-1333 CWE-1333 Inefficient Regular Expression Complexity
References
13- http://www.openwall.com/lists/oss-security/2024/09/03/5
- https://github.com/python/cpython/commit/34ddb64d088dd7ccc321f6103d23153256caa5d4
- https://github.com/python/cpython/commit/4eaf4891c12589e3c7bdad5f5b076e4c8392dd06
- https://github.com/python/cpython/commit/743acbe872485dc18df4d8ab2dc7895187f062c4
- https://github.com/python/cpython/commit/7d1f50cd92ff7e10a1c15a8f591dde8a6843a64d
- https://github.com/python/cpython/commit/b4225ca91547aa97ed3aca391614afbb255bc877
- https://github.com/python/cpython/commit/d449caf8a179e3b954268b3a88eb9170be3c8fbf
- https://github.com/python/cpython/commit/ed3a49ea734ada357ff4442996fd4ae71d253373
- https://github.com/python/cpython/issues/121285
- https://github.com/python/cpython/pull/121286
- https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html
- https://mail.python.org/archives/list/[email protected]/thread/JRYFTPRHZRTLMZLWQEUHZSJXNHM4ACTY/
- https://security.netapp.com/advisory/ntap-20241018-0007/
Provider assertions
3PSF · cna
Regular-expression DoS when parsing TarFile headers
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 314c7580b22fa0af1ea9b09c2dc278eb7efcc68a7b5f9787b5f6e522ed334aa3
- Ingested
- 23 Sep 2026, 08:33:03 UTC
- Source record
- Official CVE record