Description (CNA)
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 (CNA)
| Vendor / product | Versions |
|---|---|
| wummel / patool | affected 0 before 4.0.6; unaffected 4.0.6 |
CWE
CWE-78
References
- https://github.com/wummel/patool/commit/592f35761f428afbcde2888ecd3cc4af43881aeb
- https://github.com/wummel/patool
- https://github.com/wummel/patool/blob/4.0.5/patoolib/util.py#L110-L116
- https://www.vulncheck.com/advisories/patool-before-4.0.6-os-command-injection-on-windows-via-shell-quote-nt
ADP enrichment
No English description supplied.
No references supplied.