# CVE-2026-19672: tarfile extraction filter bypass allows creation of directories outside the destination

- Severity: Medium 6.3 (CVSS:4.0, scored by PSF) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/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.47%, higher than 42% of CVEs (2026-12-01)
- Published: 2026-08-19T15:24:08.616Z
- Modified: 2026-10-05T14:30:06.225Z
- Also known as: PSF-2026-38, BIT-LIBPYTHON-2026-19672, BIT-PYTHON-2026-19672, BIT-PYTHON-MIN-2026-19672
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: PSF

## Description

The tarfile module's tar and data
 extraction filters created directories outside the destination for 
members whose name leaves the destination and returns to it, such as ../evil/../dest/sub/file. The containment check used the resolved path, but intermediate directories were created from the name as given.

Only
 empty directories are created outside the destination. Member contents 
are still extracted inside it. To return to the destination the member's
 name must contain the destination directory's own final component, so 
extraction into a secure randomised directory is not affected.

This affects POSIX platforms only. On Windows, .. components are collapsed before the path reaches the filesystem, so the directories outside the destination are never created.

(As written by CVE List.)

## Affected

- Python Software Foundation CPython: before 3.16.0
- https://github.com/python/cpython: all versions
- libpython (Bitnami): before 3.10.22; from 3.11.0 before 3.11.17; from 3.12.0 before 3.12.15; from 3.13.0 before 3.13.16; from 3.14.0 before 3.14.8
- python (Bitnami): before 3.10.22; from 3.11.0 before 3.11.17; from 3.12.0 before 3.12.15; from 3.13.0 before 3.13.16; from 3.14.0 before 3.14.8
- python-min (Bitnami): before 3.10.22; from 3.11.0 before 3.11.17; from 3.12.0 before 3.12.15; from 3.13.0 before 3.13.16; from 3.14.0 before 3.14.8

## Every score

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

## References

- <https://github.com/python/cpython/pull/156000> (issue-tracking, patch, report, web)
- <https://mail.python.org/archives/list/security-announce@python.org/thread/J2WT2ALRWEXQJOB3C7Q2HYWUXP3CINWO/> (advisory, vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2026/08/25/10> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-19672> (web)

## Sources

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

---

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