CVE-2026-106057
patool before 4.0.6 OS Command Injection on Windows via shell_quote_nt
- State
- Published
- Severity
- 8.5 High
- Published
- Oct 7, 2026
- Updated
- Oct 7, 2026
- Reserved
- Oct 6, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 8.5 High | 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 | VulnCheck |
| 3.1 | 7.8 High | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | VulnCheck |
Weaknesses
- CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected Products
| Product | Versions |
|---|---|
patoolwummel |
|
References
- Patch Commitpatch
- https://github.com/wummel/patoolproduct
- https://github.com/wummel/patool/blob/4.0.5/patoolib/util.py#L110-L116technical-description
- VulnCheck Advisory: patool before 4.0.6 OS Command Injection on Windows via shell_quote_ntthird-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.