Directory Traversal Affecting patool package, versions <4.0.0-1+deb13u1


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.28% (23rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-PATOOL-22555780
  • published15 Nov 2026
  • disclosed26 Jun 2026

Introduced: 26 Jun 2026

CVE-2026-29509  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade Echo:latest patool to version 4.0.0-1+deb13u1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream patool package and not the patool package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1