{"id":"CVE-2026-106057","title":"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","summary":"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 repor…","severity":"high","cvss":7.8,"cvssVector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","cwe":["CWE-78"],"vendor":"wummel","product":"patool","affected":["patool < 4.0.6"],"published":"2026-10-07","updated":"2026-10-07","sourceUpdated":"2026-10-07T12:17:08.730","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-106057","references":[{"url":"https://github.com/wummel/patool","label":"disclosure@vulncheck.com"},{"url":"https://github.com/wummel/patool/blob/4.0.5/patoolib/util.py#L110-L116","label":"disclosure@vulncheck.com"},{"url":"https://github.com/wummel/patool/commit/592f35761f428afbcde2888ecd3cc4af43881aeb","label":"disclosure@vulncheck.com"},{"url":"https://www.vulncheck.com/advisories/patool-before-4.0.6-os-command-injection-on-windows-via-shell-quote-nt","label":"disclosure@vulncheck.com"}],"tags":["nvd","cve.org"],"ingestedAt":"2026-10-07T12:29:01.367Z","slug":"CVE-2026-106057","body":"## Overview\n\npatool 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.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"twilight","depthScore":43,"depthScoreParts":{"impact":42.9,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}