CVE-2022-39327
HIGH8.1EPSS 1.4%Improper Control of Generation of Code ('Code Injection') in Azure CLI
Published: 10/25/2022Modified: 5/20/2025
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.
Affected packages (3)
- Bitnami/azure-clifrom 0, < 2.40.0
- PyPI/azure-clifrom 0, < 2.40.0
- PyPI/azure-clifrom 0, < 2.40.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
References (6)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2022-39327
- PATCHhttps://github.com/Azure/azure-cli
- WEBhttps://github.com/Azure/azure-cli/pull/23514
- WEBhttps://github.com/Azure/azure-cli/pull/24015
- WEBhttps://github.com/Azure/azure-cli/security/advisories/GHSA-47xc-9rr2-q7p4
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/azure-cli/PYSEC-2022-43177.yaml