tarfile.data_filter path traversal bypass allows writing outside the extraction directory
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.
- openSUSE-SU-2026:11101-1
- openSUSE-SU-2026:11181-1
- openSUSE-SU-2026:11426-1
- openSUSE-SU-2026:11427-1
- openSUSE-SU-2026:11428-1
- openSUSE-SU-2026:11534-1
- SUSE-SU-2026:23191-1
- SUSE-SU-2026:23212-1
- SUSE-SU-2026:3530-1
- SUSE-SU-2026:3548-1
- SUSE-SU-2026:3560-1
- SUSE-SU-2026:3569-1
- SUSE-SU-2026:3601-1
- SUSE-SU-2026:3649-1
- SUSE-SU-2026:3851-1
- SUSE-SU-2026:3855-1
- SUSE-SU-2026:4174-1
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for the hundreds of thousands of vulnerabilities in the database; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for help- Published
- Jun 4, 2026
- Updated
- Aug 13, 2026
- EPSS
- 0.8% · 54th percentile
- CWE
- CWE-22
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
27
Monitor
Low priority for now.
- CVSS
- 27 / 40 · 6.9 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 0.8%
CISA SSVC decision
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
Vulnrichment: CISA's decision-tree inputs.
CNA vs NVD score
- NVD
- —
- CNA · PSF
- 6.9
- NVD has not scored this yet; the score shown is the CNA’s.
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
The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.
Affected systems
—
Versions reported by the vendor
Affected version ranges reported by the assigning authority (PSF). Independent of NVD's CPE analysis and usually ahead of it.
Python Software Foundation CPython
- before 3.10.21affected · python
- 3.11.0 and later · before 3.11.16affected · python
- 3.12.0 and later · before 3.12.14affected · python
- 3.13.0 and later · before 3.13.14affected · python
- 3.14.0 and later · before 3.14.6affected · python
- 3.15.0a1 and later · before 3.15.0b2affected · python
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Alpine:v3.24 | python3 | before 3.14.7-r0 | 3.14.7-r0 |
| Debian:13 | pypy3 | all versions | — |
| Debian:13 | python3.13 | before 3.13.5-2+deb13u3 | 3.13.5-2+deb13u3 |
| Debian:14 | pypy3 | before 8.0.0+dfsg-1 | 8.0.0+dfsg-1 |
| Debian:14 | python3.13 | before 3.13.14-1 | 3.13.14-1 |
| Debian:14 | python3.14 | before 3.14.6-1 | 3.14.6-1 |
| openSUSE:Tumbleweed | python310 | before 3.10.20-8.1 | 3.10.20-8.1 |
| openSUSE:Tumbleweed | python311 | before 3.11.15-8.1 | 3.11.15-8.1 |
| openSUSE:Tumbleweed | python312 | before 3.12.13-8.1 | 3.12.13-8.1 |
| openSUSE:Tumbleweed | python313 | before 3.13.14-2.1 | 3.13.14-2.1 |
| openSUSE:Tumbleweed | python314 | before 3.14.6-1.1 | 3.14.6-1.1 |
| openSUSE:Tumbleweed | python315 | before 3.15.0~b2-1.1 | 3.15.0~b2-1.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | python310 | before 3.10.20-150400.4.115.1 | 3.10.20-150400.4.115.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | python310 | before 3.10.20-150400.4.118.1 | 3.10.20-150400.4.118.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | python310-core | before 3.10.20-150400.4.118.1 | 3.10.20-150400.4.118.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | python310-core | before 3.10.20-150400.4.115.2 | 3.10.20-150400.4.115.2 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | python311-documentation | before 3.11.15-150400.9.94.1 | 3.11.15-150400.9.94.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP7 | python311-core | before 3.11.15-150600.3.62.2 | 3.11.15-150600.3.62.2 |
| SUSE:Linux Enterprise Module for Public Cloud 15 SP4 | python311 | before 3.11.15-150400.9.94.1 | 3.11.15-150400.9.94.1 |
| SUSE:Linux Enterprise Module for Public Cloud 15 SP4 | python311-core | before 3.11.15-150400.9.94.2 | 3.11.15-150400.9.94.2 |
| SUSE:Linux Enterprise Module for Python 3 15 SP7 | python311 | before 3.11.15-150600.3.62.2 | 3.11.15-150600.3.62.2 |
| SUSE:Linux Enterprise Module for Python 3 15 SP7 | python313 | before 3.13.14-150700.4.53.1 | 3.13.14-150700.4.53.1 |
| SUSE:Linux Enterprise Module for Python 3 15 SP7 | python313-core | before 3.13.14-150700.4.53.1 | 3.13.14-150700.4.53.1 |
| SUSE:Linux Enterprise Server 12 SP5-LTSS | python3 | before 3.4.10-25.191.2 | 3.4.10-25.191.2 |
+11
Same product
python software foundation: all recordsOther highest-scoring records for the same primary product.
- CVE-2025-4517Arbitrary writes via tarfile realpath overflow37Monitor
- CVE-2026-19445Use-after-free of a server-side SSLContext when sni_callback switches contexts36Monitor
- CVE-2026-6100Use-after-free in lzma.LZMADecompressor, bz2.BZ2Decompressor, and gzip.GzipFile after re-use under memory pressure36Monitor
- CVE-2026-3298Out-of-bounds write in Windows asyncio.ProacterEventLoop.sock_recvfrom_into() when using nbytes35Monitor
- CVE-2024-12254Unbounded memory buffering in SelectorSocketTransport.writelines()35Monitor
- CVE-2024-8088Infinite loop when iterating over zip archive entry names from zipfile.Path34Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| Python Software Foundation CPython | 3.10.21 | Vendor (CNA) |
| Python Software Foundation CPython | 3.11.16 | Vendor (CNA) |
| Python Software Foundation CPython | 3.12.14 | Vendor (CNA) |
| Python Software Foundation CPython | 3.13.14 | Vendor (CNA) |
| Python Software Foundation CPython | 3.14.6 | Vendor (CNA) |
| Python Software Foundation CPython | 3.15.0b2 | Vendor (CNA) |
| alpine:python3 | 3.14.7-r0 · Alpine:v3.24 | Package registry (OSV) |
| debian:pypy3 | 8.0.0+dfsg-1 · Debian:14 | Package registry (OSV) |
| debian:python3.13 | 3.13.5-2+deb13u3 · Debian:13 | Package registry (OSV) |
| debian:python3.14 | 3.14.6-1 · Debian:14 | Package registry (OSV) |
| opensuse:python310 | 3.10.20-8.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:python311 | 3.11.15-8.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:python312 | 3.12.13-8.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:python313 | 3.13.14-2.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:python314 | 3.14.6-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:python315 | 3.15.0~b2-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| suse:python3 | 3.4.10-25.191.2 · SUSE:Linux Enterprise Server 12 SP5-LTSS | Package registry (OSV) |
| suse:python3-base | 3.4.10-25.191.2 · SUSE:Linux Enterprise Server 12 SP5-LTSS | Package registry (OSV) |
| suse:python310 | 3.10.20-150400.4.115.1 · SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | Package registry (OSV) |
| suse:python310-core | 3.10.20-150400.4.115.2 · SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | Package registry (OSV) |
| suse:python311 | 3.11.15-slfo.1.1_5.1 · SUSE:Linux Micro 6.1 | Package registry (OSV) |
| suse:python311-core | 3.11.15-slfo.1.1_5.1 · SUSE:Linux Micro 6.1 | Package registry (OSV) |
| suse:python311-documentation | 3.11.15-150400.9.94.1 · SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | Package registry (OSV) |
| suse:python312 | 3.12.13-150600.3.62.1 · SUSE:Linux Enterprise Server 15 SP6-LTSS | Package registry (OSV) |
| suse:python312-core | 3.12.13-150600.3.62.3 · SUSE:Linux Enterprise Server 15 SP6-LTSS | Package registry (OSV) |
| suse:python313 | 3.13.14-150700.4.53.1 · SUSE:Linux Enterprise Module for Python 3 15 SP7 | Package registry (OSV) |
| suse:python313-core | 3.13.14-150700.4.53.1 · SUSE:Linux Enterprise Module for Python 3 15 SP7 | Package registry (OSV) |
| suse:python36 | 3.6.15-116.1 · SUSE:Linux Enterprise Server 12 SP5-LTSS | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
- Petr Viktorin (https://github.com/encukou)remediation developer
- Seth Larson (https://github.com/sethmlarson)coordinator
- Gregory P. Smith (https://github.com/gpshead)remediation developer
- Stan Ulbrych (https://github.com/StanFromIreland)coordinator
- Phùng Siêu Đạt (OPSWAT Unit 515)reporter
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
- CVE-2025-4517366 days apartArbitrary writes via tarfile realpath overflow37Monitor
- CVE-2026-1194019 days aparttarfile extraction filter bypass allows escaping the destination directory31Monitor
- CVE-2025-4138366 days apartBypassing extraction filter to create symlinks to arbitrary targets outside extraction directory30Monitor
- CVE-2025-4330366 days apartExtraction filter bypass for linking outside extraction directory30Monitor
- CVE-2026-1967276 days aparttarfile extraction filter bypass allows creation of directories outside the destination25Monitor
- CVE-2026-8791099 days aparttarfile hardlink fallback ignores custom extraction filter rejection via None22Monitor
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- Integrity
- Availability
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- A
- Scope
- X
Weakness class (CWE)
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')CVSS vector
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
nvd-secondary
Root cause
A user-supplied file name is joined with the allowed directory, but the result is never checked to confirm it is still inside that directory.
The bug in code
The whole CWE-22 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
const file = path.join(ROOT, req.query.name);res.sendFile(file);Fixed
const file = path.resolve(ROOT, req.query.name);if (!file.startsWith(ROOT + path.sep)) { return res.sendStatus(400);}res.sendFile(file);Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Path TraversalCAPEC-126likelihood: High · Very High
- Using Slashes and URL Encoding Combined to Bypass Validation LogicCAPEC-64likelihood: High · High
- Manipulating Web Input to File System CallsCAPEC-76likelihood: High · Very High
- Using Escaped Slashes in Alternate EncodingCAPEC-78likelihood: High · High
- Using Slashes in Alternate EncodingCAPEC-79likelihood: High · High
ATT&CK techniques
—
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- github.com/python/cpython/commit/0478bd83d82b255e0f29f613367a59d261e7eaa2
- github.com/python/cpython/commit/0d28f5e46e151718972dfabd91205444d0037b6d
- github.com/python/cpython/commit/10a13bee3c24f9c62b602e696334ff2272a40efc
- github.com/python/cpython/commit/578411982c16f753f4893532510099ef665117da
- github.com/python/cpython/commit/5cf47a248c35c375d610b87b2f72fd1ed454b558
- github.com/python/cpython/commit/74cca9a92fb7d653e404843a56b8bdc7b0afdbbf
- github.com/python/cpython/commit/c063191cb7f9170f9565e305f8aa2b79ab2bf609
- github.com/python/cpython/issues/149486
- github.com/python/cpython/pull/149487
- mail.python.org/archives/list/security-announce@python.org/thread/4FU62L2M6RMMHT2QPGQNPEHHUND7CEX5/
- www.openwall.com/lists/oss-security/2026/06/04/9
Vendor advisories and official records. Exploit/PoC links are deliberately left out.