# CVE-2026-7774: tarfile.data_filter path traversal bypass allows writing outside the extraction directory

- Severity: Medium 6.9 (CVSS:4.0, scored by PSF) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/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.60%, higher than 50% of CVEs (2026-12-01)
- Published: 2026-06-04T14:21:23.904Z
- Modified: 2026-08-19T09:45:27.692Z
- Also known as: PSF-2026-26, BIT-LIBPYTHON-2026-7774, BIT-PYTHON-2026-7774, BIT-PYTHON-MIN-2026-7774
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: PSF

## Description

tarfile.data_filter could be bypassed using crafted link entries, including symlinks with empty or directory-like names, to redirect later archive members outside the intended extraction directory. This allowed a malicious tar archive to cause tarfile.extractall() to write files outside the destination directory, subject to the permissions of the extracting process.

(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.14; from 3.14.0 before 3.14.6; from 3.15.0a1 before 3.15.0b2
- https://github.com/python/cpython: before 0478bd83d82b255e0f29f613367a59d261e7eaa2; before 0d28f5e46e151718972dfabd91205444d0037b6d; before 578411982c16f753f4893532510099ef665117da; before 5cf47a248c35c375d610b87b2f72fd1ed454b558; before 74cca9a92fb7d653e404843a56b8bdc7b0afdbbf; before 10a13bee3c24f9c62b602e696334ff2272a40efc; before c063191cb7f9170f9565e305f8aa2b79ab2bf609
- 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.14; from 3.14.0 before 3.14.6
- 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.14; from 3.14.0 before 3.14.6
- 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.14; from 3.14.0 before 3.14.6

## Every score

- PSF: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/python/cpython/pull/149487> (patch, web)
- <https://github.com/python/cpython/issues/149486> (issue-tracking, report, web)
- <https://mail.python.org/archives/list/security-announce@python.org/thread/4FU62L2M6RMMHT2QPGQNPEHHUND7CEX5/> (advisory, vendor-advisory, web)
- <https://github.com/python/cpython/commit/0478bd83d82b255e0f29f613367a59d261e7eaa2> (fix, patch, web)
- <https://github.com/python/cpython/commit/0d28f5e46e151718972dfabd91205444d0037b6d> (fix, patch, web)
- <https://github.com/python/cpython/commit/578411982c16f753f4893532510099ef665117da> (fix, patch, web)
- <https://github.com/python/cpython/commit/5cf47a248c35c375d610b87b2f72fd1ed454b558> (fix, patch, web)
- <https://github.com/python/cpython/commit/74cca9a92fb7d653e404843a56b8bdc7b0afdbbf> (fix, patch, web)
- <https://github.com/python/cpython/commit/10a13bee3c24f9c62b602e696334ff2272a40efc> (fix, patch, web)
- <https://github.com/python/cpython/commit/c063191cb7f9170f9565e305f8aa2b79ab2bf609> (fix, patch, web)
- <http://www.openwall.com/lists/oss-security/2026/06/04/9> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-7774> (web)

## Sources

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

---

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