← CVE Intelligence

CVE-2025-8194

Tarfile infinite loop during parsing with negative member offset PUBLISHED

Description (CNA)

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 (CNA)

Vendor / productVersions
Python Software Foundation / CPythonaffected 0 before 3.9.24; affected 3.10.0 before 3.10.19; affected 3.11.0 before 3.11.14; affected 3.12.0 before 3.12.12; affected 3.13.0 before 3.13.6; affected 3.14.0a1 before 3.14.0rc2

CWE

CWE-835

References

ADP enrichment

CISA-ADP

No English description supplied.

No references supplied.

CVE

No English description supplied.