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.
Severity (CVSS)
| Base score | 8.5 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| Vector | 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 |
| Provided by | CNA |
Weaknesses
- CWE-78 — Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected products
| Vendor | Product | Versions |
|---|---|---|
| wummel | patool | 0 to <4.0.6 [affected]; 4.0.6 [unaffected] |
References
- https://github.com/wummel/patool/commit/592f35761f428afbcde2888ecd3cc4af43881aeb (patch)
- https://github.com/wummel/patool (product)
- https://github.com/wummel/patool/blob/4.0.5/patoolib/util.py#L110-L116 (technical-description)
- https://www.vulncheck.com/advisories/patool-before-4.0.6-os-command-injection-on-windows-via-shell-quote-nt (third-party-advisory)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 08 Oct 2026 07:49 UTC.