CVE-2025-4435

published 3 Jun 2025 · updated 16 Nov 2026

Tarfile extracts filtered members when errorlevel=0

7.5HighCVSS 7.5EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 3.9.23, 3.10.18, 3.11.13 and 3 more.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Python Software Foundation<3.9.23, >=3.10.0 <3.10.18, >=3.11.0 <3.11.13, >=3.12.0 <3.12.11, >=3.13.0 <3.13.4, >=3.14.0a1 <3.14.0b33.9.23, 3.10.18, 3.11.13, 3.12.11, 3.13.4, 3.14.0b3

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-4435 severity on Zeptric[![CVE-2025-4435](https://zeptric.io/badge/cve/CVE-2025-4435.svg)](https://zeptric.io/cve/CVE-2025-4435)