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
Affects patoolSource GCVE Database
Not known to be exploited · CVSS 8.5 High.
Data as of 24 Nov 2026, 22:28 UTC
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 7 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10patoolpkg:deb/ubuntu/patool?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSpatoolpkg:deb/ubuntu/patool?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSpatoolpkg:deb/ubuntu/patool?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSpatoolpkg:deb/ubuntu/patool?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSpatoolpkg:deb/ubuntu/patool?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Ubuntu 18.04 LTSpatoolpkg:deb/ubuntu/patool?arch=source&distro=bionicOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2026-106057 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-106057 (opens in a new tab)
- github.com/wummel/patool (opens in a new tab)
- github.com/wummel/patool/blob/4.0.5/patoolib/util.py (opens in a new tab)
- github.com/wummel/patool/commit/592f35761f428afbcde2888ecd3cc4af43881aeb (opens in a new tab)
- vulncheck.com/advisories/patool-before-4.0.6-os-command-injection-on-windows-via-shell-quote-nt (opens in a new tab)