162 matches found
CVE-2007-4559
PoC or Exploit for CVE-2007-4559 A malicious TAR archive can include file paths like ../../../../etc/passwd, which try to "climb up" out of the intended extraction folder. If a Python script uses tarfile.extract or extractall without checking the file paths, it will unpack files to those location...
CVE-2025-4517-POC-Sudoers
CVE-2025-4517 - 添加用户到sudoers的POC 此脚本是谷歌安全研究公告 中发布的研究的武器化版本:https://github.com/google/security-research/security/advisories/GHSA-hgqp-3mmf-7h8f 原始研究通过修改一个简单的"flag"文件来演示漏洞,而此版本针对本地权限提升(LPE)场景进行了修改。它不仅仅是证明文件可以被写入提取目录之外,而是: 1. 针对/etc/sudoers.d/目录,这是Linux中常见的持久化和权限提升向量。 2. 使用相同的PATHMAX溢出技术来"致盲"Python...
CVE-2025-4517-Python-tarfile-filter-data-Bypass-PoC
CVE-2025-4517 — Python tarfile filter="data" Bypass PoC Vulnerabilidad de Path Traversal en el módulo tarfile de Python que afecta a las versiones 3.8.0 hasta 3.13.1. El sandbox filter="data" — diseñado para evitar extracciones no seguras — puede ser evadido creando rutas que exceden PATHMAX 4096...
CVE-2025-4138-poc
CVE-2025-4138 Generador Auto-Sudo Un script de Python para generar un archivo tar malicioso que explota CVE-2025-4138 / CVE-2025-4517 Recorrido de rutas mediante truncamiento de PATHMAX. Explotar con éxito esta vulnerabilidad permite a un atacante eludir los filtros de extracción de tarfile y...
CVE-2025-4517-poc
CVE-2025-4517 PoC – Python tarfile 路径遍历导致的任意文件写入 CVE-2025-4517 (CVSS 9.4 – 严重) Python 的 tarfile 模块存在一个漏洞,当使用 TarFile.extractall 或 TarFile.extract 并设置 filter="data" 或 filter="tar" 时,允许在解压目录之外进行任意文件写入。 受影响版本 : Python 3.12+(当显式使用 filter="data" 或 filter="tar" 时) Python 3.14+(当依赖新的默认 filter="data" 时)...
CVE-2007-4559-lab
CVE-2007-4559 — TarSlip:长达 15 年的目录遍历 仅用于教育目的。 本实验室在隔离的 Docker 容器内故意利用文件系统漏洞。请勿在任何包含敏感数据的系统或生产环境中运行。 一个自包含的 Docker 实验室,通过一个具体的端到端攻击链演示 CVE-2007-4559 —— Python tarfile 模块中臭名昭著的“TarSlip”漏洞: 1. 攻击者将一个精心构造的 tarball 上传到文件上传 API。 2. extractall 盲目地将名为 ../../../etc/passwd 的 tar 条目写入提取目录之外,覆盖真实的系统文件。 3...
CVE-2025-4138_tarfile_filter_bypass
CVE-2025-4138 — Bypass del filter="data" de Python tarfile Escritura arbitraria de archivos fuera del directorio de extracción mediante una cadena de symlinks PATHMAX. Versiones afectadas Python 3.12.0 – 3.12.10 Python 3.13.0 – 3.13.3 Corregido en 3.12.11 / 3.13.4 Crédito: Reportero: Caleb Brown...
CVE-2025-4517-tarfile-PATH_MAX-bypass
CVE-2025-4517 / CVE-2025-4330 — Python tarfile 数据过滤器绕过(通过 PATHMAX 溢出) 作者: 0xDTC CVE 编号: CVE-2025-4517 / CVE-2025-4330 安全通告: GHSA-6r6c-684h-9j7p CPython 修复: PR 135037 概述 Python 的 tarfile.extractallfilter="data" 本应通过阻止路径遍历(绝对路径、.. 序列以及逃逸出目标目录的符号链接)来安全地提取 tar 归档。然而,os.path.realpathstrict=False 中的一个...
CVE-2025-4138-4517-POC
CVE-2025-4138 / CVE-2025-4517 Omisión del filtro de Python tarfile mediante escape de enlace simbólico PATHMAX Escritura arbitraria de archivos mediante extracción confilter="data" / filter="tar" Tabla de contenidos Resumen Detalles de la...
CVE-2025-4517-POC
CVE-2025-4517 利用 说明 本利用及描述由AI编写。如果发现任何错误或问题,请告知我!本利用已测试并确认有效。感谢! 概述 本利用利用了 CVE-2025-4517 ,这是 Python tarfile 模块中的一个严重漏洞,通过组合符号链接路径遍历与硬链接操纵,可实现任意文件写入。该漏洞绕过了 Python 3.12 中引入的 filter="data" 保护机制。 漏洞详情 CVE ID : CVE-2025-4517 受影响版本 : Python 3.8.0 至 3.13.1 CVSS 评分 : 9.3(严重) 影响 : 以提升的权限进行任意文件写入 技术背景 该漏洞利...
Astra Linux – Vulnerability in Python 2.7, Pypy
In Lib/tarfile.py in Python 3.8.3, an attacker can create a TAR archive that causes an infinite loop when opened using tarfile.open, due to the lack of header validation in procpax...
CVE-2026-87910
A flaw was found in the Python tarfile module. When extracting an archive containing a link on systems that do not support links, the module falls back to extracting the linked member. During this fallback, a security filter designed to prevent the extraction of certain files is not properly...
CVE-2025-4517-PoC
CVE-2025-4517-PoC CVE-2025-4517 是 Python tarfile 模块中的一个漏洞,允许在解压不受信任的 tar 归档文件时,在提取目录之外写入任意文件。该问题出现在使用 TarFile.extract 或 TarFile.extractall 并指定 filter="data" 或 filter="tar" 时,后者无法完全阻止通过精心构造的 tar 成员进行的路径遍历攻击。 Python 3.14 将默认提取过滤器更改为 "data",因此依赖此默认值的应用程序也可能受到影响。虽然源代码分发的安装不受显著影响,但任何使用这些过滤器解压不受信任 tar...
CVE-2025-4138
CVE-2025-4138 Python Tarfile 模块目录遍历漏洞,带溢出的跨目录 影响:权限提升 工作原理: Python 的 TarFile.extractall 和 TarFile.extract 方法支持设置过滤器以提高这些方法使用时的安全性。Python 标准库提供了两种实现 tarfilter "tar" 和 datafilter "data" ,各自具有不同的检查措施来提升 tar 文件提取的安全性。 当处理包含符号链接的路径时,如果该路径短于 PATHMAX ,但在通过 os.path.realpath 替换符号链接后长于 PATHMAX ,则存在一个漏洞。任何超...
Linux Distros Unpatched Vulnerability : CVE-2026-87910
The Linux/Unix host has one or more packages installed that are impacted by a vulnerability without a vendor supplied patch available. - When tarfile extracts a link on a system that doesn't support links, it falls back to extracting a member from the archive. In this case, the filter function is...
CVE-2026-87910 tarfile hardlink fallback ignores custom extraction filter rejection via None
When tarfile extracts a link on a system that doesn't support links, it falls back to extracting a member from the archive. In this case, the filter function is run twice: once for the extracted member, and once with name set to the location of the link. For one of the calls, the return value was...
CVE-2026-19672
A flaw was found in the Python tarfile module. This vulnerability allows an attacker to create empty directories outside of the intended extraction destination on POSIX Portable Operating System Interface platforms. This occurs when processing a specially crafted archive containing member names...
BIT-PYTHON-2026-19672 tarfile extraction filter bypass allows creation of directories outside the destination
The tarfile module's tar and data extraction filters created directories outside the destination for members whose name leaves the destination and returns to it, such as ../evil/../dest/sub/file. The containment check used the resolved path, but intermediate directories were created from the name...
BIT-PYTHON-MIN-2026-19672 tarfile extraction filter bypass allows creation of directories outside the destination
The tarfile module's tar and data extraction filters created directories outside the destination for members whose name leaves the destination and returns to it, such as ../evil/../dest/sub/file. The containment check used the resolved path, but intermediate directories were created from the name...
Astra Linux – Vulnerabilities in Python 2.7, Python 3.11, Python 3.7
There is a defect in the CPython “tarfile” module that affects the “TarFile” extraction and entry enumeration APIs. The tar implementation processes tar archives with negative offsets without errors, which can lead to an infinite loop and deadlock during the parsing of maliciously crafted tar...