CVE-2026-100368: CliInvoke.Specializations CliInvoke.Specializations Has Command Injection Vulnerability

HIGH
Advisory Identifier: GHSA-wrvw-254r-wpmv
CVSS 8.4
CWE-78
Published
Advisory Summary

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

CVE-2026-100368 at a Glance

CVE Identifier CVE-2026-100368
GHSA Identifier GHSA-wrvw-254r-wpmv
Severity HIGH
CVSS v3.1 Base Score 8.4
CWE Classification CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected Product CliInvoke.Specializations
Package Ecosystem NuGet
Published Date
Last Updated

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

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

CliInvoke.Specializations fixed: 2.8.5
Upgrade CliInvoke.Specializations to 2.8.5
CliInvoke.Specializations fixed: 2.9.4
Upgrade CliInvoke.Specializations to 2.9.4
CliInvoke.Specializations fixed: 2.10.5
Upgrade CliInvoke.Specializations to 2.10.5
CliInvoke.Specializations fixed: 3.0.0-beta.1
Upgrade CliInvoke.Specializations to 3.0.0-beta.1
CliInvoke.Specializations fixed: 3.0.0-beta.1
Upgrade CliInvoke.Specializations to 3.0.0-beta.1
AlastairLundy.CliInvoke.Specializations fixed: 2.0.2
Upgrade AlastairLundy.CliInvoke.Specializations to 2.0.2
Verify Direct and Transitive Dependencies

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

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

CVE-2026-100368 Affected CliInvoke.Specializations Versions

6 component(s)
Fixed Versions:
2.8.52.9.42.10.53.0.0-beta.12.0.2
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?
CVE-2026-100368 is a security vulnerability in CliInvoke.Specializations involving CliInvoke.Specializations has command injection in PowerShell and Cmd shell wrappers under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
Which CliInvoke.Specializations versions are affected?
Affected versions include releases prior to 2.8.5, 2.9.4, 2.10.5, 3.0.0-beta.1, 2.0.2 across affected packages: CliInvoke.Specializations, AlastairLundy.CliInvoke.Specializations.
What version fixes CVE-2026-100368?
Upgrading to 2.8.5, 2.9.4, 2.10.5, 3.0.0-beta.1, 2.0.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is CliInvoke.Specializations affected?
Yes, CliInvoke.Specializations is affected in releases prior to 2.8.5, 2.9.4, 2.10.5, 3.0.0-beta.1. Upgrade your dependency to 2.8.5, 2.9.4, 2.10.5, 3.0.0-beta.1 or later.
Is AlastairLundy.CliInvoke.Specializations affected?
Yes, AlastairLundy.CliInvoke.Specializations is affected in releases prior to 2.0.2. Upgrade your dependency to 2.0.2 or later.
What is the CVSS score of CVE-2026-100368?
CVE-2026-100368 has a CVSS v3.1 base score of 8.4 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2026-100368?
CVE-2026-100368 is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (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.).
How can I check NuGet dependencies for CVE-2026-100368?
Run the dependency tree command: 'inspect dependencies for CliInvoke.Specializations'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}