Vulnerability · Published Aug 19, 2026 · Assigned by PSF

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

Medium 6.3

In plain English

A medium-severity path traversal in CPython from Python Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 41% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)6.3Medium
Exploit odds (30 days)0.5%top 59.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.21python33.12.15-r0ALPINE-CVE-2026-19672
Alpine:v3.22python33.12.15-r0ALPINE-CVE-2026-19672
Alpine:v3.23python33.12.15-r0ALPINE-CVE-2026-19672
Alpine:v3.24python33.14.8-r0ALPINE-CVE-2026-19672
Debian:13python3.13no fix listedDEBIAN-CVE-2026-19672
Debian:14python3.143.14.7-3DEBIAN-CVE-2026-19672
Debian:14python3.153.15.0~rc2-1DEBIAN-CVE-2026-19672
Ubuntu:22.04:LTSpython3.10no fix listedUBUNTU-CVE-2026-19672
Ubuntu:24.04:LTSpython3.12no fix listedUBUNTU-CVE-2026-19672
Ubuntu:26.04:LTSpython3.14no fix listedUBUNTU-CVE-2026-19672
Ubuntu:26.10python3.14no fix listedUBUNTU-CVE-2026-19672

Affected products (as reported)

VendorProductVersions
Python Software Foundation CPython 0 – before 3.16.0

Weakness: CWE-22 · Vector: 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

References