{"id":"CVE-2022-39327","published":"2022-10-25T00:00:00Z","modified":"2025-04-22T17:17:26Z","title":"Improper Control of Generation of Code ('Code Injection') in Azure CLI","vendor":"Azure","product":"azure-cli","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.04236,"percentile":0.91255,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/Azure/azure-cli/security/advisories/GHSA-47xc-9rr2-q7p4","tags":[]},{"url":"https://github.com/Azure/azure-cli/pull/23514","tags":[]},{"url":"https://github.com/Azure/azure-cli/pull/24015","tags":[]}],"priority":{"score":23.9,"factors":[{"name":"EPSS percentile","points":18.25},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"azure","affectedVersions":[{"vendor":"Azure","product":"azure-cli","versions":["< 2.40.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-04-22T15:40:50.784619Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"azure-cli","vulnerableRanges":["<2.40.0"],"patched":["2.40.0"],"from":["GHSA-47xc-9rr2-q7p4","PYSEC-2022-43177"],"provenance":"source"}],"summary":{"text":"The flaw is a code injection vulnerability in the azure-cli component of Microsoft Azure's Azure CLI, affecting versions before 2.40.0. An attacker who can supply parameter values to an Azure CLI command run on a Windows machine with PowerShell can inject code when those values contain the & or | symbols, and this requires no authentication or user interaction, but it only applies in that Windows and PowerShell configuration with externally sourced parameter values.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:38:00Z"},"euvd":{"id":"EUVD-2022-7010","exploited":false,"provenance":"source"}}