Skip to content
CVE PROGRAM SOURCE RECORD7.5 High

CVE-2025-8194

Tarfile infinite loop during parsing with negative member offset

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

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Python Software Foundation CPython

Default version status: unaffected

  • 0 to < 3.9.24affected
  • 3.10.0 to < 3.10.19affected
  • 3.11.0 to < 3.11.14affected
  • 3.12.0 to < 3.12.12affected
  • 3.13.0 to < 3.13.6affected
  • 3.14.0a1 to < 3.14.0rc2affected

References