What’s Vulnerable › Vulnerabilities
CVE-2026-106057: patool before 4.0.6 OS Command Injection on Windows via shell_quote_nt
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.7% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-10-07 · updated 2026-10-07
- Weakness: CWE-78
Description
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.
Affected products
- wummel patool: before 4.0.6 — fixed in 4.0.6
How to fix
Upgrade to a fixed version: wummel patool 4.0.6. Check the vendor advisory for mitigations.
References
- https://github.com/wummel/patool
- https://github.com/wummel/patool/blob/4.0.5/patoolib/util.py#L110-L116
- https://github.com/wummel/patool/commit/592f35761f428afbcde2888ecd3cc4af43881aeb
- https://www.vulncheck.com/advisories/patool-before-4.0.6-os-command-injection-on-windows-via-shell-quote-nt
Get alerted when CVE-2026-106057 or the next vulnerability affects your stack