CVE-2026-11972
When using the "tarfile" module with a file opened in "streaming …
When using the "tarfile" module with a file opened in "streaming mode" (mode="r|") the tarfile module did not properly handle EOF, meaning an archive could be parsed in an infinite loop.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/python/cpython/issues/151981
- github.com/python/cpython/pull/151982
- mail.python.org/archives/list/[email protected]/thread/AXPSKKTSRKXTTJULW3XSIC74
- github.com/python/cpython/commit/3f031d431f80668e14f3bc066bbf4369cd9281b9
- github.com/python/cpython/commit/4ce6bf7c8aa7725828a38981c306f214c1f29365
- github.com/python/cpython/commit/e86666c9dd256d52d0fbef6feb1ea4a51768fdec
- github.com/python/cpython/commit/f50bf13566189c8d0ce5a814f33eff3d89951896
- github.com/python/cpython/commit/7f0dc59c9a70f8f3b4da33d7c4a2ba552a7acc21
- nvd.nist.gov/vuln/detail/CVE-2026-11972
- cve.org/CVERecord?id=CVE-2026-11972
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.