CVE-2025-8194: Python Software Foundation CPython Vulnerability

CVE-2025-8194

NVDCVSS scored by cna@python.org

Vulnerability Summary

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
Severity Level
HIGH(7.5)
Published Date
Jul 28, 2025
Last Modified
Jul 31, 2026
Exploitation Status
No confirmed exploitation yet
EPSS Score (30-Day)
0.61%Probability
Root Weakness (CWE)
The product contains an iteration or loop with an exit condition that cannot be reached.
CVSS v3.1 Base Metrics — Score 7.5 (HIGH)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityNone
IntegrityNone
AvailabilityHigh

Affected & Patched Versions

Affected Versions
  • Python Software Foundation CPython < 3.9.24
  • Python Software Foundation CPython >= 3.10.0 and < 3.10.19
  • Python Software Foundation CPython >= 3.11.0 and < 3.11.14
  • Python Software Foundation CPython >= 3.12.0 and < 3.12.12
  • Python Software Foundation CPython >= 3.13.0 and < 3.13.6
  • Python Software Foundation CPython >= 3.14.0a1 and < 3.14.0rc2
Patched Versions
  • Python Software Foundation CPython 3.9.24
  • Python Software Foundation CPython 3.10.19
  • Python Software Foundation CPython 3.11.14
  • Python Software Foundation CPython 3.12.12
  • Python Software Foundation CPython 3.13.6
  • Python Software Foundation CPython 3.14.0rc2

What to do

Plan remediation soon. No exploitation is confirmed yet, but the severity is high.

  1. Check whether you run Python Software Foundation CPython and which version.
  2. Update to a patched version listed above, then confirm the new version.

Timeline

  • Jul 28, 2025Published
  • Jul 31, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new Python Software Foundation CPython CVEsYou are reading CVE-2025-8194. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Dec 5, 2026 13:13 UTC