Intel

AIKIDO-2026-843536

System.Management.Automation is vulnerable to Improper Neutralization of Special Elements used in a Command ('Command Injection')

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Oct 19, 2026
October 19, 2026

75

CVE Score

High

Improper Neutralization of Special Elements used in a Command ('Command Injection')

Are you affected? Scan for Free

TL;DR

PowerShell's StartSSHProcess in RunspaceConnectionInfo.cs builds the ssh client command from KeyFilePath, UserName, ssh options, the computer name, and the subsystem when an SSH remoting session is created. Before the fix, each of those values was folded into one composite argument string and then joined and parsed again, by ParseArgv on Unix and by string.Join on Windows, so a space, quote, or extra ssh option inside the value became another argument to ssh. The fix passes each flag and value through a separate ArgumentList.Add call and quotes values in JoinArguments when it builds the Windows command line.

How do I fix this?

Upgrade the System.Management.Automation library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and establish an SSH remoting session whose key file path, user name, options, computer name, or subsystem is taken from an untrusted source.

Versions

6.0.4 - 7.4.18

Fixed in 7.4.19

7.5.0 - 7.5.9

Fixed in 7.5.10

7.6.0 - 7.6.4

Fixed in 7.6.5

Background info

System.Management.Automation is vulnerable to Improper Neutralization of Special Elements used in a Command ('Command Injection') in versions 6.0.4 - 7.4.18, 7.5.0 - 7.5.9 and 7.6.0 - 7.6.4.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea