CVE-2022-39327 HIGH

CVE-2022-39327: Improper Control of Generation of Code ('Code Injection') in Azure CLI

Vendor Azure
Product azure-cli
Weakness CWE-94 · Code injection
Published October 25, 2022
Last update April 22, 2025

CVSS base score

8.1/10
Attack vector Network
Attack complexity High
Privileges required None
User interaction None
Confidentiality High
Integrity High

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

October 25, 2022 CVE published
April 22, 2025 Record updated

Related vulnerabilities

04Related CVE