← Back to search

CVE-2026-106057

7.8 HIGHpublic exploit available

Published 2026-10-07 · Updated 2026-10-07

AI risk analysis

Summary
The patool library contains a command injection vulnerability in its Windows shell quoting implementation, allowing attackers to execute arbitrary commands when processing specially crafted archive filenames. This affects systems that use patool with shell=True parameter and can lead to full system compromise.
Exploitability
Exploitation is moderately difficult as it requires an attacker to upload or provide a crafted archive file with maliciously formatted filename containing cmd.exe metacharacters, but the vulnerability is remotely triggerable through standard archive processing workflows.
Blast radius
The impact could be significant across systems that process untrusted archives using patool, potentially allowing attackers to execute arbitrary commands with the privileges of the patool process, which may include system-level access.
Detection
No reliable host or network indicator is derivable from the published description.
Prioritized remediation
Upgrade to patool version 4.0.6 or later to fix the OS command injection vulnerability.
command-injectionwindowsarchive-processing

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

NVD 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.

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Weaknesses

CWE-78

Public exploit & PoC references

All references

Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.

Related CVEs

Related by shared AI tags and CWE weakness class. Browse the full archive.