{"id":"UBUNTU-CVE-2026-106057","details":"patool before 4.0.6 contains an OS command injection vulnerability on Windows because shell_quote_nt fails to escape cmd.exe metacharacters or embedded double quotes in archive filenames. Attackers can supply crafted filenames like report&calc.gz for single-file formats run with shell=True to execute commands with patool process privileges.","modified":"2026-10-08T19:46:59.021126156Z","published":"2026-10-08T00:00:00Z","upstream":["CVE-2026-106057"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-106057"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-106057"},{"type":"REPORT","url":"https://github.com/wummel/patool"},{"type":"REPORT","url":"https://github.com/wummel/patool/blob/4.0.5/patoolib/util.py#L110-L116"},{"type":"REPORT","url":"https://github.com/wummel/patool/commit/592f35761f428afbcde2888ecd3cc4af43881aeb"},{"type":"REPORT","url":"https://www.vulncheck.com/advisories/patool-before-4.0.6-os-command-injection-on-windows-via-shell-quote-nt"}],"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-106057.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-106057.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-106057.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-106057.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_name":"patool","binary_version":"2.0.0-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-106057.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-106057.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"},{"type":"Ubuntu","score":"medium"}]}