Skip to content
7.5 High

CVE-2025-8194 There is a defect in the CPython “tarfile” module affecting the “TarFile” extraction and entry enumeration APIs

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

Affected products and versions

Product Affected versions Fixed in
CPython 3.14 3.14.0a1 → < 3.14.0rc2 3.14.0rc2
CPython 3.13 3.13.0 → < 3.13.6 3.13.6
CPython 3.12 3.12.0 → < 3.12.12 3.12.12
CPython 3.11 3.11.0 → < 3.11.14 3.11.14
CPython 3.10 3.10.0 → < 3.10.19 3.10.19
CPython 3.9 earliest → < 3.9.24 3.9.24

References

Timeline

  1. Published
  2. Last modified
The 79 CVEs of CPython →
Track this CVE