Advisory

PYSEC-2022-43177

Also known as: BIT-azure-cli-2022-39327, CVE-2022-39327, GHSA-47xc-9rr2-q7p4

Summary

The record has no summary.

Details

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.

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2022-10-25 17:15 UTC
Modified
2026-06-10 17:14 UTC

Affected packages and fixes

azure-cli

PyPI · All systems

Affected

  • introduced 0, fixed 2.40.0 (ecosystem)

Fixed versions

2.40.0

Fix

  • Fixed version 2.40.0
    pip install --upgrade azure-cli==2.40.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences