{"api_version":"1","generated_at":"2026-07-24T03:29:03+00:00","cve":"CVE-2022-39327","urls":{"html":"https://cve.report/CVE-2022-39327","api":"https://cve.report/api/cve/CVE-2022-39327.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-39327","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-39327"},"summary":{"title":"CVE-2022-39327","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-10-25 17:15:00","updated_at":"2023-06-27 17:20:00"},"problem_types":["CWE-78"],"metrics":[],"references":[{"url":"https://github.com/Azure/azure-cli/security/advisories/GHSA-47xc-9rr2-q7p4","name":"https://github.com/Azure/azure-cli/security/advisories/GHSA-47xc-9rr2-q7p4","refsource":"CONFIRM","tags":[],"title":"Improper Control of Generation of Code ('Code Injection') in Azure CLI · Advisory · Azure/azure-cli · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/Azure/azure-cli/pull/24015","name":"https://github.com/Azure/azure-cli/pull/24015","refsource":"MISC","tags":[],"title":"[Core] Revert #23514: Rename entry script `az.ps1` to `azps.ps1` by jiasli · Pull Request #24015 · Azure/azure-cli · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/Azure/azure-cli/pull/23514","name":"https://github.com/Azure/azure-cli/pull/23514","refsource":"MISC","tags":[],"title":"[Core] Add `az.ps1` entry script for PowerShell by jiasli · Pull Request #23514 · Azure/azure-cli · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-39327","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39327","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"39327","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"microsoft","cpe5":"azure_command-line_interface","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"39327","vulnerable":"-1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"microsoft","cpe5":"windows","cpe6":"-","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-39327","qid":"379058","title":"Microsoft Azure CLI Improper Control of Generation of Code Vulnerability"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-39327","STATE":"PUBLIC","TITLE":"Improper Control of Generation of Code ('Code Injection') in Azure CLI"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"azure-cli","version":{"version_data":[{"version_value":"< 2.40.0"}]}}]},"vendor_name":"Azure"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.1,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-94: Improper Control of Generation of Code ('Code Injection')"}]}]},"references":{"reference_data":[{"name":"https://github.com/Azure/azure-cli/security/advisories/GHSA-47xc-9rr2-q7p4","refsource":"CONFIRM","url":"https://github.com/Azure/azure-cli/security/advisories/GHSA-47xc-9rr2-q7p4"},{"name":"https://github.com/Azure/azure-cli/pull/23514","refsource":"MISC","url":"https://github.com/Azure/azure-cli/pull/23514"},{"name":"https://github.com/Azure/azure-cli/pull/24015","refsource":"MISC","url":"https://github.com/Azure/azure-cli/pull/24015"}]},"source":{"advisory":"GHSA-47xc-9rr2-q7p4","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-10-25 17:15:00","lastModifiedDate":"2023-06-27 17:20:00","problem_types":["CWE-78"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"AND","children":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:microsoft:azure_command-line_interface:*:*:*:*:*:*:*:*","versionEndExcluding":"2.40.0","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":false,"cpe23Uri":"cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*","cpe_name":[]}]}],"cpe_match":[]}]}},"legacy_mitre":{"record":null,"notes":[]}}}