CVE-2025-4138

Updated: 2025-08-20 03:12:44.793386

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.


Links NIST CIRCL RHEL Ubuntu

Severity

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

Status

OS name Project name Version Score Severity Status Errata Last updated

Statement

Debian 10 python 3.6 7.5 HIGH Released CLSA-2025:1762528276 2025-11-07 20:52:32
Debian 10 python 2.7 7.5 HIGH Not Vulnerable 2025-11-28 18:36:59
Debian 11 python 2.7 7.5 HIGH Not Vulnerable 2025-11-28 18:36:59
Debian 11 python 3.6 7.5 HIGH Released CLSA-2025:1762527688 2025-11-07 20:52:30
Debian 12 python 3.6 7.5 HIGH Released CLSA-2025:1762527353 2025-11-07 20:52:29
Debian 12 python 2.7 7.5 HIGH Not Vulnerable 2025-11-28 18:36:58
Debian 13 python 3.6 7.5 HIGH Released CLSA-2025:1762527200 2025-11-07 20:52:26
Debian 13 python 2.7 7.5 HIGH Not Vulnerable 2025-11-28 18:37:00
EL 10 python 2.7 7.5 HIGH Not Vulnerable 2025-11-28 18:37:03
EL 10 python 3.6 7.5 HIGH Released CLSA-2025:1762529544 2025-11-07 20:52:33
Total: 26