Read the docs

Path traversal in CPython tarfile tar filter lets archives write files

Priority LOW 30CWE-22Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
—
Confidentiality · integrity · availability
None · High · None
Fix status
Partial Red Hat: 9 without a fix

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and Red Hat.

Summary

CPython is affected before 3.11.18, from 3.12.0 before 3.12.16, from 3.13.0 before 3.13.18, from 3.14.0 before 3.14.10, from 3.15.0 before 3.15.2 and from 3.16.0a1 before 3.16.0. Crafted link entries, such as symlinks with empty or directory-like names, bypass the tarfile.tar_filter check (CWE-22). A malicious tar archive can make tarfile.extractall() with filter="tar" write files outside the destination directory.

Written with Claude Haiku 5.5 from the sources below · 2026-11-04

Description from the CNA

tarfile.tar_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() with filter="tar" to write files outside the destination directory, subject to the permissions of the extracting process. This is the tarfile.tar_filter counterpart of CVE-2026-7774, which covered tarfile.data_filter.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00261 18th percentileScored 2026-11-07
Fix Partial CPython (Python Software Foundation): 3.11.18, 3.12.16, 3.13.18 +3Red Hat: 9 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
Python Software FoundationCPythonbefore 3.11.18; 3.12.0 to before 3.12.16; 3.13.0 to before 3.13.18; 3.14.0 to before 3.14.10; 3.15.0 to before 3.15.2; 3.16.0a1 to before 3.16.03.11.18, 3.12.16, 3.13.18, 3.14.10, 3.15.2, 3.16.0Patch availableCNA
  • CPython VendorPython Software Foundation Affected before 3.11.18; 3.12.0 to before 3.12.16; 3.13.0 to before 3.13.18; 3.14.0 to before 3.14.10; 3.15.0 to before 3.15.2; 3.16.0a1 to before 3.16.0 Fixed in 3.11.18, 3.12.16, 3.13.18, 3.14.10, 3.15.2, 3.16.0 Patch available CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*——python-pillow
  • cpe:2.3:a:python:python:*:*:*:*:*:*:*:* Versions — — ·python-pillow

Remediation

Upgrade CPython to 3.11.18, 3.12.16, 3.13.18, 3.14.10, 3.15.2 or 3.16.0. Red Hat has no fix planned for Red Hat Enterprise Linux 6 and lists no available fix for Red Hat Enterprise Linux 7, 8, 9 and 10, Red Hat Enterprise Linux AI (RHEL AI) 3, Red Hat Hardened Images, Red Hat OpenShift Virtualization 4 and Self-service automation portal 2.

Written with Claude Haiku 5.5 from the sources below · 2026-11-04

  • Fix · CNA CPython (Python Software Foundation) Fixed in 3.11.18, 3.12.16, 3.13.18, 3.14.10, 3.15.2, 3.16.0

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Enterprise Linux 10AffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux 6AffectedNo fix planned: Out of support scope
Red Hat Enterprise Linux 7AffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux 8AffectedNo fix yet: Fix deferred
Red Hat Enterprise Linux 9AffectedNo fix yet
Red Hat Enterprise Linux AI (RHEL AI) 3AffectedNo fix yet: Fix deferred
Red Hat Hardened ImagesAffectedNo fix yet
Red Hat OpenShift Virtualization 4AffectedNo fix yet: Fix deferred
Self-service automation portal 2AffectedNo fix yet: Fix deferred

Timeline

  1. 2026-10-23 Threatist record created from CVE-2026-114583
  2. 2026-10-23 Alias added: GHSA-mw29-5qxh-rr87
  3. 2026-10-23 Priority changed: MEDIUM → LOW
  4. 2026-10-26 Fix available: Python Software Foundation/[email protected], Python Software Foundation/[email protected], Python Software Foundation/[email protected] · CNA
  5. 2026-10-26 3 new references · CNA
  6. 2026-10-27 Fix available: Python Software Foundation/[email protected], Python Software Foundation/[email protected] · CNA
  7. 2026-11-02 Weakness changed · CISA ADP
  8. 2026-11-02 CISA SSVC decision points changed
  9. 2026-11-04 Affected versions changed · Red Hat
  10. 2026-11-04 CVSS score added · Red Hat

References

  • TI-2024-07037 Quadratic complexity parsing cookies with backslashes CVSS 3.1HIGH 7.5
  • TI-2024-11791 Bypass extraction filter to modify file metadata outside extraction directory CVSS 3.1MEDIUM 5.3
  • TI-2024-00411 Quoted zip-bomb protection for zipfile CVSS 3.1MEDIUM 6.2
  • TI-2026-13296 `HTTPPasswordMgr` can send saved HTTPS credentials via HTTP because of incorrect scheme matching CVSS 4.0MEDIUM 6.0
  • TI-2024-06422 Email header injection due to unquoted newlines CVSS 3.1MEDIUM 5.5
  • TI-2026-04606 Possible to hijack modules in current working directory CVSS 4.0MEDIUM 5.6
See all 83 →

Sources