Vulnerability · Published Jun 23, 2026 · Assigned by PSF

CVE-2026-11940tarfile extraction filter bypass allows escaping the destination directory

High 7.8

In plain English

A high-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.8% (higher than 55% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)7.8High
Exploit odds (30 days)0.8%top 44.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

tarfile.extractall() with the 'data' or 'tar' filter could be bypassed by a crafted archive where a hardlink references a symlink stored at a deeper name than the hardlink itself.  The extraction fallback validated the symlink at it's archived location but recreated it at the hardlink's shallower path, letting a relative target the filter judged contained escape the destination directory.  This allowed a malicious tar archive to create a symlink pointing outside the destination, enabling out-of-destination file reads or writes. This was an incomplete fix of CVE-2025-4330.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8platform-python3.6.8-78.el8_10.alma.1ALSA-2026:56219
AlmaLinux:8platform-python-debug3.6.8-78.el8_10.alma.1ALSA-2026:56219
AlmaLinux:8platform-python-devel3.6.8-78.el8_10.alma.1ALSA-2026:56219
AlmaLinux:10python-unversioned-command3.12.14-1.el10_2ALSA-2026:58902
AlmaLinux:9python-unversioned-command3.9.25-7.el9_8.3ALSA-2026:54268
AlmaLinux:10python33.12.14-1.el10_2ALSA-2026:58902
AlmaLinux:9python33.9.25-7.el9_8.3ALSA-2026:54268
AlmaLinux:10python3-debug3.12.14-1.el10_2ALSA-2026:58902
AlmaLinux:9python3-debug3.9.25-7.el9_8.3ALSA-2026:54268
AlmaLinux:10python3-devel3.12.14-1.el10_2ALSA-2026:58902
AlmaLinux:9python3-devel3.9.25-7.el9_8.3ALSA-2026:54268
AlmaLinux:10python3-idle3.12.14-1.el10_2ALSA-2026:58902
AlmaLinux:8python3-idle3.6.8-78.el8_10.alma.1ALSA-2026:56219
AlmaLinux:9python3-idle3.9.25-7.el9_8.3ALSA-2026:54268
AlmaLinux:10python3-libs3.12.14-1.el10_2ALSA-2026:58902
AlmaLinux:8python3-libs3.6.8-78.el8_10.alma.1ALSA-2026:56219
AlmaLinux:9python3-libs3.9.25-7.el9_8.3ALSA-2026:54268
AlmaLinux:10python3-test3.12.14-1.el10_2ALSA-2026:58902
AlmaLinux:8python3-test3.6.8-78.el8_10.alma.1ALSA-2026:56219
AlmaLinux:9python3-test3.9.25-7.el9_8.3ALSA-2026:54268
AlmaLinux:10python3-tkinter3.12.14-1.el10_2ALSA-2026:58902
AlmaLinux:8python3-tkinter3.6.8-78.el8_10.alma.1ALSA-2026:56219
AlmaLinux:9python3-tkinter3.9.25-7.el9_8.3ALSA-2026:54268
AlmaLinux:8python3.123.12.14-1.el8_10ALSA-2026:58971
AlmaLinux:9python3.123.12.14-1.el9_8ALSA-2026:59009
AlmaLinux:8python3.12-debug3.12.14-1.el8_10ALSA-2026:58971
AlmaLinux:9python3.12-debug3.12.14-1.el9_8ALSA-2026:59009
AlmaLinux:8python3.12-devel3.12.14-1.el8_10ALSA-2026:58971
AlmaLinux:9python3.12-devel3.12.14-1.el9_8ALSA-2026:59009
AlmaLinux:8python3.12-idle3.12.14-1.el8_10ALSA-2026:58971
AlmaLinux:9python3.12-idle3.12.14-1.el9_8ALSA-2026:59009
AlmaLinux:8python3.12-libs3.12.14-1.el8_10ALSA-2026:58971
AlmaLinux:9python3.12-libs3.12.14-1.el9_8ALSA-2026:59009
AlmaLinux:8python3.12-rpm-macros3.12.14-1.el8_10ALSA-2026:58971
AlmaLinux:8python3.12-test3.12.14-1.el8_10ALSA-2026:58971
AlmaLinux:9python3.12-test3.12.14-1.el9_8ALSA-2026:59009
AlmaLinux:8python3.12-tkinter3.12.14-1.el8_10ALSA-2026:58971
AlmaLinux:9python3.12-tkinter3.12.14-1.el9_8ALSA-2026:59009
AlmaLinux:10python3.143.14.7-2.el10_2ALSA-2026:58928
AlmaLinux:9python3.143.14.7-2.el9_8ALSA-2026:58901
AlmaLinux:10python3.14-debug3.14.7-2.el10_2ALSA-2026:58928
AlmaLinux:9python3.14-debug3.14.7-2.el9_8ALSA-2026:58901
AlmaLinux:10python3.14-devel3.14.7-2.el10_2ALSA-2026:58928
AlmaLinux:9python3.14-devel3.14.7-2.el9_8ALSA-2026:58901
AlmaLinux:10python3.14-freethreading3.14.7-2.el10_2ALSA-2026:58928
AlmaLinux:9python3.14-freethreading3.14.7-2.el9_8ALSA-2026:58901
AlmaLinux:10python3.14-freethreading-debug3.14.7-2.el10_2ALSA-2026:58928
AlmaLinux:9python3.14-freethreading-debug3.14.7-2.el9_8ALSA-2026:58901
AlmaLinux:10python3.14-freethreading-devel3.14.7-2.el10_2ALSA-2026:58928
AlmaLinux:9python3.14-freethreading-devel3.14.7-2.el9_8ALSA-2026:58901
AlmaLinux:10python3.14-freethreading-idle3.14.7-2.el10_2ALSA-2026:58928
AlmaLinux:9python3.14-freethreading-idle3.14.7-2.el9_8ALSA-2026:58901
AlmaLinux:10python3.14-freethreading-libs3.14.7-2.el10_2ALSA-2026:58928
AlmaLinux:9python3.14-freethreading-libs3.14.7-2.el9_8ALSA-2026:58901
AlmaLinux:10python3.14-freethreading-test3.14.7-2.el10_2ALSA-2026:58928
AlmaLinux:9python3.14-freethreading-test3.14.7-2.el9_8ALSA-2026:58901
AlmaLinux:10python3.14-freethreading-tkinter3.14.7-2.el10_2ALSA-2026:58928
AlmaLinux:9python3.14-freethreading-tkinter3.14.7-2.el9_8ALSA-2026:58901
AlmaLinux:10python3.14-idle3.14.7-2.el10_2ALSA-2026:58928
AlmaLinux:9python3.14-idle3.14.7-2.el9_8ALSA-2026:58901
AlmaLinux:10python3.14-libs3.14.7-2.el10_2ALSA-2026:58928
AlmaLinux:9python3.14-libs3.14.7-2.el9_8ALSA-2026:58901
AlmaLinux:10python3.14-test3.14.7-2.el10_2ALSA-2026:58928
AlmaLinux:9python3.14-test3.14.7-2.el9_8ALSA-2026:58901
AlmaLinux:10python3.14-tkinter3.14.7-2.el10_2ALSA-2026:58928
AlmaLinux:9python3.14-tkinter3.14.7-2.el9_8ALSA-2026:58901
Alpine:v3.21python33.12.14-r0ALPINE-CVE-2026-11940
Alpine:v3.22python33.12.14-r0ALPINE-CVE-2026-11940
Alpine:v3.23python33.12.14-r0ALPINE-CVE-2026-11940
Alpine:v3.24python33.14.7-r0ALPINE-CVE-2026-11940
Debian:13pypy3no fix listedDEBIAN-CVE-2026-11940
Debian:14pypy38.0.0+dfsg-1DEBIAN-CVE-2026-11940
Debian:12python3.11no fix listedDEBIAN-CVE-2026-11940
Debian:13python3.133.13.5-2+deb13u5DEBIAN-CVE-2026-11940
Debian:14python3.143.14.7-1DEBIAN-CVE-2026-11940
Rocky Linux:8python30:3.6.8-78.el8_10.rocky.0RLSA-2026:56219
Rocky Linux:10python3.120:3.12.14-1.el10_2RLSA-2026:58902
Rocky Linux:8python3.120:3.12.14-1.el8_10RLSA-2026:58971
Rocky Linux:9python3.120:3.12.14-1.el9_8RLSA-2026:59009
Rocky Linux:10python3.140:3.14.7-2.el10_2RLSA-2026:58928
Rocky Linux:9python3.140:3.14.7-2.el9_8RLSA-2026:58901
Rocky Linux:9python3.90:3.9.25-7.el9_8.3RLSA-2026:54268
Ubuntu:22.04:LTSpypy3no fix listedUBUNTU-CVE-2026-11940
Ubuntu:24.04:LTSpypy3no fix listedUBUNTU-CVE-2026-11940
Ubuntu:25.10pypy3no fix listedUBUNTU-CVE-2026-11940
Ubuntu:26.04:LTSpypy3no fix listedUBUNTU-CVE-2026-11940
Ubuntu:26.10pypy3no fix listedUBUNTU-CVE-2026-11940
Ubuntu:22.04:LTSpython3.10no fix listedUBUNTU-CVE-2026-11940
Ubuntu:24.04:LTSpython3.12no fix listedUBUNTU-CVE-2026-11940
Ubuntu:25.10python3.13no fix listedUBUNTU-CVE-2026-11940
Ubuntu:25.10python3.14no fix listedUBUNTU-CVE-2026-11940
Ubuntu:26.04:LTSpython3.14no fix listedUBUNTU-CVE-2026-11940
Ubuntu:26.10python3.14no fix listedUBUNTU-CVE-2026-11940

Affected products (as reported)

VendorProductVersions
Python Software Foundation CPython 0 – before 3.10.213.11.0 – before 3.11.163.12.0 – before 3.12.143.13.0 – before 3.13.153.14.0 – before 3.14.73.15.0a1 – before 3.15.0b4

Weakness: CWE-22, CWE-59 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N

References