Skip to main content
← All vulnerabilities
CVE-2025-4435

Tarfile extracts filtered members when errorlevel=0

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 3.9.23, 3.10.18, 3.11.13, 3.12.11, 3.13.4, and 1 more
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • Python Software Foundation CPython

    fixed in 3.9.23; From 3.10.0 · fixed in 3.10.18; From 3.11.0 · fixed in 3.11.13; From 3.12.0 · fixed in 3.12.11; From 3.13.0 · fixed in 3.13.4; From 3.14.0a1 · fixed in 3.14.0b3

References 11

GitHub · python/cpython

mail.python.org