Live threats

All CVEs / Microsoft

CVE-2022-39327Microsoft Azure Command-line Interface

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
4.2%
probability of exploitation in 30 days · percentile 92
Auth required
No
Published
Oct 25, 2022
Updated
Jun 17, 2026
Category
Application · Windows
Weakness (CWE)
CWE-94, CWE-78
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Azure Command-line Interface.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI azure-cli < 2.40.0 2.40.0 pip install "azure-cli>=2.40.0"
PyPI azure-cli < 2.40.0 2.40.0 pip install "azure-cli>=2.40.0"

Per OSV / GitHub Advisories (GHSA-47xc-9rr2-q7p4, PYSEC-2022-43177). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
microsoftazure_command-line_interface< 2.40.0

Official sources

References

Links published by the sources. Open them with care.