{"id":"CVE-2026-4360","published":"2026-06-30T14:45:35Z","modified":"2026-08-13T00:27:33Z","title":"Tarfile.extract() doesn't fully respect filter parameter","vendor":"Python Software Foundation","product":"CPython","tier":"tail","description":{"text":"In the Tarfile.extract() function, the filter parameter is not passed properly when extracting hardlinks. An affected system that extracts content from untrusted tar files could end up writing files with an unexpected uid/gid despite the user passing filter='data' to the extract() function.","provenance":"source","from":"CVE.org"},"cvss":{"score":2,"severity":"LOW","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00481,"percentile":0.42379,"provenance":"source"},"cwes":[{"id":"CWE-281","name":"Improper Preservation of Permissions"}],"references":[{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/TWZW2PC2AZOV6FENIHFSRC63OM7MBGSB/","tags":["vendor-advisory"]},{"url":"https://github.com/python/cpython/pull/151988","tags":["patch"]},{"url":"https://github.com/python/cpython/issues/151987","tags":["issue-tracking"]},{"url":"https://github.com/python/cpython/commit/5e0ef3f1afe892e4f64eb83368db57ac4c40cba0","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/7b57e8d51446297b8c7c482d224bc5f1938e4301","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/7ccdbaba2c54250a70d7f25632152df7655a5e0a","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/eee3ddf0ca10283cc7fea724aae9cd8665f8d15e","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/d2b2f5eacab4dd48446b63340613b05dcbbf0b44","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/cf23b9153181062150d061468b6d24af33fe214f","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/0367912be336348b30572f8029cec4a282782d92","tags":["patch"]}],"priority":{"score":9.9,"factors":[{"name":"EPSS percentile","points":8.48},{"name":"CVSS severity","points":1.4}]},"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-30T15:28:24.835246Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-40336","exploited":false,"provenance":"source"}}