CVE-2024-12718

Updated: 2026-01-08 00:38:08.638356

Description:

Allows modifying some file metadata (e.g. last modified) with filter="data" or file permissions (chmod) with filter="tar" of files outside the extraction directory. 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. Only Python versions 3.12 or later are affected by these vulnerabilities, earlier versions don't include the extraction filter feature. 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

Debian 10 python 3.6 7.6 HIGH Released CLSA-2025:1762528276 2025-11-07 20:52:51
Debian 10 python 2.7 7.6 HIGH Not Vulnerable 2025-11-28 18:37:12
Debian 11 python 2.7 7.6 HIGH Not Vulnerable 2025-11-28 18:37:12
Debian 11 python 3.6 7.6 HIGH Released CLSA-2025:1762527688 2025-11-07 20:52:50
Debian 12 python 3.6 7.6 HIGH Released CLSA-2025:1762527353 2025-11-07 20:52:49
Debian 12 python 2.7 7.6 HIGH Not Vulnerable 2025-11-28 18:37:11
Debian 13 python 3.6 7.6 HIGH Released CLSA-2025:1762527200 2025-11-07 20:52:46
Debian 13 python 2.7 7.6 HIGH Not Vulnerable 2025-11-28 18:37:14
EL 10 python 2.7 7.6 HIGH Not Vulnerable 2025-11-28 18:37:16
EL 10 python 3.6 7.6 HIGH Released CLSA-2025:1762529544 2025-11-07 20:52:52
Total: 26