A plain-language summary of this CVE is being written; the description below is the NVD's own text.
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
The NVD has not attached product data to this record yet; the description names what is affected.
Weakness type
References
- github.com /wummel/patool/blob/main/doc/changelog.txt
- github.com /wummel/patool/releases/tag/4.0.5
- www.vulncheck.com /advisories/patool-path-traversal-via-safe-extract-function
Ingati scans your site every week and tells you when a CVE like this one affects something it found there.
Start scanning