OS command injection in patool on Windows via archive filenames
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-78.
Summary
patool before 4.0.6 contains an OS command injection flaw on Windows (CWE-78) because shell_quote_nt does not escape cmd.exe metacharacters or embedded double quotes in archive filenames. An attacker who can supply a crafted archive filename can run commands with the privileges of the patool process when single-file formats are handled through a shell.
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
Description from the 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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade patool to version 4.0.6, which fixes this issue.
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
- Fix · CNA patool (wummel) Fixed in 4.0.6
Vendor assessments
Timeline
- 2026-10-07 Threatist record created from CVE-2026-106057
- 2026-10-07 Alias added: GHSA-73h5-w67h-9rfh
- 2026-10-07 CISA SSVC decision points changed
- 2026-10-07 Priority changed: MEDIUM → LOW
- 2026-10-08 Affected versions changed · Red Hat
- 2026-10-08 CVSS score added · Red Hat
- 2026-10-09 Priority changed: LOW → MEDIUM
References
More wummel vulnerabilities
- TI-2026-23327 Patool < 4.0.5 Path Traversal via safe_extract() Function CVSS 4.0MEDIUM 5.3
Sources
- CVE-2026-106057 · CVE Program
- CVE-2026-106057 · NVD
- FIRST EPSS
- GHSA-73h5-w67h-9rfh · GitHub Advisory Database · CC BY 4.0
- CVE-2026-106057 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences