CVE-2026-7774: tarfile.data_filter path traversal bypass allows writing outside the extraction directory

Published Jun 4, 2026
·
Updated

Last updated 6 July 2026

Other sources

tarfile.datafilter 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.

MITRE

tarfile.datafilter path traversal bypass allows writing outside the extraction directory

Microsoft

Affected Software

9 affected componentsFixes available
Python CPython
Microsoft azl3 python3 3.12.9-11<3.12.9-13
3.12.9-13
Microsoft azl3 python3 3.12.9-13<3.12.9-13
3.12.9-13
debian/pypy3<=7.3.5+dfsg-2+deb11u2, <=7.3.5+dfsg-2+deb11u5, <=7.3.11+dfsg-2+deb12u3, <=7.3.19+dfsg-2, <=7.3.23+dfsg-1
debian/python2.7<=2.7.18-8+deb11u1
debian/python3.11<=3.11.2-6+deb12u7, <=3.11.2-6+deb12u3
debian/python3.13<=3.13.5-2+deb13u2
3.13.14-1
debian/python3.14
3.14.6-1
debian/python3.9<=3.9.2-1, <=3.9.2-1+deb11u7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.12.9-13
  2. Upgrade

    Upgrade debian/python3.13 to a version that resolves this vulnerability.

    Fixed in 3.13.14-1
  3. Upgrade

    Upgrade debian/python3.14 to a version that resolves this vulnerability.

    Fixed in 3.14.6-1

Event History

Jun 4, 2026
CVE Published
via MITRE·02:21 PM
Data Sourced
via MITRE·02:21 PM
DescriptionWeakness
Data Sourced
via NVD·04:16 PM
DescriptionSeverityWeakness
Jun 7, 2026
Data Sourced
via Microsoft·08:03 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:03 AM
Affected Software
Updated
via Microsoft·08:03 AM
DescriptionSeverity
Jul 7, 2026
Data Sourced
via Ubuntu·01:34 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Debian·01:35 PM
DescriptionAffected Software
Jul 9, 2026
Data Sourced
via Launchpad·01:37 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-7774?

CVE-2026-7774 has a medium severity rating of 6.9.

2

What does CVE-2026-7774 exploit?

CVE-2026-7774 exploits a path traversal vulnerability that allows writing files outside the intended extraction directory.

3

How do I fix CVE-2026-7774?

To fix CVE-2026-7774, update to the latest version of Python CPython that addresses this vulnerability.

4

What is the impact of CVE-2026-7774?

The impact of CVE-2026-7774 allows malicious tar archives to redirect file extraction, potentially overwriting sensitive files.

5

Which software is affected by CVE-2026-7774?

CVE-2026-7774 affects the Python CPython tarfile module.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203