Remote Code Execution (RCE) Affecting azure-cli package, versions [,2.40.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
4.24% (92nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Remote Code Execution (RCE) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-AZURECLI-3063430
  • published3 Nov 2022
  • disclosed26 Oct 2022
  • creditUnknown

Introduced: 26 Oct 2022

CVE-2022-39327  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade azure-cli to version 2.40.0 or higher.

Overview

azure-cli is an Azure command-line interface

Affected versions of this package are vulnerable to Remote Code Execution (RCE) via command injection, when an application processes user input that includes & or | characters.

NOTE:

This vulnerability is only exploitable on Windows systems by applications using Powershell (and not cmd) to execute CLI commands.

PoC

az keyvault secret set --vault-name SomeVault --name foobar --value "abc123|whoami"

CVSS Base Scores

version 3.1