Skip to main content
EPSS 0.6%top 54%

CVE-2025-4435: Vulnerability in Python Software Foundation CPython

0
High
VulnerabilityCVE-2025-4435cvecve-2025-4435gcvecwe-682
Published: 06/03/2025 (06/03/2025, 12:59:06 UTC)
Source: CVE Database V5
Vendor/Project: Python Software Foundation
Product: CPython

Description

CVE-2025-4435 is a vulnerability in the Python Software Foundation's CPython implementation affecting versions 3.10.0 through 3.14.0a1. The issue involves the TarFile module's errorlevel setting. When TarFile.errorlevel is set to 0 and extraction is performed with a filter, the expected behavior is to skip filtered members. However, in affected versions, these members are still extracted, contrary to documented behavior.

CVSS v3.1

Score 7.5high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected software

Affected versions
=3.10.0=3.11.0=3.12.0=3.13.0=3.14.0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/07/2026, 14:59:49 UTC

Technical Analysis

This vulnerability in CPython's TarFile module arises because setting errorlevel to 0 does not prevent extraction of filtered members as intended. Instead of skipping these members, the module extracts them, violating the documented behavior. This could lead to unintended extraction of archive members that should have been skipped based on the filter criteria. The issue affects CPython versions 3.10.0, 3.11.0, 3.12.0, 3.13.0, and 3.14.0a1. The CVSS v3.1 score is 7.5, indicating high severity, with an attack vector of network, low attack complexity, no privileges required, no user interaction, unchanged scope, no confidentiality impact, high integrity impact, and no availability impact.

Potential Impact

The vulnerability allows unintended extraction of archive members that should have been skipped according to the filter and errorlevel settings. This can lead to integrity violations where unauthorized or unexpected files are extracted, potentially causing application or system behavior to deviate from expectations. There is no direct confidentiality or availability impact reported.

Mitigation Recommendations

No official patch or fix is currently documented or linked. Patch status is not yet confirmed — check the Python Software Foundation advisory for current remediation guidance. Until a fix is available, users should be cautious when using TarFile.errorlevel = 0 with filters and consider alternative extraction methods or additional validation of extracted content.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
PSF
Date Reserved
2025-05-08T15:05:11.874Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 683f0dc3182aa0cae27ff441

Added to database: 06/03/2025, 14:59:15 UTC

Last enriched: 08/07/2026, 14:59:49 UTC

Last updated: 09/10/2026, 19:36:50 UTC

Views: 486

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses