powershell-utils is vulnerable to Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
75
CVE Score
High
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
powershell-utils exposes executePowerShell/executePowerShellSync, which build a PowerShell command string by calling escapeArgument to quote caller-supplied argument values before passing them to the PowerShell process. In versions up to 0.2.0, escapeArgument only doubled the ASCII single quote character, leaving several typographic single-quote variants (U+2018, U+2019, U+201A, U+201B) unescaped even though PowerShell's tokenizer treats them as equivalent string delimiters. An argument value containing one of these characters could prematurely close the quoted string and allow additional PowerShell statements to be appended.
Upgrade the powershell-utils package to version 0.2.1 or later.
You are affected if you are using a version that falls within the vulnerable range and your application passes values that may contain typographic quote characters into executePowerShell or executePowerShellSync as command arguments built with escapeArgument.
0.1.0 - 0.2.0
Fixed in 0.2.1powershell-utils is vulnerable to Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in versions 0.1.0 - 0.2.0.
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.