{"id":"CVE-2026-11972","published":"2026-06-23T22:02:45Z","modified":"2026-08-13T00:28:46Z","title":"tarfile opened in streaming mode mishandles EOF","vendor":"Python Software Foundation","product":"CPython","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00715,"percentile":0.54648,"provenance":"source"},"cwes":[{"id":"CWE-252","name":"Unchecked Return Value"},{"id":"CWE-606","name":"Unchecked Input for Loop Condition"},{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/python/cpython/issues/151981","tags":["issue-tracking"]},{"url":"https://github.com/python/cpython/pull/151982","tags":["patch"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/AXPSKKTSRKXTTJULW3XSIC74WZNAAPPB/","tags":["vendor-advisory"]},{"url":"https://github.com/python/cpython/commit/3f031d431f80668e14f3bc066bbf4369cd9281b9","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/4ce6bf7c8aa7725828a38981c306f214c1f29365","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/7f0dc59c9a70f8f3b4da33d7c4a2ba552a7acc21","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/e86666c9dd256d52d0fbef6feb1ea4a51768fdec","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/eb63c0f94dfcbea7fda8eab6213818e134d67192","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/f50bf13566189c8d0ce5a814f33eff3d89951896","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/f5e2776ff0383a902c12acf2b703e7e951fc8438","tags":["patch"]}],"priority":{"score":16.7,"factors":[{"name":"EPSS percentile","points":10.93},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"python-software-foundation","affectedVersions":[{"vendor":"Python Software Foundation","product":"CPython","versions":["< 3.10.21",">= 3.11.0, < 3.11.16",">= 3.12.0, < 3.12.14",">= 3.13.0, < 3.13.15",">= 3.14.0, < 3.14.7",">= 3.15.0a1, < 3.15.0b4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-24T15:33:49.665045Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-38630","exploited":false,"provenance":"source"}}