{"cve":"CVE-2022-39327","nvd":{"published":"2022-10-25T17:15:56.150","modified":"2026-06-17T04:58:09.080","status":"Modified","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-78","CWE-94"],"references":["https://github.com/Azure/azure-cli/pull/23514","https://github.com/Azure/azure-cli/pull/24015","https://github.com/Azure/azure-cli/security/advisories/GHSA-47xc-9rr2-q7p4","https://github.com/Azure/azure-cli/pull/23514","https://github.com/Azure/azure-cli/pull/24015"],"products":["microsoft:azure_command-line_interface"],"source":"nvd","synced_at":"2026-10-19T21:37:08.729216836+00:00"},"epss":{"cve":"CVE-2022-39327","score":0.04172,"percentile":0.90903,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-47xc-9rr2-q7p4","url":"https://osv.dev/vulnerability/GHSA-47xc-9rr2-q7p4","summary":"Improper Control of Generation of Code ('Code Injection') in Azure CLI","modified":"2026-06-10T17:14:17.513031176Z","packages":[{"ecosystem":"PyPI","name":"azure-cli","purl":"pkg:pypi/azure-cli","ranges":["<2.40.0"],"fixed":["2.40.0"]}]},{"id":"PYSEC-2022-43177","url":"https://osv.dev/vulnerability/PYSEC-2022-43177","summary":"","modified":"2026-06-10T17:14:18.459422848Z","packages":[{"ecosystem":"PyPI","name":"azure-cli","purl":"pkg:pypi/azure-cli","ranges":["<2.40.0"],"fixed":["2.40.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}