Vulnerability in Python
CVE-2026-4360
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N.
EPSS exploit prediction
EPSS: 0.005 (39.0th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 39th percentile — 39.0% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.003 · newest: 0.005 · change: +0.002
Affected products
- Python
- Python Software Foundation Cpython — versions 3.14.0, 0, 3.13.0
Weakness classification (CWE)
References
- mail.python.org/archives/list/security-announce@python.org/thread/TWZW2PC2AZOV6… (vendor-advisory, Issue Tracking, Vendor Advisory)
- github.com/python/cpython/pull/151988 (Patch, patch, Issue Tracking)
- github.com/python/cpython/issues/151987 (issue-tracking, Patch, Issue Tracking)
- github.com/python/cpython/commit/5e0ef3f1afe892e4f64eb83368db57ac4c40cba0 (Patch, patch)
- github.com/python/cpython/commit/7b57e8d51446297b8c7c482d224bc5f1938e4301 (Patch, patch)
- github.com/python/cpython/commit/7ccdbaba2c54250a70d7f25632152df7655a5e0a (Patch, patch)
- github.com/python/cpython/commit/eee3ddf0ca10283cc7fea724aae9cd8665f8d15e (Patch, patch)
- github.com/python/cpython/commit/d2b2f5eacab4dd48446b63340613b05dcbbf0b44 (Patch, patch)
- github.com/python/cpython/commit/cf23b9153181062150d061468b6d24af33fe214f (patch)
- github.com/python/cpython/commit/0367912be336348b30572f8029cec4a282782d92 (patch)
Frequently asked questions
- What is CVE-2026-4360?
- CVE-2026-4360 is a medium-severity vulnerability in Python, classified under Improper Preservation of Permissions. CVSS score: 5.3/10. Published 2026-06-30.
- How severe is CVE-2026-4360?
- Medium severity. CVSS v3 base score is 5.3 out of 10.