CVE-2025-4435

Tarfile extracts filtered members when errorlevel=0

State
Published
Severity
7.5 High
Published
Jun 3, 2025
Updated
Jul 31, 2026
Reserved
May 8, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NPSF

Weaknesses

Affected Products

ProductVersions
CPythonPython Software Foundation
  • before 3.9.23Affected
  • 3.10.0 to before 3.10.18Affected
  • 3.11.0 to before 3.11.13Affected
  • 3.12.0 to before 3.12.11Affected
  • 3.13.0 to before 3.13.4Affected
  • 3.14.0a1 to before 3.14.0b3Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.