Skip to content
CVE PROGRAM SOURCE RECORD5.3 Medium

CVE-2026-29509

Patool < 4.0.5 Path Traversal via safe_extract() Function

Description

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

wummel patool

Default version status: affected

  • 0 to < 4.0.5affected
pkg:github/wummel/patool

References