Vulnerabilities in pkg:nuget/AlastairLundy.CliInvoke.Specializations
PACKAGECVE-2026-100368 is a HIGH (CVSS 8.4) cliinvoke.specializations has command injection vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting CliInvoke.Specializations libraries in the NuGet ecosystem. The issue involves cliinvoke.specializations has command injection in powershell and cmd shell wrappers. Remediation is available by upgrading affected packages to version 2.8.5, 2.9.4, 2.10.5, 3.0.0-beta.1, 2.0.2.
pkg:nuget/AlastairLundy.CliInvoke.Specializations
Vulnerability advisories affecting package pkg:nuget/AlastairLundy.CliInvoke.Specializations. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-wrvw-254r-wpmv | CVE-2026-100368 | HIGH | CliInvoke.Specializations has command injection in PowerShell and Cmd shell wrappers |
CVE-2026-100368 at a Glance
Security Impact
CVSS: 8.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2026-100368
To remediate this vulnerability, upgrade all affected CliInvoke.Specializations dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade CliInvoke.Specializations to 2.8.5
Upgrade CliInvoke.Specializations to 2.9.4
Upgrade CliInvoke.Specializations to 2.10.5
Upgrade CliInvoke.Specializations to 3.0.0-beta.1
Upgrade CliInvoke.Specializations to 3.0.0-beta.1
Upgrade AlastairLundy.CliInvoke.Specializations to 2.0.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for CliInvoke.Specializations
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-100368, inspect your project dependencies for CliInvoke.Specializations:
inspect dependencies for CliInvoke.Specializations
Analyze the terminal output to locate any version of CliInvoke.Specializations in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.8.5), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. In CliInvoke.Specializations, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-100368 Affected CliInvoke.Specializations Versions
6 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
CliInvoke.Specializations
|
NuGet |
≥ 2.2.0
< 2.8.5
|
2.8.5
|
|
CliInvoke.Specializations
|
NuGet |
≥ 2.9.0
< 2.9.4
|
2.9.4
|
|
CliInvoke.Specializations
|
NuGet |
≥ 2.10.0
< 2.10.5
|
2.10.5
|
|
CliInvoke.Specializations
|
NuGet |
≥ 3.0.0-alpha.1
< 3.0.0-beta.1
|
3.0.0-beta.1
|
|
CliInvoke.Specializations
|
NuGet |
≥ 3.0.0-alpha.8
< 3.0.0-beta.1
|
3.0.0-beta.1
|
|
AlastairLundy.CliInvoke.Specializations
|
NuGet |
≥ 1.0.0-rc.1
< 2.0.2
|
2.0.2
|
References
Frequently Asked Questions
What is CVE-2026-100368?
Which CliInvoke.Specializations versions are affected?
What version fixes CVE-2026-100368?
Is CliInvoke.Specializations affected?
Is AlastairLundy.CliInvoke.Specializations affected?
What is the CVSS score of CVE-2026-100368?
What CWE is associated with CVE-2026-100368?
How can I check NuGet dependencies for CVE-2026-100368?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wrvw-254r-wpmv",
"modified" : "2026-09-25T21:41:48Z",
"published" : "2026-09-25T21:41:48Z",
"aliases" : [ "CVE-2026-100368" ],
"summary" : "CliInvoke.Specializations has command injection in PowerShell and Cmd shell wrappers",
"details" : "### Impact\nAn 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).\n\nThe 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. \n\nAn attacker could exploit this to execute arbitrary commands with the privileges of the host process.\n\n### Patches\nThe 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. \n\nUpgrade to:\n- **2.8.5** (2.8.x line)\n- **2.9.4** (2.9.x line)\n- **2.10.5** (2.10.x line)\n- **3.0.0-beta.1** (3.x pre-release line)\n\n### Workarounds\nNo complete workaround is available. Until upgraded:\n\n- 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).\n- Alternatively, bypass the wrappers for untrusted input and invoke the target process directly so that no second shell parse of the data occurs.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "NuGet",
"name" : "CliInvoke.Specializations"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.2.0"
}, {
"fixed" : "2.8.5"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.8.4"
}
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "CliInvoke.Specializations"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.9.0"
}, {
"fixed" : "2.9.4"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.9.3"
}
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "CliInvoke.Specializations"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.10.0"
}, {
"fixed" : "2.10.5"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.10.4"
}
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "CliInvoke.Specializations"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0-alpha.1"
}, {
"fixed" : "3.0.0-beta.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.0.0-alpha.4"
}
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "CliInvoke.Specializations"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0-alpha.8"
}, {
"fixed" : "3.0.0-beta.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.0.0-alpha.10"
}
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "AlastairLundy.CliInvoke.Specializations"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0.0-rc.1"
}, {
"fixed" : "2.0.2"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.6.1.1"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/alastairlundy/CliInvoke/security/advisories/GHSA-wrvw-254r-wpmv"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-100368"
}, {
"type" : "WEB",
"url" : "https://github.com/alastairlundy/CliInvoke/commit/1e98582f02eb43e345e5b97b8dd6ff9443806685"
}, {
"type" : "WEB",
"url" : "https://github.com/alastairlundy/CliInvoke/commit/2077e5239850e83dc9cc67ae6036dcd4e68a1876"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/alastairlundy/CliInvoke"
}, {
"type" : "WEB",
"url" : "https://github.com/alastairlundy/CliInvoke/releases/tag/2.10.5"
}, {
"type" : "WEB",
"url" : "https://github.com/alastairlundy/CliInvoke/releases/tag/3.0.0-beta.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-78" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-09-25T21:41:48Z",
"nvd_published_at" : "2026-09-25T20:17:05Z"
}
}