Skip to content
8.2 High

CVE-2026-11972 When using the "tarfile" module with a file opened in "streaming mode" (mode="r|") the tarfile module did not properly…

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 and versions

Product Affected versions Fixed in
CPython 3.15 3.15.0a1 → < 3.15.0b4 3.15.0b4
CPython 3.14 3.14.0 → < 3.14.7 3.14.7
CPython 3.13 3.13.0 → < 3.13.15 3.13.15
CPython 3.12 3.12.0 → < 3.12.14 3.12.14
CPython 3.11 3.11.0 → < 3.11.16 3.11.16
CPython 3.10 earliest → < 3.10.21 3.10.21
The 80 CVEs of CPython →
Track this CVE