CVE-2026-100368: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in alastairlundy CliInvoke.Specializations
CVE-2026-100368 is an OS command injection vulnerability in the alastairlundy CliInvoke.Specializations .NET library, affecting its PowerShell and Cmd wrappers. The vulnerability allows untrusted input containing double quotes to break shell quoting and execute arbitrary commands with the host process's privileges. Multiple versions from 1.0.0-rc.1 through 3.0.0-alpha.10 are affected. Patches are available in versions 2.8.5, 2.9.4, 2.10.5, 3.0.0-beta.1, and 2.0.2 for the respective packages. No complete workaround exists; users unable to upgrade should sanitize inputs by removing double quotes and shell metacharacters or avoid using the vulnerable wrappers.
AI Analysis
Technical Summary
CliInvoke.Specializations, a .NET library providing wrappers for invoking command-line shells like PowerShell and Windows Command Prompt, contains an OS command injection vulnerability (CWE-78) in 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, 3.0.0-alpha.8 through 3.0.0-alpha.10, and AlastairLundy.CliInvoke.Specializations versions 1.0.0-rc.1 through 1.6.1.1. The vulnerability arises because the wrappers pass a caller-controlled target and arguments to the shell commands using a single ProcessStartInfo.Arguments string, allowing a double quote in untrusted input to break quoting and cause execution of additional commands with the host process's privileges. The issue is patched in versions 2.8.5, 2.9.4, 2.10.5, 3.0.0-beta.1, and 2.0.2 respectively. No complete workaround exists; partial mitigations include rejecting or removing double quotes and shell metacharacters or bypassing the vulnerable wrappers.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary OS commands with the privileges of the host process running the vulnerable CliInvoke.Specializations wrappers. This can lead to full compromise of the affected system, including confidentiality, integrity, and availability impacts as indicated by the CVSS score of 8.4 (high).
Mitigation Recommendations
Official patches are available in CliInvoke.Specializations versions 2.8.5, 2.9.4, 2.10.5, 3.0.0-beta.1, and AlastairLundy.CliInvoke.Specializations version 2.0.2. Users should upgrade to these versions to fully remediate the vulnerability. No complete workaround exists; users unable to upgrade should sanitize inputs by rejecting or removing double quotes from target paths and arguments, additionally reject shell metacharacters in affected 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.
CVE-2026-100368: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in alastairlundy CliInvoke.Specializations
Description
CVE-2026-100368 is an OS command injection vulnerability in the alastairlundy CliInvoke.Specializations .NET library, affecting its PowerShell and Cmd wrappers. The vulnerability allows untrusted input containing double quotes to break shell quoting and execute arbitrary commands with the host process's privileges. Multiple versions from 1.0.0-rc.1 through 3.0.0-alpha.10 are affected. Patches are available in versions 2.8.5, 2.9.4, 2.10.5, 3.0.0-beta.1, and 2.0.2 for the respective packages. No complete workaround exists; users unable to upgrade should sanitize inputs by removing double quotes and shell metacharacters or avoid using the vulnerable wrappers.
CVSS v3.1
Score 8.4high
Affected software
alastairlundy
CliInvoke.Specializations
pkg:nuget/cliinvoke.specializationspkg:nuget/alastairlundy.cliinvoke.specializationsRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CliInvoke.Specializations, a .NET library providing wrappers for invoking command-line shells like PowerShell and Windows Command Prompt, contains an OS command injection vulnerability (CWE-78) in 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, 3.0.0-alpha.8 through 3.0.0-alpha.10, and AlastairLundy.CliInvoke.Specializations versions 1.0.0-rc.1 through 1.6.1.1. The vulnerability arises because the wrappers pass a caller-controlled target and arguments to the shell commands using a single ProcessStartInfo.Arguments string, allowing a double quote in untrusted input to break quoting and cause execution of additional commands with the host process's privileges. The issue is patched in versions 2.8.5, 2.9.4, 2.10.5, 3.0.0-beta.1, and 2.0.2 respectively. No complete workaround exists; partial mitigations include rejecting or removing double quotes and shell metacharacters or bypassing the vulnerable wrappers.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary OS commands with the privileges of the host process running the vulnerable CliInvoke.Specializations wrappers. This can lead to full compromise of the affected system, including confidentiality, integrity, and availability impacts as indicated by the CVSS score of 8.4 (high).
Mitigation Recommendations
Official patches are available in CliInvoke.Specializations versions 2.8.5, 2.9.4, 2.10.5, 3.0.0-beta.1, and AlastairLundy.CliInvoke.Specializations version 2.0.2. Users should upgrade to these versions to fully remediate the vulnerability. No complete workaround exists; users unable to upgrade should sanitize inputs by rejecting or removing double quotes from target paths and arguments, additionally reject shell metacharacters in affected 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.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-09-25T19:19:54.698Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6ab6d38ff7a7c54106395196
Added to database: 09/25/2026, 20:03:27 UTC
Last enriched: 09/25/2026, 20:17:42 UTC
Last updated: 09/25/2026, 20:22:12 UTC
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.