CVE-2026-7774
Vulnerability Summary
Timeline
Description
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.
CVSS Metrics
- v4.0•MEDIUM•Score: 6.9CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
- v4.0•MEDIUM•Score: 6.9CVSS: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
EPSS Trends
Current EPSS score: 0.60%• Percentile: 47%
Techniques & Countermeasures
- CWE-22•Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Affected Systems
- alpine•python3
< 3.14.7-r0
- chainguard•python-3.10
< 3.10.21-r0
- chainguard•python-3.11
< 3.11.15-r9
- chainguard•python-3.12
< 3.12.13-r7
- chainguard•python-3.13
< 3.13.14-r0
- chainguard•python-3.14
< 3.14.6-r1
- wolfi•python-3.10
< 3.10.21-r0
- wolfi•python-3.11
< 3.11.15-r9
- wolfi•python-3.12
< 3.12.13-r7
- wolfi•python-3.13
< 3.13.14-r0
- wolfi•python-3.14
< 3.14.6-r1
- debian•pypy3
all | all
- debian•python3.13
< 3.13.5-2+deb13u3 | < 3.13.14-1
- debian•python3.14
< 3.14.6-1
- python software foundation•cpython
< 3.15.0 | < 3.13.14 | < 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.15.0a1, < 3.15.0b2
- suse•python310-core&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS
< 3.10.20-150400.4.118.1
- suse•python310-core&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS
< 3.10.20-150400.4.118.1
- suse•python310-core&distro=SUSE Linux Enterprise Server 15 SP4-LTSS
< 3.10.20-150400.4.118.1
- suse•python310-core&distro=SUSE Linux Enterprise Server for SAP Applications 15 SP4
< 3.10.20-150400.4.118.1
- suse•python310&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS
< 3.10.20-150400.4.118.1
- suse•python310&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS
< 3.10.20-150400.4.118.1
- suse•python310&distro=SUSE Linux Enterprise Server 15 SP4-LTSS
< 3.10.20-150400.4.118.1
- suse•python310&distro=SUSE Linux Enterprise Server for SAP Applications 15 SP4
< 3.10.20-150400.4.118.1
References (19)
- https://github.com/python/cpython/pull/149487
- https://github.com/python/cpython/issues/149486
- https://mail.python.org/archives/list/security-announce@python.org/thread/4FU62L2M6RMMHT2QPGQNPEHHUND7CEX5/
- http://www.openwall.com/lists/oss-security/2026/06/04/9
- https://github.com/python/cpython/commit/0478bd83d82b255e0f29f613367a59d261e7eaa2
- https://github.com/python/cpython/commit/0d28f5e46e151718972dfabd91205444d0037b6d
- https://github.com/python/cpython/commit/578411982c16f753f4893532510099ef665117da
- https://github.com/python/cpython/commit/5cf47a248c35c375d610b87b2f72fd1ed454b558
- https://github.com/python/cpython/commit/74cca9a92fb7d653e404843a56b8bdc7b0afdbbf
- https://github.com/python/cpython/commit/10a13bee3c24f9c62b602e696334ff2272a40efc
- https://github.com/python/cpython/commit/c063191cb7f9170f9565e305f8aa2b79ab2bf609
- https://security-tracker.debian.org/tracker/CVE-2026-7774
- https://security.alpinelinux.org/vuln/CVE-2026-7774
- https://www.suse.com/support/update/announcement/2026/suse-su-20263851-1/
- https://bugzilla.suse.com/1267821
- https://www.suse.com/security/cve/CVE-2026-7774
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/7xxx/CVE-2026-7774.json
- https://nvd.nist.gov/vuln/detail/CVE-2026-7774
- https://github.com/python/cpython