Path traversal in Python - CVE-2025-4517

 

Path traversal in Python - CVE-2025-4517

Published: June 26, 2025 / Updated: May 22, 2026


Vulnerability identifier: #VU111966
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N/E:P/U:Amber
CVE-ID: CVE-2025-4517
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: Public exploit is available
Vendor: Python.org
Affected software:
Python

Detailed vulnerability description

The vulnerability allows a remote attacker to compromise the affected system.

The vulnerability exists due to input validation error in the tarfile module when extracting files from an archive with filter="data". A remote attacker can pass specially crafted archive to the application and write files to arbitrary locations on the system outside the extraction directory.


How to mitigate CVE-2025-4517

Install updates from vendor's website.

Sources