{"id":"CVE-2022-39327","aliases":["BIT-azure-cli-2022-39327","GHSA-47xc-9rr2-q7p4","PYSEC-2022-43177"],"url":"https://o3.security/vulnerability/CVE-2022-39327","summary":"Improper Control of Generation of Code ('Code Injection') in Azure CLI","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.","published":"2022-10-25T00:00:00Z","modified":"2026-07-15T01:48:53.492281778Z","cvss":{"score":8.1,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":2,"affectedPackages":[{"ecosystem":"PyPI","name":"azure-cli","fixedVersion":"2.40.0"}],"fix":{"url":"https://github.com/Azure/azure-cli/pull/23514","label":"Azure/azure-cli#23514"},"references":[{"type":"ADVISORY","url":"https://github.com/Azure/azure-cli/security/advisories/GHSA-47xc-9rr2-q7p4"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/39xxx/CVE-2022-39327.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39327"},{"type":"FIX","url":"https://github.com/Azure/azure-cli/pull/23514"},{"type":"FIX","url":"https://github.com/Azure/azure-cli/pull/24015"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-15T01:48:53.492281778Z"}}