Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.6%top 55%

CVE-2026-7774: CWE-22 in Python Software Foundation CPython

0
Medium
VulnerabilityCVE-2026-7774cvecve-2026-7774cwe-22
Published: 06/04/2026 (06/04/2026, 14:21:23 UTC)
Source: CVE Database V5
Vendor/Project: Python Software Foundation
Product: CPython

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 v4.0

Score 6.9medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vuln. Confidentiality
None
Vuln. Integrity
High
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

cpython
pkg:pypi/cpython
Affected versions
=3.14.0=3.15.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/08/2026, 10:48:22 UTC

Technical Analysis

CVE-2026-7774 describes a directory traversal vulnerability in the Python Software Foundation's CPython implementation. The tarfile.data_filter function can be bypassed by specially crafted tar archives containing link entries such as symlinks with empty or directory-like names. This bypass allows tarfile.extractall() to write files outside the target extraction directory, potentially overwriting arbitrary files if the extracting process has sufficient permissions. The vulnerability affects CPython versions 3.14.0 and 3.15.0a1. No official patch or remediation level is provided in the available data, and no known exploits are reported in the wild.

Potential Impact

An attacker can craft a malicious tar archive that, when extracted using tarfile.extractall(), writes files outside the intended extraction directory. This can lead to unauthorized file creation or overwriting, potentially compromising system integrity or security depending on the permissions of the extracting process. The vulnerability does not require privileges or user interaction but does require the victim to extract the malicious archive.

Mitigation Recommendations

Patch status is not yet confirmed — check the Python Software Foundation advisory for current remediation guidance. Until a fix is available, avoid extracting untrusted tar archives using tarfile.extractall(). Consider using safer extraction methods that validate paths or restrict extraction to intended directories.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
PSF
Date Reserved
2026-05-04T14:47:51.154Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a219e6ee29bf47b50b44825

Added to database: 06/04/2026, 15:49:02 UTC

Last enriched: 07/08/2026, 10:48:22 UTC

Last updated: 07/31/2026, 19:23:00 UTC

Views: 74

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses