CVE-2025-8194
Tarfile infinite loop during parsing with negative member offset
Reported by psf · Published July 28, 2025
There is a defect in the CPython “tarfile” module affecting the “TarFile” extraction and entry enumeration APIs. The tar implementation would process tar archives with negative offsets without error, resulting in an infinite loop and deadlock during the parsing of maliciously crafted tar archives. This vulnerability can be mitigated by including the following patch after importing the “tarfile” module: https://gist.github.com/sethmlarson/1716ac5b82b73dbcbf23ad2eff8b33e1
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-test | errata.rockylinux.org | 3.6.8-71.el8 |
| python-3.13 | Wolfi | 3.13.6-r0 |
| tkinter | Amazon Linux | 2.7.18-1.amzn2.0.14 |
| python3.13-debug | Amazon Linux | 3.13.3-3.amzn2023.0.6 |
| python3-idle | errata.rockylinux.org | 3.6.8-71.el8 |
| python-min | Bitnami | 3.13.6, 3.12.12, 3.11.14, 3.10.19, 3.9.24 |
| python3.12-devel | Amazon Linux | 3.12.11-2.amzn2023.0.2 |
| python3-idle | Amazon Linux | 3.9.23-1.amzn2023.0.3 |
| platform-python-devel | errata.rockylinux.org | 3.6.8-71.el8 |
| python3 | errata.rockylinux.org | 3.6.8-71.el8 |
| python-libs | Amazon Linux | 2.7.18-1.amzn2.0.14 |
| python3.11-test | Amazon Linux | 3.11.13-1.amzn2023.0.3 |
64 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Python Software Foundation | CPython | 0, 3.10.0, 3.11.0 |
| wolfi | python-3.13 | 0 |
| amazon:2 | tkinter | 0 |
| amazon:2023 | python3.13-debug | 0 |
| amazon:2023 | python3.12-devel | 0 |
| amazon:2023 | python3-idle | 0 |
| amazon:2 | python-libs | 0 |
| amazon:2023 | python3.11-test | 0 |
| amazon:2 | python3-test | 0 |
| amazon:2023 | python3-libs | 0 |
| wolfi | python-3.12 | 0 |
| amazon:2 | python3-libs | 0 |
| chainguard | python-3.13 | 0 |
| amazon:2023 | python3.11 | 0 |
| amazon:2023 | python3.13-tkinter | 0 |
| amazon:2 | python-test | 0 |
| amazon:2023 | python3.12-tkinter | 0 |
| amazon:2023 | python3.11-idle | 0 |
| amazon:2023 | python3.13 | 0 |
| amazon:2023 | python-unversioned-command | 0 |
…and 36 more
Timeline
- Jul 28, 2025 CVE Published
- Jul 29, 2025 EPSS Score (30 in total, the first dated here)
- Nov 9, 2025 CVE Updated
- Mar 17, 2026 Security Advisory (47 in total, the first dated here)
- Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
- May 22, 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-2025-8194
vulnetix vdb fixes CVE-2025-8194
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-2025-8194/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- issue-tracking
- patch
- vendor-advisory
- patch
- patch
- mitigation
- patch
- patch
- patch
- patch
- patch
- http://www.openwall.com/lists/oss-security/2025/07/28/2 url
- http://www.openwall.com/lists/oss-security/2025/07/28/1 url