Vulnerability record · CVE-2022-39327 · published 25 October 2022
CVE-2022-39327: Microsoft azure command-line interface code injection vulnerability
Microsoft · Azure Command Line Interface
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.
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/Azure/azure-cli/pull/23514 | ExploitPatchThird Party Advisory |
| https://github.com/Azure/azure-cli/pull/24015 | PatchThird Party Advisory |
| https://github.com/Azure/azure-cli/security/advisories/GHSA-47xc-9rr2-q7p4 | ExploitMitigationThird Party Advisory |
| https://github.com/Azure/azure-cli/pull/23514 | ExploitPatchThird Party Advisory |
| https://github.com/Azure/azure-cli/pull/24015 | PatchThird Party Advisory |
| https://github.com/Azure/azure-cli/security/advisories/GHSA-47xc-9rr2-q7p4 | ExploitMitigationThird Party Advisory |
Track CVE-2022-39327 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2022-39327), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.