VULNERABILITY INTELLIGENCE

CVE-2026-29509

CVSS score5.4 MEDIUM
EPSS probability0.37%
CISA KEVNot currently listed
Published2026-06-26
Last modified2026-10-25
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

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.

Weakness classification

  • disclosure@vulncheck.com: CWE-22

Primary references