PYSEC-2022-43177
Quick fix
PYSEC-2022-43177 — azure-cli: upgrade to the fixed version with the command below.
pip install --upgrade 'azure-cli>=2.40.0'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.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://github.com/Azure/azure-cli/security/advisories/GHSA-47xc-9rr2-q7p4[ADVISORY]
- https://github.com/Azure/azure-cli/pull/23514[EVIDENCE]
- https://github.com/Azure/azure-cli/security/advisories/GHSA-47xc-9rr2-q7p4[EVIDENCE]
- https://github.com/Azure/azure-cli/pull/23514[FIX]
- https://github.com/Azure/azure-cli/pull/24015[FIX]
- https://github.com/Azure/azure-cli/pull/23514[WEB]
- https://github.com/Azure/azure-cli/pull/24015[WEB]
- https://github.com/advisories/GHSA-47xc-9rr2-q7p4[ADVISORY]