Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2025-4435— Tarfile extracts filtered members when errorlevel=0

Quick assessment

Affected
Python Software Foundation CPython
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

CPython是Python基金会的一个用C语言实现的Python解释器。 CPython存在安全漏洞,该漏洞源于TarFile.errorlevel = 0时过滤成员未被跳过仍被提取。

CVSS 7.5 · High EPSS 0.59% · P46

Possible ATT&CK Techniques 1 AI

T1059 · Command and Scripting Interpreter

Affected Version Matrix 6

VendorProduct Version RangeStatus
Python Software Foundation CPython < 3.9.23 affected
3.10.0< 3.10.18 affected
3.11.0< 3.11.13 affected
3.12.0< 3.12.11 affected
3.13.0< 3.13.4 affected
3.14.0a1< 3.14.0b3 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-4435

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Tarfile extracts filtered members when errorlevel=0
Source: CVE Program / CVE List V5
Vulnerability Description
When using a TarFile.errorlevel = 0 and extracting with a filter the documented behavior is that any filtered members would be skipped and not extracted. However the actual behavior of TarFile.errorlevel = 0 in affected versions is that the member would still be extracted and not skipped.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
CPython 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
CPython是Python基金会的一个用C语言实现的Python解释器。 CPython存在安全漏洞,该漏洞源于TarFile.errorlevel = 0时过滤成员未被跳过仍被提取。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Python Software Foundation CPython 0 ~ 3.9.23 -

II. Public POCs for CVE-2025-4435

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 8714 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2025-4435

请登录查看更多情报信息。

Patches & Fixes for CVE-2025-4435 (5)

Same Patch Batch · Python Software Foundation · 2025-06-03 · 5 CVEs total

CVE-2025-4517 9.4 CRITICAL Arbitrary writes via tarfile realpath overflow
CVE-2025-4138 7.5 HIGH Bypassing extraction filter to create symlinks to arbitrary targets outside extraction dir
CVE-2025-4330 7.5 HIGH Extraction filter bypass for linking outside extraction directory
CVE-2024-12718 5.3 MEDIUM Bypass extraction filter to modify file metadata outside extraction directory

IV. Related Vulnerabilities

V. Comments for CVE-2025-4435

No comments yet


Leave a comment