{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-39327","id":"CVE-2022-39327","title":"Improper Control of Generation of Code ('Code Injection') in Azure CLI","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","descriptionLong":"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:00.000Z","updated":"2026-10-28T02:31:10.874937958Z","reserved":"2022-09-02T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"github.com"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"}],"rating":"high","products":["azure-cli"],"affectedProducts":[{"vendor":"Azure","product":"azure-cli","defaultStatus":null,"versions":[{"version":"< 2.40.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"azure-cli","purl":"pkg:pypi/azure-cli","ranges":["<2.40.0"],"fixed":["2.40.0"],"advisory":"GHSA-47xc-9rr2-q7p4"}],"cwes":["CWE-94","CWE-78"],"aliases":["BIT-azure-cli-2022-39327","GHSA-47xc-9rr2-q7p4","PYSEC-2022-43177"],"references":[{"url":"https://github.com/Azure/azure-cli/security/advisories/GHSA-47xc-9rr2-q7p4","tags":["x_transferred","Exploit","Mitigation","Third Party Advisory","advisory","web","evidence"]},{"url":"https://github.com/Azure/azure-cli/pull/23514","tags":["x_transferred","Exploit","Patch","Third Party Advisory","fix","web","evidence"]},{"url":"https://github.com/Azure/azure-cli/pull/24015","tags":["x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/39xxx/CVE-2022-39327.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39327","tags":["advisory"]},{"url":"https://github.com/Azure/azure-cli","tags":["package"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/azure-cli/PYSEC-2022-43177.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-47xc-9rr2-q7p4","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.04236,"epssPercentile":0.91228,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-39327","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39327","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-39327","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-47xc-9rr2-q7p4","ok":true,"note":"GHSA-47xc-9rr2-q7p4"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-39327","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}