Home

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.

PUBLISHED Reserved 2026-06-11 | Published 2026-06-23 | Updated 2026-06-24 | Assigner PSF




HIGH: 8.2CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Problem types

CWE-252

CWE-606

CWE-770

Product status

Default status
unaffected

Any version before 3.16.0
affected

Credits

Ryan Hileman (https://github.com/lunixbochs) reporter

Petr Viktorin (https://github.com/encukou) coordinator

Stan Ulbrych (https://github.com/StanFromIreland) remediation reviewer

References

github.com/python/cpython/issues/151981 issue-tracking

github.com/python/cpython/pull/151982 patch

mail.python.org/.../thread/AXPSKKTSRKXTTJULW3XSIC74WZNAAPPB/ vendor-advisory

cve.org (CVE-2026-11972)

nvd.nist.gov (CVE-2026-11972)

Download JSON