9.8

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

Modified
AliasesGHSA-47xc-9rr2-q7p4BIT-azure-cli-2022-39327PYSEC-2022-43177
Published 25-10-2022Last modified 22-04-2025

Vulnerability summary

CVE-2022-39327 is a critical (CVSS 9.8) Code Injection vulnerability in azure azure-cli. EPSS estimates a 4.17% chance of exploitation in the next 30 days, higher than 90.8% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
4.17%
0%100%
Low · +0.71 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Timeline

  1. 25-10-2022
    PublishedVulnerability first disclosed.
  2. 22-04-2025
    Last modifiedVulnerability information updated.

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 metrics

4 scores · 4 sources · 1 version

EPSS trend

Probability

4.17%

Chance of exploitation in the next 30 days

Percentile

91%

Versus all other CVEs

30-day change

Increase +0.71 pp

From 3.47% on 22-09-2026

22-09-202622-10-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Azure Cli

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Azure1 product
Microsoft1 product
PyPI1 product
  • azure-cli< 2.40.0
Ubuntu1 product
  • azure-cliAll versions (No fix recorded)

4 vendors · 4 products

References

9 links