patool before 4.0.6 OS Command Injection on Windows via shell_quote_nt
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.
CVE-2026-106057
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-106057
patool
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"vendor": "wummel",
"product": "patool",
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "4.0.6",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "4.0.6",
"versionType": "semver"
}
],
"packageURL": "pkg:pypi/patool",
"defaultStatus": "unaffected"
}
]- Related CVEs
- CVE-2026-106057
Source reference:
/cveMetadata/cveId
Publisher severity
high
Source reference: /containers/cna/metrics
- Event
- #11885 · Revision 1
- Added to Heist Feed
- Publisher date