CVE-2026-106057
patool before 4.0.6 OS Command Injection on Windows via shell_quote_nt
wummel patool
CVSS
8.5HighExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)0.76%Chance of exploitation activity in the next 30 days, higher than 54% of CVEs. Scored 23 Oct 2026FIRST EPSS
What fixes it
- 4.0.6patoolCVE List
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
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.
Text from CVE List
Affected versions 2
- patoolaffected: all versions before 4.0.6CVE List
- patoolunaffected: 4.0.6CVE List
References 4
- github.com/wummel/patool/commit/592f35761f428afbcde2888ecd3cc4af43881aebFixvia CVE List
- vulncheck.com/advisories/patool-before-4.0.6-os-command-injection-on-windows-via-shell-quote-ntAdvisoryvia CVE List
- github.com/wummel/patoolReferencevia CVE List
- github.com/wummel/patool/blob/4.0.5/patoolib/util.py#L110-L116Referencevia CVE List