CVE-2026-11940
published high CVSS 4.0 · 7.8tarfile extraction filter bypass allows escaping the destination directory
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Python Software Foundation | — | CPython0 to < 3.10.21 · 3.11.0 to < 3.11.16 · 3.12.0 to < 3.12.14 · 3.13.0 to < 3.13.15 · 3.14.0 to < 3.14.7 · 3.15.0a1 to < 3.15.0b4 · Other versions: unaffected | Affected | Not stated | PSF |
| Amazon Linux | AL2 | Release evaluation | Not Affected; No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1910 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1929 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1930 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1931 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 10 | python-unversioned-command | Advisory build | 3.12.14-1.el10_2 | ALSA-2026:58902 |
| Alpine Linux | edge | python3 | Fixed | 3.14.7-r0 | Package fix record |
Show 99 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1963 | Fixed | Not stated | Amazon Linux assessment |
| Oracle Linux | 10 | python-unversioned-commandaarch64 | Advisory build | 0:3.12.15-1.0.1.el10_2 | ELSA-2026-58902 |
| AlmaLinux | 10 | python3.14 | Advisory build | 3.14.7-2.el10_2 | ALSA-2026:58928 |
| AlmaLinux | 10 | python3.14-debug | Advisory build | 3.14.7-2.el10_2 | ALSA-2026:58928 |
| AlmaLinux | 10 | python3.14-devel | Advisory build | 3.14.7-2.el10_2 | ALSA-2026:58928 |
| AlmaLinux | 10 | python3.14-freethreading | Advisory build | 3.14.7-2.el10_2 | ALSA-2026:58928 |
| AlmaLinux | 10 | python3.14-freethreading-debug | Advisory build | 3.14.7-2.el10_2 | ALSA-2026:58928 |
| AlmaLinux | 10 | python3.14-freethreading-devel | Advisory build | 3.14.7-2.el10_2 | ALSA-2026:58928 |
| AlmaLinux | 10 | python3.14-freethreading-idle | Advisory build | 3.14.7-2.el10_2 | ALSA-2026:58928 |
| AlmaLinux | 10 | python3.14-freethreading-libs | Advisory build | 3.14.7-2.el10_2 | ALSA-2026:58928 |
| AlmaLinux | 10 | python3.14-freethreading-test | Advisory build | 3.14.7-2.el10_2 | ALSA-2026:58928 |
| AlmaLinux | 10 | python3.14-freethreading-tkinter | Advisory build | 3.14.7-2.el10_2 | ALSA-2026:58928 |
| AlmaLinux | 10 | python3.14-idle | Advisory build | 3.14.7-2.el10_2 | ALSA-2026:58928 |
| AlmaLinux | 10 | python3.14-libs | Advisory build | 3.14.7-2.el10_2 | ALSA-2026:58928 |
| AlmaLinux | 10 | python3.14-test | Advisory build | 3.14.7-2.el10_2 | ALSA-2026:58928 |
| AlmaLinux | 10 | python3.14-tkinter | Advisory build | 3.14.7-2.el10_2 | ALSA-2026:58928 |
| AlmaLinux | 8 | platform-python | Advisory build | 3.6.8-78.el8_10.alma.1 | ALSA-2026:56219 |
| AlmaLinux | 8 | platform-python-debug | Advisory build | 3.6.8-78.el8_10.alma.1 | ALSA-2026:56219 |
| AlmaLinux | 8 | platform-python-devel | Advisory build | 3.6.8-78.el8_10.alma.1 | ALSA-2026:56219 |
| AlmaLinux | 8 | python3-idle | Advisory build | 3.6.8-78.el8_10.alma.1 | ALSA-2026:56219 |
| AlmaLinux | 8 | python3-libs | Advisory build | 3.6.8-78.el8_10.alma.1 | ALSA-2026:56219 |
| AlmaLinux | 8 | python3-test | Advisory build | 3.6.8-78.el8_10.alma.1 | ALSA-2026:56219 |
| AlmaLinux | 8 | python3-tkinter | Advisory build | 3.6.8-78.el8_10.alma.1 | ALSA-2026:56219 |
| AlmaLinux | 8 | python3.12 | Advisory build | 3.12.14-1.el8_10 | ALSA-2026:58971 |
| AlmaLinux | 8 | python3.12-debug | Advisory build | 3.12.14-1.el8_10 | ALSA-2026:58971 |
| AlmaLinux | 8 | python3.12-devel | Advisory build | 3.12.14-1.el8_10 | ALSA-2026:58971 |
| AlmaLinux | 8 | python3.12-idle | Advisory build | 3.12.14-1.el8_10 | ALSA-2026:58971 |
| AlmaLinux | 8 | python3.12-libs | Advisory build | 3.12.14-1.el8_10 | ALSA-2026:58971 |
| AlmaLinux | 8 | python3.12-rpm-macros | Advisory build | 3.12.14-1.el8_10 | ALSA-2026:58971 |
| AlmaLinux | 8 | python3.12-test | Advisory build | 3.12.14-1.el8_10 | ALSA-2026:58971 |
| AlmaLinux | 8 | python3.12-tkinter | Advisory build | 3.12.14-1.el8_10 | ALSA-2026:58971 |
| AlmaLinux | 9 | python-unversioned-command | Advisory build | 3.9.25-7.el9_8.3 | ALSA-2026:54268 |
| AlmaLinux | 9 | python3 | Advisory build | 3.9.25-7.el9_8.3 | ALSA-2026:54268 |
| AlmaLinux | 9 | python3-debug | Advisory build | 3.9.25-7.el9_8.3 | ALSA-2026:54268 |
| AlmaLinux | 9 | python3-devel | Advisory build | 3.9.25-7.el9_8.3 | ALSA-2026:54268 |
| AlmaLinux | 9 | python3-idle | Advisory build | 3.9.25-7.el9_8.3 | ALSA-2026:54268 |
| AlmaLinux | 9 | python3-libs | Advisory build | 3.9.25-7.el9_8.3 | ALSA-2026:54268 |
| AlmaLinux | 9 | python3-test | Advisory build | 3.9.25-7.el9_8.3 | ALSA-2026:54268 |
| AlmaLinux | 9 | python3-tkinter | Advisory build | 3.9.25-7.el9_8.3 | ALSA-2026:54268 |
| AlmaLinux | 9 | python3.12 | Advisory build | 3.12.14-1.el9_8 | ALSA-2026:59009 |
| AlmaLinux | 9 | python3.12-debug | Advisory build | 3.12.14-1.el9_8 | ALSA-2026:59009 |
| AlmaLinux | 9 | python3.12-devel | Advisory build | 3.12.14-1.el9_8 | ALSA-2026:59009 |
| AlmaLinux | 9 | python3.12-idle | Advisory build | 3.12.14-1.el9_8 | ALSA-2026:59009 |
| AlmaLinux | 9 | python3.12-libs | Advisory build | 3.12.14-1.el9_8 | ALSA-2026:59009 |
| AlmaLinux | 9 | python3.12-test | Advisory build | 3.12.14-1.el9_8 | ALSA-2026:59009 |
| AlmaLinux | 9 | python3.12-tkinter | Advisory build | 3.12.14-1.el9_8 | ALSA-2026:59009 |
| AlmaLinux | 9 | python3.14 | Advisory build | 3.14.7-2.el9_8 | ALSA-2026:58901 |
| AlmaLinux | 9 | python3.14-debug | Advisory build | 3.14.7-2.el9_8 | ALSA-2026:58901 |
| AlmaLinux | 9 | python3.14-devel | Advisory build | 3.14.7-2.el9_8 | ALSA-2026:58901 |
| AlmaLinux | 9 | python3.14-freethreading | Advisory build | 3.14.7-2.el9_8 | ALSA-2026:58901 |
| AlmaLinux | 9 | python3.14-freethreading-debug | Advisory build | 3.14.7-2.el9_8 | ALSA-2026:58901 |
| AlmaLinux | 9 | python3.14-freethreading-devel | Advisory build | 3.14.7-2.el9_8 | ALSA-2026:58901 |
| AlmaLinux | 9 | python3.14-freethreading-idle | Advisory build | 3.14.7-2.el9_8 | ALSA-2026:58901 |
| AlmaLinux | 9 | python3.14-freethreading-libs | Advisory build | 3.14.7-2.el9_8 | ALSA-2026:58901 |
| AlmaLinux | 9 | python3.14-freethreading-test | Advisory build | 3.14.7-2.el9_8 | ALSA-2026:58901 |
| AlmaLinux | 9 | python3.14-freethreading-tkinter | Advisory build | 3.14.7-2.el9_8 | ALSA-2026:58901 |
| AlmaLinux | 9 | python3.14-idle | Advisory build | 3.14.7-2.el9_8 | ALSA-2026:58901 |
| AlmaLinux | 9 | python3.14-libs | Advisory build | 3.14.7-2.el9_8 | ALSA-2026:58901 |
| AlmaLinux | 9 | python3.14-test | Advisory build | 3.14.7-2.el9_8 | ALSA-2026:58901 |
| AlmaLinux | 9 | python3.14-tkinter | Advisory build | 3.14.7-2.el9_8 | ALSA-2026:58901 |
| Alpine Linux | v3.21 | python3 | Fixed | 3.12.14-r0 | Package fix record |
| Alpine Linux | v3.22 | python3 | Fixed | 3.12.14-r0 | Package fix record |
| Alpine Linux | v3.23 | python3 | Fixed | 3.12.14-r0 | Package fix record |
| Alpine Linux | v3.24 | python3 | Fixed | 3.14.7-r0 | Package fix record |
| Oracle Linux | 10 | python-unversioned-commandx86_64 | Advisory build | 0:3.12.15-1.0.1.el10_2 | ELSA-2026-58902 |
| Oracle Linux | 10 | python3aarch64 | Advisory build | 0:3.12.15-1.0.1.el10_2 | ELSA-2026-58902 |
| Oracle Linux | 10 | python3x86_64 | Advisory build | 0:3.12.15-1.0.1.el10_2 | ELSA-2026-58902 |
| Oracle Linux | 10 | python3-debugaarch64 | Advisory build | 0:3.12.15-1.0.1.el10_2 | ELSA-2026-58902 |
| Oracle Linux | 10 | python3-debugx86_64 | Advisory build | 0:3.12.15-1.0.1.el10_2 | ELSA-2026-58902 |
| Oracle Linux | 10 | python3-develaarch64 | Advisory build | 0:3.12.15-1.0.1.el10_2 | ELSA-2026-58902 |
| Oracle Linux | 10 | python3-develx86_64 | Advisory build | 0:3.12.15-1.0.1.el10_2 | ELSA-2026-58902 |
| Oracle Linux | 10 | python3-idleaarch64 | Advisory build | 0:3.12.15-1.0.1.el10_2 | ELSA-2026-58902 |
| Oracle Linux | 10 | python3-idlex86_64 | Advisory build | 0:3.12.15-1.0.1.el10_2 | ELSA-2026-58902 |
| Oracle Linux | 10 | python3-libsaarch64 | Advisory build | 0:3.12.15-1.0.1.el10_2 | ELSA-2026-58902 |
| Oracle Linux | 10 | python3-libsx86_64 | Advisory build | 0:3.12.15-1.0.1.el10_2 | ELSA-2026-58902 |
| Oracle Linux | 10 | python3-testaarch64 | Advisory build | 0:3.12.15-1.0.1.el10_2 | ELSA-2026-58902 |
| Oracle Linux | 10 | python3-testx86_64 | Advisory build | 0:3.12.15-1.0.1.el10_2 | ELSA-2026-58902 |
| Oracle Linux | 10 | python3-tkinteraarch64 | Advisory build | 0:3.12.15-1.0.1.el10_2 | ELSA-2026-58902 |
| Oracle Linux | 10 | python3-tkinterx86_64 | Advisory build | 0:3.12.15-1.0.1.el10_2 | ELSA-2026-58902 |
| Oracle Linux | 10 | python3.14aarch64 | Advisory build | 0:3.14.7-2.el10_2 | ELSA-2026-58928 |
| Oracle Linux | 10 | python3.14x86_64 | Advisory build | 0:3.14.7-2.el10_2 | ELSA-2026-58928 |
| Oracle Linux | 10 | python3.14-debugaarch64 | Advisory build | 0:3.14.7-2.el10_2 | ELSA-2026-58928 |
| Oracle Linux | 10 | python3.14-debugx86_64 | Advisory build | 0:3.14.7-2.el10_2 | ELSA-2026-58928 |
| Oracle Linux | 10 | python3.14-develaarch64 | Advisory build | 0:3.14.7-2.el10_2 | ELSA-2026-58928 |
| Oracle Linux | 10 | python3.14-develx86_64 | Advisory build | 0:3.14.7-2.el10_2 | ELSA-2026-58928 |
| Oracle Linux | 10 | python3.14-freethreadingaarch64 | Advisory build | 0:3.14.7-2.el10_2 | ELSA-2026-58928 |
| Oracle Linux | 10 | python3.14-freethreadingx86_64 | Advisory build | 0:3.14.7-2.el10_2 | ELSA-2026-58928 |
| Oracle Linux | 10 | python3.14-freethreading-debugaarch64 | Advisory build | 0:3.14.7-2.el10_2 | ELSA-2026-58928 |
| Oracle Linux | 10 | python3.14-freethreading-debugx86_64 | Advisory build | 0:3.14.7-2.el10_2 | ELSA-2026-58928 |
| Oracle Linux | 10 | python3.14-freethreading-develaarch64 | Advisory build | 0:3.14.7-2.el10_2 | ELSA-2026-58928 |
| Oracle Linux | 10 | python3.14-freethreading-develx86_64 | Advisory build | 0:3.14.7-2.el10_2 | ELSA-2026-58928 |
| Oracle Linux | 10 | python3.14-freethreading-idleaarch64 | Advisory build | 0:3.14.7-2.el10_2 | ELSA-2026-58928 |
| Oracle Linux | 10 | python3.14-freethreading-idlex86_64 | Advisory build | 0:3.14.7-2.el10_2 | ELSA-2026-58928 |
| Oracle Linux | 10 | python3.14-freethreading-libsaarch64 | Advisory build | 0:3.14.7-2.el10_2 | ELSA-2026-58928 |
| Oracle Linux | 10 | python3.14-freethreading-libsx86_64 | Advisory build | 0:3.14.7-2.el10_2 | ELSA-2026-58928 |
| Oracle Linux | 10 | python3.14-freethreading-testaarch64 | Advisory build | 0:3.14.7-2.el10_2 | ELSA-2026-58928 |
| Oracle Linux | 10 | python3.14-freethreading-testx86_64 | Advisory build | 0:3.14.7-2.el10_2 | ELSA-2026-58928 |
| Oracle Linux | 10 | python3.14-freethreading-tkinteraarch64 | Advisory build | 0:3.14.7-2.el10_2 | ELSA-2026-58928 |
| Oracle Linux | 10 | python3.14-freethreading-tkinterx86_64 | Advisory build | 0:3.14.7-2.el10_2 | ELSA-2026-58928 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- PSF · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Python Software Foundation | CPython | 0 to < 3.10.21 (affected · python)3.11.0 to < 3.11.16 (affected · python)3.12.0 to < 3.12.14 (affected · python)3.13.0 to < 3.13.15 (affected · python)3.14.0 to < 3.14.7 (affected · python)3.15.0a1 to < 3.15.0b4 (affected · python)Default: unaffected | PSF · cna |
Weaknesses
2- CWE-22
- CWE-59
References
10- https://github.com/python/cpython/commit/0f852b3f07dd8e71e40326a51c02afbf16a42cc5
- https://github.com/python/cpython/commit/27dd970bf6b17ebca7c8ed486a40ab043ed7af8f
- https://github.com/python/cpython/commit/672825e2f36a57e173959b0d9d409d4560dab8df
- https://github.com/python/cpython/commit/771d12dda5140313db0ac550292987975651bbde
- https://github.com/python/cpython/commit/79c06bd5c6afa3c440d50faf7ee1b147c8832b4c
- https://github.com/python/cpython/commit/be13e86f6b9788a6f4d0419dffef72cbae5865c9
- https://github.com/python/cpython/commit/e5fdbd8d5aa923bd9111b112ea73bd6ec7c47877
- https://github.com/python/cpython/issues/151558
- https://github.com/python/cpython/pull/151559
- https://mail.python.org/archives/list/[email protected]/thread/LD6QIISNQFQYOIEPJNEUIPV7S3V76FZH/
Provider assertions
2PSF · cna
tarfile extraction filter bypass allows escaping the destination directory
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 4efce8c65d048273ec1b597b28c91faab0b3ff5af538f8d7d71371a29c0cb128
- Ingested
- 23 Sep 2026, 09:00:57 UTC
- Source record
- Official CVE record