CVE-2026-7774 json
tarfile.data_filter path traversal bypass allows writing outside the extraction directory
published 2026-06-04 5 mo ago modified 2026-08-19 2 mo ago also BIT-libpython-2026-7774 , BIT-python-2026-7774 , BIT-python-min-2026-7774 , EUVD-2026-34282
- cvss
- 6.9
- version 4.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 48%
- public exploits
- 0
- none known
Summary
tarfile.data_filter could be bypassed using crafted link entries, including symlinks with empty or directory-like names, to redirect later archive members outside the intended extraction directory. This allowed a malicious tar archive to cause tarfile.extractall() to write files outside the destination directory, subject to the permissions of the extracting process.
Patch / fix
- bitnami libpython 3.10.21, 3.11.16, 3.12.14, 3.13.14, 3.14.6
- bitnami python 3.10.21, 3.11.16, 3.12.14, 3.13.14, 3.14.6
- bitnami python-min 3.10.21, 3.11.16, 3.12.14, 3.13.14, 3.14.6
- Python Software Foundation CPython 3.10.21, 3.11.16, 3.12.14, 3.13.14, 3.14.6, 3.15.0b2
- pypy3 Debian 14 8.0.0+dfsg-1
- python3.13 Debian 13 3.13.5-2+deb13u3
- python3.14 Debian 14 3.14.6-1
debian advisories DEBIAN-CVE-2026-7774
- python3.12 Ubuntu 24.04 LTS 3.12.3-1ubuntu0.15
- python3.14 Ubuntu 26.04 LTS 3.14.4-1ubuntu0.1
ubuntu advisories UBUNTU-CVE-2026-7774
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- python3 SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES for SAP 15 SP4 +11 more 3.6.15-150300.10.129.1
- python3-core SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES for SAP 15 SP4 +12 more 3.6.15-150300.10.129.1
- grafana Multi Linux Manager Tools SLE-15 12.4.10-150002.4.27.1
- mgr-push Multi Linux Manager Tools SLE-15 5.2.5-150002.3.12.1
- spacecmd Multi Linux Manager Tools SLE-15 5.2.10-150002.3.15.1
- uyuni-tools Multi Linux Manager Tools SLE-Micro-5, Multi Linux Manager Tools SLE-15 5.2.17-150002.3.20.1
- venv-salt-minion Multi Linux Manager Tools SLE-Micro-5, Multi Linux Manager Tools SLE-15 3006.0-150002.5.22.1
- spacewalk-client-tools Multi Linux Manager Tools SLE-15 5.2.7-150002.3.12.1
suse advisories SUSE-SU-2026:4754-1SUSE-SU-2026:4744-1SUSE-SU-2026:4585-1SUSE-SU-2026:4584-1SUSE-SU-2026:4583-1SUSE-SU-2026:4582-1
- python313 openSUSE Tumbleweed 3.13.14-2.1
- python310 openSUSE Tumbleweed 3.10.20-8.1
- python311 openSUSE Tumbleweed 3.11.15-8.1
- python312 openSUSE Tumbleweed 3.12.13-8.1
- python314 openSUSE Tumbleweed 3.14.6-1.1
- python315 openSUSE Tumbleweed 3.15.0~b2-1.1
opensuse advisories openSUSE-SU-2026:11534-1openSUSE-SU-2026:11426-1openSUSE-SU-2026:11427-1openSUSE-SU-2026:11428-1openSUSE-SU-2026:11181-1openSUSE-SU-2026:11101-1
- python3 Alpine 3.24 3.14.7-r0
alpine advisories ALPINE-CVE-2026-7774
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- github.com/python/cpython@0478bd8 commit
- github.com/python/cpython@0d28f5e commit
- github.com/python/cpython@5784119 commit
- github.com/python/cpython@5cf47a2 commit
- github.com/python/cpython@74cca9a commit
- github.com/python/cpython@10a13be commit
- github.com/python/cpython@c063191 commit
- github.com/python/cpython#149487 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-7774 updated cvss 6.5
python: CPython: Python tarfile: Arbitrary file write via crafted link entries
-
Red Hat Exploit Intelligence exploit-intelligence-tech-preview/vulnerability-analysis-rhel9 Red Hat Enterprise Linux 6 python, tkinter, python-libs, python-test, python-tools Red Hat Enterprise Linux 7 python, python3, tkinter, python-libs, python-test, python-tools, +4 more Red Hat Enterprise Linux 8 scipy, python3, python36, python-nose, python-wheel, python3-bson, +25 more Red Hat Enterprise Linux 9 python3, python3.9, python3.12, python3-idle, python3-libs, python3-test, +6 more Red Hat Enterprise Linux 10 python3.12affected: workaround, no fix available “Fix deferred”
+2 more productsfewer
Red Hat Enterprise Linux AI (RHEL AI) 3 rhelai3/bootc-cuda-rhel9, rhelai3/bootc-rocm-rhel9, rhelai3/bootc-gaudi-rhel9, rhelai3/bootc-aws-cuda-rhel9, rhelai3/bootc-gcp-cuda-rhel9, rhelai3/bootc-azure-cuda-rhel9, +1 more Red Hat Self-service automation portal 2 ansible-automation-platform/bootc-automation-portal-rhel9 -
Red Hat OpenShift AI (RHOAI) rhoai/odh-dashboard-rhel9under investigation
-
Red Hat Enterprise Linux 8 python3.12, python3.12-idle, python3.12-libs, python3.12-test, python3.12-tkinter, python3.12-rpm-macros Red Hat Enterprise Linux 9 python3.14, python3.14-idle, python3.14-libs, python3.14-test, python3.14-tkinter, python3.14-freethreading, +4 more Red Hat Enterprise Linux 10 python3.14 Red Hat Hardened Images python3.10, python3.11, python3.12, python3.13, python3.14 Red Hat OpenShift Virtualization 4 container-native-virtualization/ocp-virt-validation-checkup-rhel9not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 5 mo ago
Exploit prediction
0.60% chance of exploitation in the next 30 days, higher than 48% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 6.9 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N |
| CNA | 4.0 | 6.9 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | libpython | <3.10.21 >=3.11.0, <3.11.16 >=3.12.0, <3.12.14 >=3.13.0, <3.13.14 >=3.14.0, <3.14.6 |
3.10.21 3.11.16 3.12.14 3.13.14 3.14.6 |
| bitnami | python | <3.10.21 >=3.11.0, <3.11.16 >=3.12.0, <3.12.14 >=3.13.0, <3.13.14 >=3.14.0, <3.14.6 |
3.10.21 3.11.16 3.12.14 3.13.14 3.14.6 |
| bitnami | python-min | <3.10.21 >=3.11.0, <3.11.16 >=3.12.0, <3.12.14 >=3.13.0, <3.13.14 >=3.14.0, <3.14.6 |
3.10.21 3.11.16 3.12.14 3.13.14 3.14.6 |
Affected products
- Python Software Foundation CPython
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/python/cpython/pull/149487
patch, web
-
github.com
/python/cpython/commit/0478bd83d82b255e0f29f613367a59d261e7eaa2
patch, web
-
github.com
/python/cpython/commit/0d28f5e46e151718972dfabd91205444d0037b6d
patch, web
-
github.com
/python/cpython/commit/578411982c16f753f4893532510099ef665117da
patch, web
-
github.com
/python/cpython/commit/5cf47a248c35c375d610b87b2f72fd1ed454b558
patch, web
-
github.com
/python/cpython/commit/74cca9a92fb7d653e404843a56b8bdc7b0afdbbf
patch, web
-
github.com
/python/cpython/commit/10a13bee3c24f9c62b602e696334ff2272a40efc
patch, web
-
github.com
/python/cpython/commit/c063191cb7f9170f9565e305f8aa2b79ab2bf609
patch, web
-
mail.python.org
/archives/list/security-announce@python.org/thread/4FU62L2M6RMMHT2QPGQNPEHHUND7CEX5/
vendor-advisory, web
-
github.com
/python/cpython/issues/149486
issue-tracking, web
-
openwall.com
/lists/oss-security/2026/06/04/9
web
-
nvd.nist.gov
/vuln/detail/CVE-2026-7774
web
Sources
- CVE List CVE-2026-7774
- NVD CVE-2026-7774
- OSV BIT-libpython-2026-7774
- OSV BIT-python-2026-7774
- OSV BIT-python-min-2026-7774
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.