CVE-2025-4517

Updated: 2026-03-05 04:30:33.771923

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.


Links NIST CIRCL RHEL Ubuntu

Severity

Severity Score
CVSS Version 2.x NONE 0.0
CVSS Version 3.x HIGH 7.6

Status

OS name Project name Version Score Severity Status Errata Last updated

Statement

AlmaLinux 9.2 ESU python3.11 3.11.2 7.6 HIGH Released CLSA-2025:1752748693 2025-07-18 02:07:02
AlmaLinux 9.2 ESU python3 3.9.16 7.6 HIGH Released CLSA-2025:1753208636 2025-07-23 02:12:51
CentOS 6 ELS python 2.6.6 7.6 HIGH Not Vulnerable 2025-11-12 22:40:43 Not affected. CVE-2025-4517 requires the tarfile extraction filters (using TarFile.extract()/extract...
CentOS 7 ELS python 2.7.5 7.6 HIGH Not Vulnerable 2025-11-11 02:55:19 Not affected: CVE-2025-4517 targets Python’s tarfile extraction filters, which exist only in Pytho...
CentOS 7 ELS python3 3.6.8 7.6 HIGH Released CLSA-2025:1762980908 2025-11-21 21:19:51 Not affected: CVE-2025-4517 targets Python’s tarfile extraction filters, which exist only in Pytho...
CentOS 8.4 ELS python3 3.6.8 7.6 HIGH Released CLSA-2025:1753207418 2025-07-23 02:12:51
CentOS 8.4 ELS python2 2.7.18 7.6 HIGH Not Vulnerable 2025-12-22 16:43:49
CentOS 8.5 ELS python2 2.7.18 7.6 HIGH Not Vulnerable 2025-12-22 16:43:48 Not affected: CVE-2025-4517 targets Python’s tarfile extraction filters used with filter="data" or...
CentOS 8.5 ELS python3 3.6.8 7.6 HIGH Released CLSA-2025:1753209568 2025-07-23 02:12:52 Not affected: CVE-2025-4517 targets Python’s tarfile extraction filters used with filter="data" or...
CentOS Stream 8 ELS python2 2.7.18 7.6 HIGH Not Vulnerable 2025-12-22 16:43:48 Not affected: CVE-2025-4517 targets Python’s tarfile extraction filters used with filter="data" or...
Total: 18