Home / CVE DB / CVE-2025-4517
Standard
Vulnerability Identifier

CVE-2025-4517

2025-06-03
Severity Assessment
9.4
CRITICAL
CVSS v3.x Score
Clinical Analysis (Description)

Allows arbitrary filesystem writes outside the extraction directory during extraction with filter="data".


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.

Vector Sequencing

Attack Parameters

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Impact Consequences

Technical Impact

Unchanged
Scope
High
Confidentiality
High
Integrity
Low
Availability
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
Weakness Classification

CWE-CWE-22

Timeline

Time Line

PUBLICATION
03 Jun 2025
MODIFICATION
05 Jun 2025
FIRST PATCH
21 Apr 2026
Impact Statistics

Key Metrics

CVSS Score
9.4
CRITICAL
Patches
5
Available
Remediation Protocol

Recommended Solution

No automatic solution found. Check vendor references.
Recommended Actions for Administrators

Immediate Action Plan

1. Inventory

Identify all affected systems in your infrastructure.

2. Assessment

Assess exposure and criticality for your organization.

3. Mitigation

Apply patches or available workarounds.

4. Verification

Test and confirm effectiveness of applied measures.

⚠️ MAXIMUM PRIORITY - Immediate action required