CVE-2024-12718

Updated: 2026-01-10 03:36:00.965695

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

EL 7 python 2.7 7.6 HIGH Not Vulnerable 2025-11-28 18:37:07
EL 7 python 3.6 7.6 HIGH Released CLSA-2025:1762528946 2025-11-07 20:52:54
EL 8 python 2.7 7.6 HIGH Not Vulnerable 2025-11-28 18:37:07
EL 8 python 3.6 7.6 HIGH Released CLSA-2025:1762528650 2025-11-07 20:52:53
EL 9 python 3.6 7.6 HIGH Released CLSA-2025:1762528386 2025-11-07 20:52:41
EL 9 python 2.7 7.6 HIGH Not Vulnerable 2025-11-28 18:37:04
Ubuntu 16.04 python 2.7 7.6 HIGH Not Vulnerable 2025-11-28 18:37:06
Ubuntu 16.04 python 3.6 7.6 HIGH Released CLSA-2025:1762527081 2025-11-07 20:52:45
Ubuntu 18.04 python 2.7 7.6 HIGH Not Vulnerable 2025-11-28 18:37:05
Ubuntu 18.04 python 3.6 7.6 HIGH Released CLSA-2025:1762526965 2025-11-07 20:52:44
Total: 26