CVE-2026-29509

Source
https://cve.org/CVERecord?id=CVE-2026-29509
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-29509.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-29509
Downstream
Published
2026-06-26T19:31:07.165Z
Modified
2026-07-08T07:16:33.395705762Z
Severity
  • 5.3 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
Patool < 4.0.5 Path Traversal via safe_extract() Function
Details

Patool before 4.0.5 contains a path traversal vulnerability in the safeextract() function in patoolib/programs/pytarfile.py when running on Python before 3.12, where the iswithindirectory() 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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/29xxx/CVE-2026-29509.json",
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
        "CWE-22"
    ]
}
References

Affected packages

Git / github.com/wummel/patool

Affected ranges

Type
GIT
Repo
https://github.com/wummel/patool
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "source": [
        "AFFECTED_FIELD",
        "DESCRIPTION",
        "REFERENCES"
    ],
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "4.0.5"
        }
    ]
}

Affected versions

2.*
2.4.0
3.*
3.0.0
3.0.1
3.0.2
3.0.3
3.1.0
3.1.1
3.1.2
3.1.3
4.*
4.0.0
4.0.1
4.0.2
4.0.3
4.0.4
dist/patool-2.*
dist/patool-2.4.0-py2.py3-none-any.whl
upstream/0.*
upstream/0.18
upstream/0.19
upstream/1.*
upstream/1.0
upstream/1.1
upstream/1.10
upstream/1.11
upstream/1.12
upstream/1.13
upstream/1.14.0
upstream/1.14.1
upstream/1.15.0
upstream/1.2
upstream/1.4
upstream/1.5
upstream/1.6
upstream/1.7
upstream/1.8
upstream/1.9
upstream/2.*
upstream/2.0.0
upstream/2.1.0
upstream/2.1.1
upstream/2.2.0
upstream/2.3.0
upstream/2.4.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-29509.json"