Skip to main content
← All vulnerabilities
CVE-2022-39327GHSA-47XC-9RR2-Q7P4BIT-AZURE-CLI-2022-39327PYSEC-2022-43177

Improper Control of Generation of Code ('Code Injection') in Azure CLI

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.40.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • Azure azure-cli

    fixed in 2.40.0

  • azure-cliPyPI

    fixed in 2.40.0

References 3

GitHub · Azure/azure-cli