CVE-2025-8194

published 28 Jul 2025 · updated 16 Nov 2026

Tarfile infinite loop during parsing with negative member offset

7.5HighCVSS 7.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 3.9.24, 3.10.19, 3.11.14 and 3 more.

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

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Python Software Foundation<3.9.24, >=3.10.0 <3.10.19, >=3.11.0 <3.11.14, >=3.12.0 <3.12.12, >=3.13.0 <3.13.6, >=3.14.0a1 <3.14.0rc23.9.24, 3.10.19, 3.11.14, 3.12.12, 3.13.6, 3.14.0rc2

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-8194 severity on Zeptric[![CVE-2025-8194](https://zeptric.io/badge/cve/CVE-2025-8194.svg)](https://zeptric.io/cve/CVE-2025-8194)