CVE-2025-4330

Extraction filter bypass for linking outside extraction directory

HIGH
7.5
CVSS Score
Published: June 3, 2025 at 12:58 PM UTC
Updated: July 31, 2026 at 02:16 PM UTC
1 product affected across 1 vendorPython

Using CPython by Python Software Foundation?

Get instant alerts when new vulnerabilities affect CPython - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 0.9%
SSVC
No known exploit

Description

Allows the extraction filter to be ignored, allowing symlink targets to point outside the destination directory, and the modification of some file metadata. You are affected by this vulnerability if using the tarfile module to extract untrusted tar archives using TarFile.extractall() or TarFile.extract() using the filter= parameter with a value of "data" or "tar". See the tarfile extraction filters documentation https://docs.python.org/3/library/tarfile.html#tarfile-extraction-filter  for more information. Note that for Python 3.14 or later the default value of filter= changed from "no filtering" to `"data", so if you are relying on this new default behavior then your usage is also affected. Note that none of these vulnerabilities significantly affect the installation of source distributions which are tar archives as source distributions already allow arbitrary code execution during the build process. However when evaluating source distributions it's important to avoid installing source distributions with suspicious links.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 3.9.233.10.0 ≤ v < 3.10.183.11.0 ≤ v < 3.11.133.12.0 ≤ v < 3.12.113.13.0 ≤ v < 3.13.43.14.0a1 ≤ v < 3.14.0b33.10.03.11.03.12.03.13.03.14.0a1
Affected range stops below 3.10.18, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.11.13, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.12.11, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.13.4, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.14.0b3, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.9.23, so it looks safe — our inference, not a vendor statement

SSVC — Action Prioritization

SSVCNo known exploitAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.5HIGHPSF
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
HIGH
Availability
NONE
Vector?

Quick Info

StatusDEFERRED
CWE
CWE-22

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card