Skip to main content
← All vulnerabilities
CVE-2026-29509

Patool < 4.0.5 Path Traversal via safe_extract() Function

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.0.5
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

Patool before 4.0.5 contains a path traversal vulnerability in the safe_extract() function in patoolib/programs/py_tarfile.py when running on Python before 3.12, where the is_within_directory() helper uses os.path.commonprefix() for character-level string comparison instead of path-level comparison, allowing a crafted archive member path to bypass the containment check. Attackers can supply a malicious archive with specially crafted member paths to write arbitrary files.

Timeline

  1. CVE published
  2. CISA SSVC assessment

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

  3. Record last updated

Affected versions

  • wummel patool

    fixed in 4.0.5

References 3

GitHub · wummel/patool

vulncheck.com