CVE-2025-8194: Python Software Foundation Cpython

High severity, CVSS 7.5. EPSS: 0.7% chance of exploitation in the next 30 days.

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 products

  • Python Software Foundation Cpython: before 3.9.24 (fixed in 3.9.24); from 3.10.0, before 3.10.19 (fixed in 3.10.19); from 3.11.0, before 3.11.14 (fixed in 3.11.14); from 3.12.0, before 3.12.12 (fixed in 3.12.12); from 3.13.0, before 3.13.6 (fixed in 3.13.6); from 3.14.0a1, before 3.14.0rc2 (fixed in 3.14.0rc2)

Published 2025-07-28. Last modified 2026-07-31.