Skip to content

CVE-2026-106057 patool before 4.0.6 OS Command Injection on Windows via shell_quote_nt

HighCVSS 8.5 EPSS 0.75%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
Ubuntu

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.

Upgrade path

5 packages: 1 fixed, 4 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/patool(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/patool(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/patool(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/patool(Ubuntu 26.10) All versions No fix listed No fix yet
pypi patool < 4.0.6 4.0.6 Fixed

Affected products

ProductAffected versionsFixed in
pypi patool < 4.0.6 4.0.6
ubuntu/patool(Ubuntu:22.04) All versions No fix listed
ubuntu/patool(Ubuntu:24.04) All versions No fix listed
ubuntu/patool(Ubuntu:26.04) All versions No fix listed
ubuntu/patool(Ubuntu:26.10) All versions No fix listed

References