CVE-2026-100368 is a high-severity (CVSS 8.4) OS Command Injection vulnerability in CliInvoke.Specializations. A fix is available for CliInvoke.Specializations — see the affected versions and patch details below.
CliInvoke.Specializations: Command injection in PowerShell and Cmd shell wrappers
Exploitation Status
No confirmed exploitation observed yet
- A successful exploit gives an attacker total control of the affected component, not partial access.
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2026-100368.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
CVE-2026-100368 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.
Where this sits among everything scored
Of 383,485 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.
Real-World Exposure
CliInvoke.Specializations.NETCliInvoke.Specializations.NETCliInvoke.Specializations.NETCliInvoke.Specializations.NETCliInvoke.Specializations.NETAlastairLundy.CliInvoke.SpecializationsReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects NuGet packages — download data is not available via public APIs for these ecosystems.
Description
Impact
An OS command injection vulnerability exists in the PowerShell and Cmd shell wrappers provided by the CliInvoke.Specializations package (the PowershellProcessInvoker/CmdProcessInvoker invokers, and the UsePowerShell/UseCmd middleware in v3 pre-release versions).
The wrappers re-run a caller-supplied target and arguments inside a shell command (pwsh -Command ... / cmd /c ...). In affected versions the wrapped command was delivered to the operating system as a single ProcessStartInfo.Arguments string. The OS command-line parser re-tokenizes that string before the shell parses it, so a double quote (") in the target or arguments breaks OS-level quoting and lets the wrapped shell reassemble a second, unintended command.
An attacker could exploit this to execute arbitrary commands with the privileges of the host process.
Patches
The Specializations Packages now deliver the command via ProcessStartInfo.ArgumentList (natively where supported, and polyfilled in older TFMs), so that the operating system passes argv verbatim and only the shell parses the command once.
Upgrade to:
- 2.8.5 (2.8.x line)
- 2.9.4 (2.9.x line)
- 2.10.5 (2.10.x line)
- 3.0.0-beta.1 (3.x pre-release line)
Workarounds
No complete workaround is available. Until upgraded:
- Reject or strip
"from any target path or argument passed to the PowerShell/Cmd wrappers. On 2.2.0 – 2.9.2 and 3.0.0-alpha.1 – alpha.4, also reject shell metacharacters (;,|,&,$, backtick, parentheses). - Alternatively, bypass the wrappers for untrusted input and invoke the target process directly so that no second shell parse of the data occurs.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| .NETNuGet | CliInvoke.Specializations | ≥ 2.2.0&&< 2.8.5 | 2.8.5dotnet add package CliInvoke.Specializations --version 2.8.5 |
| .NETNuGet | CliInvoke.Specializations | ≥ 2.9.0&&< 2.9.4 | 2.9.4dotnet add package CliInvoke.Specializations --version 2.9.4 |
| .NETNuGet | CliInvoke.Specializations | ≥ 2.10.0&&< 2.10.5 | 2.10.5dotnet add package CliInvoke.Specializations --version 2.10.5 |
| .NETNuGet | CliInvoke.Specializations | ≥ 3.0.0-alpha.1&&< 3.0.0-beta.1 | 3.0.0-beta.1dotnet add package CliInvoke.Specializations --version 3.0.0-beta.1 |
| .NETNuGet | CliInvoke.Specializations | ≥ 3.0.0-alpha.8&&< 3.0.0-beta.1 | 3.0.0-beta.1dotnet add package CliInvoke.Specializations --version 3.0.0-beta.1 |
| .NETNuGet | AlastairLundy.CliInvoke.Specializations | ≥ 1.0.0-rc.1&&< 2.0.2 | 2.0.2dotnet add package AlastairLundy.CliInvoke.Specializations --version 2.0.2 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for CliInvoke.Specializations, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update CliInvoke.Specializations to 2.8.5 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-100368 is resolved across your whole dependency graph.
Workarounds
Stop passing untrusted input into the interpreter or shell: call the affected binary with an argument array rather than a composed command string, reject anything outside a strict allowlist of expected values, and run the component under an account that cannot reach beyond the work it legitimately does.
Frequently Asked Questions
Is CVE-2026-100368 in your dependencies?
Find it across NuGet, including transitive dependencies.