CVE-2025-8194
Tarfile infinite loop during parsing with negative member offset
CVSS v3
7.5
HIGH
EPSS Score
0.7 %
exploit probability, as of 2026-10-12
CISA KEV
No
known exploited
Exploitation
none
SSVC status
Get an alert for each new CVE published for cpython. Watch cpython in CVE Watch Free account · no credit card
Affected and fixed versions
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- pythonBitnamiall versions · fixed in 3.9.24and 2 other packages
- platform-pythonAlmaLinux:8all versions · fixed in 3.6.8-71.el8_10.alma.1and 6 other packages
- python-unversioned-commandAlmaLinux:10all versions · fixed in 3.12.9-2.el10_0.3
- python3AlmaLinux:9all versions · fixed in 3.9.21-2.el9_6.2and 7 other packages
- python3.11AlmaLinux:9all versions · fixed in 3.11.11-2.el9_6.2and 6 other packages
- python3.11AlmaLinux:8all versions · fixed in 3.11.13-2.el8_10and 7 other packages
- python3.12AlmaLinux:9all versions · fixed in 3.12.9-1.el9_6.2and 6 other packages
- python3.12AlmaLinux:8all versions · fixed in 3.12.11-2.el8_10and 7 other packages
36 more package ranges on OSV.dev
Vendor advisories
cpython: Cpython infinite loop when parsing a tarfile
python-PyMySQL.src (python36:3.6) as a component of Red Hat Enterprise Linux 8 · python-distro.src (python36:3.6) as a component of Red Hat Enterprise Linux 8 · python-docs.src (python36:3.6) as a component of Red Hat Enterprise Linux 8
Red Hat Security Advisory: Red Hat Enterprise Linux AI 1.5 (NVIDIA)
Red Hat Security Advisory: Red Hat Enterprise Linux AI 1.5 (NVIDIA)
Red Hat Security Advisory: Red Hat Enterprise Linux AI 1.5 (NVIDIA)
Red Hat Security Advisory: Red Hat Enterprise Linux AI 1.5 (AMD)
Red Hat Security Advisory: Red Hat Enterprise Linux AI 1.5 (NVIDIA)
29 more advisories
Description
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
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Published
- 2025-07-28
- Last Modified
- 2026-04-15
Frequently asked questions
What is CVE-2025-8194?
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
Is CVE-2025-8194 actively exploited?
Active exploitation of CVE-2025-8194 has not been confirmed. Its EPSS score was 0.7% on 2026-10-12, the estimated probability of exploitation in the next 30 days.
What is the CVSS score for CVE-2025-8194?
CVE-2025-8194 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
Running cpython? Hear about its next vulnerability
CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.
Already have an account? Open CVE Watch
No credit card required · 50 free checks/month · Free API key
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? CVE Watch alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
- CVE-2023-24329same product
- CVE-2015-20107same product
- CVE-2022-45061same product
- CVE-2023-27043same product
- CVE-2022-40897same product
- CVE-2024-6232same product
- CVE-2025-47273same productsetuptools has a path traversal vulnerability in PackageIndex.download that leads to Arbitrary File Write
- CVE-2025-4517same product