{"id":"CVE-2026-100368","summary":"CliInvoke.Specializations: Command injection in PowerShell and Cmd shell wrappers","details":"CliInvoke is a .NET library for invoking command-line programs, and its `CliInvoke.Specializations` packages provide specialized wrappers for shells such as PowerShell and Windows Command Prompt. `CliInvoke.Specializations` versions 2.2.0 through 2.8.4, 2.9.0 through 2.9.3, 2.10.0 through 2.10.4, 3.0.0-alpha.1 through 3.0.0-alpha.4, and 3.0.0-alpha.8 through 3.0.0-alpha.10, as well as `AlastairLundy.CliInvoke.Specializations` versions 1.0.0-rc.1 through 1.6.1.1, contain an OS command injection vulnerability in their PowerShell and Cmd wrappers. The wrappers pass a caller-controlled target and arguments to `pwsh -Command` or `cmd /c` using a single `ProcessStartInfo.Arguments` string, allowing a double quote in untrusted input to break operating-system-level quoting and cause the shell to execute an additional command with the host process's privileges. The vulnerability is patched in `CliInvoke.Specializations` versions 2.8.5, 2.9.4, 2.10.5, and 3.0.0-beta.1, and in `AlastairLundy.CliInvoke.Specializations` version 2.0.2. No complete workaround is available; users unable to upgrade should reject or remove double quotes from target paths and arguments, additionally reject shell metacharacters in versions 2.2.0 through 2.9.2 and 3.0.0-alpha.1 through 3.0.0-alpha.4, or bypass the PowerShell and Cmd wrappers and invoke target processes directly when handling untrusted input.","aliases":["GHSA-wrvw-254r-wpmv"],"modified":"2026-09-27T03:46:34.631314717Z","published":"2026-09-25T19:53:56.299Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-78"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/100xxx/CVE-2026-100368.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/100xxx/CVE-2026-100368.json"},{"type":"ADVISORY","url":"https://github.com/alastairlundy/CliInvoke/security/advisories/GHSA-wrvw-254r-wpmv"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-100368"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/alastairlundy/cliinvoke","events":[{"introduced":"1c265d41770b08452219f084c8933578ed31287d"},{"fixed":"8303f7f1fdb245ce249c64c8eb5bd78338d67596"},{"fixed":"07a5b7e0bafe498da6d1d83b3768b1477e29275d"},{"introduced":"9dc281511887eb171659bcbd577e31ab3df12ead"},{"fixed":"875d729453f182dd63c068520730652737d9c344"},{"introduced":"f8bb45bf8fa77e5fa0b89d2acdec4c4e345f3b27"},{"fixed":"12156ec32864959268e16233f924136e9bd2f028"},{"introduced":"5914045758b5cedc8f0b75b6a66e9a5f7b2ba13a"},{"fixed":"393c47dc01cd617eab187991bf5bbc9a26bf36f2"},{"introduced":"137f0c81e54c430485e7999cf2c6fcc75d36669f"},{"fixed":"ba1f49024492f7dfa45c48bb6fe4bcf8e9f7463d"},{"introduced":"f157d1b8596b0f68e1bf61301d85b873cf004987"},{"fixed":"f86d9f38e70e9054dfbc72a03c4d799e2eaab1be"}],"database_specific":{"source":"DESCRIPTION","extracted_events":[{"introduced":"2.2.0"},{"fixed":"2.8.4"},{"fixed":"2.9.2"},{"introduced":"2.9.0"},{"fixed":"2.9.3"},{"introduced":"2.10.0"},{"fixed":"2.10.4"},{"introduced":"3.0.0-alpha.1"},{"fixed":"3.0.0-alpha.4"},{"introduced":"3.0.0-alpha.8"},{"fixed":"3.0.0-alpha.10"},{"introduced":"1.0.0-rc.1"},{"fixed":"1.6.1.1"}]}}],"versions":["2.8.3","2.9.2","2.10.3","3.0.0-alpha.9","2.10.2","2.9.1","3.0.0-alpha.8","2.10.1","2.9.0","2.10.0","2.8.2","2.8.1","2.8.0","2.7.0","2.7.0-beta.1","2.7.0-alpha.1","2.6.0","3.0.0-alpha.3","3.0.0-alpha.2","3.0.0-alpha.1","2.5.2","2.5.1","2.5.0","2.5.0-beta.1","2.5.0-alpha.1","2.4.0","2.4.0-beta.1","2.4.0-alpha.2","2.4.0-alpha.1","2.3.0","2.3.0-beta.1","2.3.0-alpha.3","2.3.0-alpha.2","2.3.0-alpha.1","2.2.0-v2","1.6.0","1.5.2","1.5.1","1.5.0","1.4.5","1.4.4","1.4.3","1.4.1","1.4.0","1.3.1","1.3.0","1.2.0","1.1.0","1.0.0","1.0.0-rc.2","1.0.0-rc.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-100368.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}