{"id":"UBUNTU-CVE-2026-29509","details":"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.","modified":"2026-06-29T23:15:34.118248088Z","published":"2026-06-26T20:16:00Z","upstream":["CVE-2026-29509"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-29509"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-29509"}],"affected":[{"package":{"name":"patool","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/patool?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7-1","1.8-1","1.10-1"],"ecosystem_specific":{"binaries":[{"binary_name":"patool","binary_version":"1.10-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-29509.json"}},{"package":{"name":"patool","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/patool?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.12-3"],"ecosystem_specific":{"binaries":[{"binary_version":"1.12-3","binary_name":"patool"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-29509.json"}},{"package":{"name":"patool","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/patool?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.12-3","1.12-3build1","1.12-4","1.12-5"],"ecosystem_specific":{"binaries":[{"binary_name":"patool","binary_version":"1.12-5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-29509.json"}},{"package":{"name":"patool","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/patool?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.12-5"],"ecosystem_specific":{"binaries":[{"binary_version":"1.12-5","binary_name":"patool"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-29509.json"}},{"package":{"name":"patool","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/patool?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.12-5","2.0.0-2"],"ecosystem_specific":{"binaries":[{"binary_version":"2.0.0-2","binary_name":"patool"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-29509.json"}},{"package":{"name":"patool","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/patool?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.1.3-1","4.0.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"4.0.0-1","binary_name":"patool"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-29509.json"}},{"package":{"name":"patool","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/patool?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.0.0-1","4.0.3-1","4.0.4-1"],"ecosystem_specific":{"binaries":[{"binary_name":"patool","binary_version":"4.0.4-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-29509.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"},{"type":"CVSS_V4","score":"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"},{"type":"Ubuntu","score":"medium"}]}