CVE-2022-39327

HIGH

Azure CLI < 2.40.0 - OS Command Injection via PowerShell Special Characters

Title source: llm
STIX 2.1

Description

Azure CLI is the command-line interface for Microsoft Azure. In versions previous to 2.40.0, Azure CLI contains a vulnerability for potential code injection. Critical scenarios are where a hosting machine runs an Azure CLI command where parameter values have been provided by an external source. The vulnerability is only applicable when the Azure CLI command is run on a Windows machine and with any version of PowerShell and when the parameter value contains the `&` or `|` symbols. If any of these prerequisites are not met, this vulnerability is not applicable. Users should upgrade to version 2.40.0 or greater to receive a a mitigation for the vulnerability.

References (3)

Core 3
Core References
Exploit, Patch, Third Party Advisory
https://github.com/Azure/azure-cli/pull/23514
Patch, Third Party Advisory
https://github.com/Azure/azure-cli/pull/24015

Scores

CVSS v3 8.1
EPSS 0.0321
EPSS Percentile 86.5%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact total

Details

CWE
CWE-78 CWE-94
Status published
Products (2)
microsoft/azure_command-line_interface < 2.40.0
pypi/azure-cli 0 - 2.40.0PyPI
Published Oct 25, 2022
Tracked Since Feb 18, 2026