System.Management.Automation is vulnerable to Improper Neutralization of Special Elements used in a Command ('Command Injection')
75
CVE Score
High
Improper Neutralization of Special Elements used in a Command ('Command Injection')
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.
Upgrade the System.Management.Automation library to the patch version.
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.
6.0.4 - 7.4.18
Fixed in 7.4.197.5.0 - 7.5.9
Fixed in 7.5.107.6.0 - 7.6.4
Fixed in 7.6.5System.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.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.