# CVE-2026-4360: Tarfile.extract() doesn't fully respect filter parameter

- Severity: Low 2.0 (CVSS:4.0, scored by PSF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 21% of CVEs (2026-12-01)
- Published: 2026-06-30T14:45:35.601Z
- Modified: 2026-10-25T21:10:00.770Z
- Also known as: PSF-2026-32, BIT-LIBPYTHON-2026-4360, BIT-PYTHON-2026-4360, BIT-PYTHON-MIN-2026-4360
- Weaknesses: CWE-281
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: PSF

## Description

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.

(As written by CVE List.)

## Affected

- Python Software Foundation CPython: before 3.10.21; from 3.11.0 before 3.11.16; from 3.12.0 before 3.12.14; from 3.13.0 before 3.13.15; from 3.14.0 before 3.14.7; from 3.15.0a1 before 3.15.0b4
- https://github.com/python/cpython: before 5e0ef3f1afe892e4f64eb83368db57ac4c40cba0; before 7b57e8d51446297b8c7c482d224bc5f1938e4301; before 7ccdbaba2c54250a70d7f25632152df7655a5e0a; before eee3ddf0ca10283cc7fea724aae9cd8665f8d15e; before d2b2f5eacab4dd48446b63340613b05dcbbf0b44; before cf23b9153181062150d061468b6d24af33fe214f; before 0367912be336348b30572f8029cec4a282782d92
- python python: before 3.1.5
- libpython (Bitnami): before 3.10.21; from 3.11.0 before 3.11.16; from 3.12.0 before 3.12.14; from 3.13.0 before 3.13.15; from 3.14.0 before 3.14.7
- python (Bitnami): before 3.10.21; from 3.11.0 before 3.11.16; from 3.12.0 before 3.12.14; from 3.13.0 before 3.13.15; from 3.14.0 before 3.14.7
- python-min (Bitnami): before 3.10.21; from 3.11.0 before 3.11.16; from 3.12.0 before 3.12.14; from 3.13.0 before 3.13.15; from 3.14.0 before 3.14.7

## Every score

- PSF: CVSS:4.0 2.0 Low `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`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://mail.python.org/archives/list/security-announce@python.org/thread/TWZW2PC2AZOV6FENIHFSRC63OM7MBGSB/> (advisory, issue-tracking, vendor-advisory)
- <https://github.com/python/cpython/pull/151988> (fix, issue-tracking, patch, web)
- <https://github.com/python/cpython/issues/151987> (fix, issue-tracking, patch, report)
- <https://github.com/python/cpython/commit/5e0ef3f1afe892e4f64eb83368db57ac4c40cba0> (fix, patch)
- <https://github.com/python/cpython/commit/7b57e8d51446297b8c7c482d224bc5f1938e4301> (fix, patch)
- <https://github.com/python/cpython/commit/7ccdbaba2c54250a70d7f25632152df7655a5e0a> (fix, patch)
- <https://github.com/python/cpython/commit/eee3ddf0ca10283cc7fea724aae9cd8665f8d15e> (fix, patch)
- <https://github.com/python/cpython/commit/d2b2f5eacab4dd48446b63340613b05dcbbf0b44> (fix, patch)
- <https://github.com/python/cpython/commit/cf23b9153181062150d061468b6d24af33fe214f> (fix, patch, web)
- <https://github.com/python/cpython/commit/0367912be336348b30572f8029cec4a282782d92> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-4360> (web)

## Sources

- CVE List: [CVE-2026-4360](https://www.cve.org/CVERecord?id=CVE-2026-4360), CVE Terms of Use, modified 2026-08-13
- Python Software Foundation: [PSF-2026-32](https://osv.dev/vulnerability/PSF-2026-32), CC-BY-4.0, modified 2026-08-05
- NVD: [CVE-2026-4360](https://nvd.nist.gov/vuln/detail/CVE-2026-4360), Public domain, modified 2026-10-25
- Bitnami Vulnerability Database: [BIT-LIBPYTHON-2026-4360](https://osv.dev/vulnerability/BIT-LIBPYTHON-2026-4360), Apache-2.0, modified 2026-09-16
- Bitnami Vulnerability Database: [BIT-PYTHON-2026-4360](https://osv.dev/vulnerability/BIT-PYTHON-2026-4360), Apache-2.0, modified 2026-09-16
- Bitnami Vulnerability Database: [BIT-PYTHON-MIN-2026-4360](https://osv.dev/vulnerability/BIT-PYTHON-MIN-2026-4360), Apache-2.0, modified 2026-09-16

---

Page: https://cve.day/CVE-2026-4360 · Whole record: https://cve.day/CVE-2026-4360.json · Rebuilt by cve.day 2026-11-25T22:59:26.705Z
