cve.bz

CVE-2026-11940 python software foundation cpython: Path traversal

7.8 highEPSS 0.8%

High (7.8) in python software foundation cpython. EPSS 0.8% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

7.8 high
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
EPSS
0.8% (unchanged from 0.8% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 56th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-06-23. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
CWE-59 Improper Link Resolution Before File Access (Link Following)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-11940 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-11940?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-11940?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-11940 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Python Software Foundation CPythonbefore 3.10.21
Python Software Foundation CPythonfrom 3.11.0 before 3.11.16
Python Software Foundation CPythonfrom 3.12.0 before 3.12.14
Python Software Foundation CPythonfrom 3.13.0 before 3.13.15
Python Software Foundation CPythonfrom 3.14.0 before 3.14.7
Python Software Foundation CPythonfrom 3.15.0a1 before 3.15.0b4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian13pypy3no fix listedDEBIAN-CVE-2026-11940
Debian13python3.133.13.5-2+deb13u5DEBIAN-CVE-2026-11940
Debian14pypy38.0.0+dfsg-1DEBIAN-CVE-2026-11940
Debian14python3.143.14.7-1DEBIAN-CVE-2026-11940
Ubuntu20.04:LTSpypy3no fix listedUBUNTU-CVE-2026-11940
Ubuntu22.04:LTSpypy3, python3.10no fix listedUBUNTU-CVE-2026-11940
Ubuntu24.04:LTSpypy3, python3.12no fix listedUBUNTU-CVE-2026-11940
Ubuntu25.10pypy3, python3.13, python3.14no fix listedUBUNTU-CVE-2026-11940
Ubuntu26.04:LTS, 26.10pypy3, python3.14no fix listedUBUNTU-CVE-2026-11940
UbuntuPro:14.04:LTSpython2.7, python3.4, python3.5no fix listedUBUNTU-CVE-2026-11940
UbuntuPro:16.04:LTSpython2.7, python3.5no fix listedUBUNTU-CVE-2026-11940
UbuntuPro:18.04:LTSpython2.7, python3.6, python3.7 and 1 moreno fix listedUBUNTU-CVE-2026-11940
UbuntuPro:20.04:LTSpython2.7, python3.8, python3.9no fix listedUBUNTU-CVE-2026-11940
UbuntuPro:22.04:LTSpython2.7, python3.11no fix listedUBUNTU-CVE-2026-11940
Red Hatenterprise_linux:8::appstreampython3-idle, python3-test, platform-python and 5 more0:3.6.8-78.el8_10RHSA-2026:56219
Red Hatenterprise_linux:8::appstreampython3.12, python3.12-libs, python3.12-devel and 4 more0:3.12.14-1.el8_10RHSA-2026:58971
Red Hatenterprise_linux:8::baseospython3, python3-libs, python3-test and 3 more0:3.6.8-78.el8_10RHSA-2026:56219
Red Hatenterprise_linux:8::crbpython3.12, python3.12-idle, python3.12-test and 4 more0:3.12.14-1.el8_10RHSA-2026:58971
Red Hatenterprise_linux:9::appstreampython3-devel, python3-tkinter, python3.9-debuginfo and 2 more0:3.9.25-7.el9_8.3RHSA-2026:54268
Red Hatenterprise_linux:9::appstreampython3.12, python3.12-libs, python3.12-devel and 3 more0:3.12.14-1.el9_8RHSA-2026:59009
Red Hatenterprise_linux:9::appstreampython3.14, python3.14-libs, python3.14-devel and 3 more0:3.14.7-2.el9_8RHSA-2026:58901
Red Hatenterprise_linux:9::baseospython3, python3.9, python3-libs and 2 more0:3.9.25-7.el9_8.3RHSA-2026:54268
Red Hatenterprise_linux:9::crbpython3, python3-idle, python3-test and 4 more0:3.9.25-7.el9_8.3RHSA-2026:54268
Red Hatenterprise_linux:9::crbpython3.12, python3.12-idle, python3.12-test and 4 more0:3.12.14-1.el9_8RHSA-2026:59009
Red Hatenterprise_linux:9::crbpython3.14, python3.14-idle, python3.14-test and 11 more0:3.14.7-2.el9_8RHSA-2026:58901
Red Hatenterprise_linux:10.2python3, python3.12, python3-idle and 8 more0:3.12.14-1.el10_2RHSA-2026:58902
20 more for Red Hat in the JSON and on Red Hat's page.
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy, saltbundlepy-core3.11.15-90002.4.15.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-cffi1.17.1-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-cryptography3.3.2-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-cssselect1.3.0-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-editables0.5-90002.3.3.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-exceptiongroup, saltbundlepy-exceptiongroup-test1.2.2-90002.3.3.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-flit-core3.12.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-hatch-fancy-pypi-readme, saltbundlepy-hatch-fancy-pypi-readme-test25.1.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-hatch-vcs, saltbundlepy-hatch-vcs-test0.5.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-hatchling1.31.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-idna3.10-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-iniconfig2.1.0-90002.3.3.1SUSE-SU-2026:4582-1
136 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 16.0python313, python313-core, python313-nogil and 2 more3.13.14-160000.2.1openSUSE-SU-2026:21595-1
openSUSETumbleweedpython-backports.zstd1.8.0-1.1openSUSE-SU-2026:12633-1
openSUSETumbleweedpython3103.10.20-7.1openSUSE-SU-2026:11285-1
openSUSETumbleweedpython3113.11.15-8.1openSUSE-SU-2026:11427-1
openSUSETumbleweedpython3123.12.13-8.1openSUSE-SU-2026:11428-1
openSUSETumbleweedpython3133.13.14-1.1openSUSE-SU-2026:11342-1
openSUSETumbleweedpython3143.14.6-2.1openSUSE-SU-2026:11343-1
openSUSETumbleweedpython3153.15.0~b3-2.1openSUSE-SU-2026:11286-1
AlmaLinux8python3-idle, python3-libs, python3-test and 4 more3.6.8-78.el8_10.alma.1ALSA-2026:56219
AlmaLinux8python3.12, python3.12-idle, python3.12-libs and 5 more3.12.14-1.el8_10ALSA-2026:58971
AlmaLinux9python3, python3-idle, python3-libs and 5 more3.9.25-7.el9_8.3ALSA-2026:54268
AlmaLinux9python3.12, python3.12-idle, python3.12-libs and 4 more3.12.14-1.el9_8ALSA-2026:59009
AlmaLinux9python3.14, python3.14-idle, python3.14-libs and 11 more3.14.7-2.el9_8ALSA-2026:58901
AlmaLinux10python-unversioned-command3.12.14-1.el10_2ALSA-2026:58902
AlmaLinux10python3.14, python3.14-idle, python3.14-libs and 11 more3.14.7-2.el10_2ALSA-2026:58928
Rocky Linux8python30:3.6.8-78.el8_10.rocky.0RLSA-2026:56219
Rocky Linux8python3.120:3.12.14-1.el8_10RLSA-2026:58971
Rocky Linux9python3.120:3.12.14-1.el9_8RLSA-2026:59009
Rocky Linux9python3.140:3.14.7-2.el9_8RLSA-2026:58901
Rocky Linux9python3.90:3.9.25-7.el9_8.3RLSA-2026:54268
Rocky Linux10python3.120:3.12.14-1.el10_2RLSA-2026:58902
Rocky Linux10python3.140:3.14.7-2.el10_2RLSA-2026:58928
Alpinev3.21, v3.22, v3.23python33.12.14-r0ALPINE-CVE-2026-11940
Alpinev3.24python33.14.7-r0ALPINE-CVE-2026-11940
Alpaquita23python33.11.15-r5BELL-CVE-2026-11940
Alpaquita25python33.12.13-r5BELL-CVE-2026-11940
Alpaquitastreampython33.14.5-r4BELL-CVE-2026-11940
BellSoft Hardened Containers23python33.11.15-r5BELL-CVE-2026-11940
BellSoft Hardened Containers25python33.12.13-r5BELL-CVE-2026-11940
BellSoft Hardened Containersstreampython33.14.5-r4BELL-CVE-2026-11940

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat products that appear in dependency searches under names containing "tarfile" but that are not the CPython standard-library tarfile module are not affected by this flaw. Matches such as the Go packages under github.com/containers/image / go.podman.io/image (.../docker/tarfile and .../docker/internal/tarfile) and the Apache Camel artifacts (camel-tarfile, camel-quarkus-tarfile) are unrelated implementations in other languages and do not include the vulnerable CPython tarfile.extractall() filter logic. The separately packaged PyPI component backports-tarfile is also out of scope for this CVE as assigned: it is not the CPython stdlib module named in the advisory and this CVE tracks the interpreter-provided tarfile shipped in Red Hat python3* packages.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10python3.12-0:3.12.14-1.el10_2Fixed 2026-08-24RHSA-2026:58902
Red Hat Enterprise Linux 10python3.14-0:3.14.7-2.el10_2Fixed 2026-08-24RHSA-2026:58928
Red Hat Enterprise Linux 10.0 Extended Update Supportpython3.12-0:3.12.9-2.el10_0.11Fixed 2026-09-03RHSA-2026:63024
Red Hat Enterprise Linux 8python3-0:3.6.8-78.el8_10Fixed 2026-08-18RHSA-2026:56219
Red Hat Enterprise Linux 8python3.12-0:3.12.14-1.el8_10Fixed 2026-08-24RHSA-2026:58971
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportpython3-0:3.6.8-47.el8_6.15Fixed 2026-09-08RHSA-2026:64816
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-Onpython3-0:3.6.8-47.el8_6.15Fixed 2026-09-08RHSA-2026:64816
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicepython3-0:3.6.8-51.el8_8.17Fixed 2026-09-08RHSA-2026:64806
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionspython3-0:3.6.8-51.el8_8.17Fixed 2026-09-08RHSA-2026:64806
Red Hat Enterprise Linux 9python3.9-0:3.9.25-7.el9_8.3Fixed 2026-08-12RHSA-2026:54268
Red Hat Enterprise Linux 6pythonNot affected
Red Hat Enterprise Linux 7pythonNot affected
Red Hat Enterprise Linux 7python3Not affected
Red Hat Enterprise Linux 8python3.11Will not fix
Red Hat Enterprise Linux 8python36:3.6/python36Not affected
Red Hat Enterprise Linux 8python38:3.8/python38Out of support scope
Red Hat Enterprise Linux 8python39:3.9/python39Out of support scope
Red Hat Enterprise Linux 9python3.11Will not fix
Red Hat Enterprise Linux AI (RHEL AI)rhelai1/bootc-amd-rhel9Not affected
Red Hat Enterprise Linux AI (RHEL AI)rhelai1/bootc-aws-nvidia-rhel9Not affected
114 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-11940.

Attack patterns (CAPEC)

  • CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-132 Symlink Attack Likelihood: Low · Severity: High
  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON