What’s Vulnerable › Vulnerabilities

CVE-2026-11972: tarfile opened in streaming mode mishandles EOF

Description

When using the "tarfile" module with a file opened in "streaming mode" (mode="r|") the tarfile module did not properly handle EOF, making archive parsing take exponentially longer.

Affected products

How to fix

Upgrade to a fixed version: Python 3.10.21, 3.11.16, 3.12.14, 3.13.15. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-11972 or the next vulnerability affects your stack