CVE-2025-8194Tarfile infinite loop during parsing with negative member offset
- 7.5HighCVSS base score
- 0.76%Exploitation in 30 daysEPSS · top 44% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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
Timeline
ID reserved
By PSF
- 3 days later
· 3 days later
Published
- 12 months later
· 12 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| PSFCNA (assigner) | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVDNVD · Deferred | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 0.76% · top 44% of all CVEs (16 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: yes · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Affected products
Python Software Foundation · CPython
- affected < 3.9.24
- affected 3.10.0 – < 3.10.19
- affected 3.11.0 – < 3.11.14
- affected 3.12.0 – < 3.12.12
- affected 3.13.0 – < 3.13.6
- affected 3.14.0a1 – < 3.14.0rc2
References
References13
- https://github.com/python/cpython/issues/130577 (opens in a new tab)issue-tracking
- https://github.com/python/cpython/pull/137027 (opens in a new tab)patch
- https://mail.python.org/archives/list/[email protected]/thread/ZULLF3IZ726XP5EY7XJ7YIN3K5MDYR2D/ (opens in a new tab)vendor-advisory
- https://github.com/python/cpython/commit/7040aa54f14676938970e10c5f74ea93cd56aa38 (opens in a new tab)patch
- https://github.com/python/cpython/commit/cdae923ffe187d6ef916c0f665a31249619193fe (opens in a new tab)patch
- https://gist.github.com/sethmlarson/1716ac5b82b73dbcbf23ad2eff8b33e1 (opens in a new tab)mitigation
- https://github.com/python/cpython/commit/c9d9f78feb1467e73fd29356c040bde1c104f29f (opens in a new tab)patch
- https://github.com/python/cpython/commit/fbc2a0ca9ac8aff6887f8ddf79b87b4510277227 (opens in a new tab)patch
- https://github.com/python/cpython/commit/57f5981d6260ed21266e0c26951b8564cc252bc2 (opens in a new tab)patch
- https://github.com/python/cpython/commit/73f03e4808206f71eb6b92c579505a220942ef19 (opens in a new tab)patch
- https://github.com/python/cpython/commit/b4ec17488eedec36d3c05fec127df71c0071f6cb (opens in a new tab)patch
- http://www.openwall.com/lists/oss-security/2025/07/28/1 (opens in a new tab)
- http://www.openwall.com/lists/oss-security/2025/07/28/2 (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2025-22999 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2025-8194)Record last updated .