CVE-2024-6232
Regular-expression DoS when parsing TarFile headers
Reported by psf · Published September 3, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| python3.11 | Amazon Linux | 3.11.6-1.amzn2023.0.4 |
| python3-devel | Amazon Linux | 3.9.20-1.amzn2023.0.2, 3.7.16-1.amzn2.0.8 |
| python3 | Amazon Linux | 3.9.20-1.amzn2023.0.2, 3.7.16-1.amzn2.0.8 |
| python-min | Bitnami | 3.12.6, 3.11.10, 3.10.15, 3.9.20, 3.8.20 |
| python3-tkinter | Amazon Linux | 3.9.20-1.amzn2023.0.2, 3.7.16-1.amzn2.0.8 |
| python-3.10 | Wolfi | 3.10.15-r0 |
| python-3.12 | Chainguard | 3.12.5-r3 |
| python3-idle | Amazon Linux | 3.9.20-1.amzn2023.0.2 |
| python3.11-tkinter | Amazon Linux | 3.11.6-1.amzn2023.0.4 |
| python-3.10 | Chainguard | 3.10.15-r0 |
| python3-libs | Amazon Linux | 3.9.20-1.amzn2023.0.2, 3.7.16-1.amzn2.0.8 |
| python3.11-idle | Amazon Linux | 3.11.6-1.amzn2023.0.4 |
37 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Python Software Foundation | CPython | 0, 3.9.0, 3.10.0 |
| amazon:2023 | python3.11 | 0 |
| amazon:2023 | python3-devel | 0 |
| amazon:2 | python3 | 0 |
| amazon:2 | python3-tkinter | 0 |
| wolfi | python-3.10 | 0 |
| chainguard | python-3.12 | 0 |
| amazon:2023 | python3-idle | 0 |
| amazon:2023 | python3.11-tkinter | 0 |
| chainguard | python-3.10 | 0 |
| amazon:2 | python3-libs | 0 |
| amazon:2023 | python3.11-idle | 0 |
| amazon:2023 | python3-libs | 0 |
| chainguard | python-3.8 | 0 |
| amazon:2023 | python-unversioned-command | 0 |
| amazon:2 | python3-devel | 0 |
| chainguard | python-3.13 | 0 |
| chainguard | python-3.11 | 0 |
| amazon:2 | python3-tools | 0 |
| amazon:2023 | python3.11-debug | 0 |
…and 16 more
Timeline
- Aug 31, 2024 Fix PR Merged
- Sep 3, 2024 CVE Published
- Sep 4, 2024 EPSS Score (30 in total, the first dated here)
- Oct 5, 2024 Coalition ESS Score (18 in total, the first dated here)
- Mar 17, 2026 Security Advisory (50 in total, the first dated here)
- Aug 10, 2026 Distribution Patch (36 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-6232
vulnetix vdb fixes CVE-2024-6232
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-6232/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- patch
- issue-tracking
- vendor-advisory
- patch
- patch
- patch
- patch
- patch
- patch
- patch
- 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 advisory