CVE-2022-39327 json
Improper Control of Generation of Code ('Code Injection') in Azure CLI
published 2022-10-25 4 y ago modified 2026-09-08 2 mo ago also BIT-azure-cli-2022-39327 , EUVD-2022-7010 , GHSA-47xc-9rr2-q7p4 , PYSEC-2022-43177
- cvss
- 8.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.1%
- EPSS 4.1% chance of exploitation in 30 days, percentile 90%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi azure-cli 2.40.0
- bitnami azure-cli 2.40.0
- microsoft azure_command-line_interface 2.40.0
- github.com/Azure/azure-cli#23514 pull request
- github.com/Azure/azure-cli#24015 pull request
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 18 mo ago
Exploit prediction
4.14% chance of exploitation in the next 30 days, higher than 90% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/Azure/azure-cli/pull/23514 referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/Azure/azure-cli/security/advisories/GHSA-47xc-9rr2-q7p4 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | azure-cli | <2.40.0 |
2.40.0 |
| bitnami | azure-cli | <2.40.0 |
2.40.0 |
Affected products
- Azure azure-cli
Classification
References
-
github.com
/Azure/azure-cli/pull/23514
web, exploit, patch, third-party-advisory, advisory, evidence
-
github.com
/Azure/azure-cli/pull/24015
web, patch, third-party-advisory, advisory
-
github.com
/Azure/azure-cli/security/advisories/GHSA-47xc-9rr2-q7p4
web, exploit, mitigation, third-party-advisory, advisory, evidence
-
nvd.nist.gov
/vuln/detail/CVE-2022-39327
advisory, web
-
github.com
/Azure/azure-cli
package
-
github.com
/pypa/advisory-database/tree/main/vulns/azure-cli/PYSEC-2022-43177.yaml
web
-
github.com
/advisories/GHSA-47xc-9rr2-q7p4
advisory
Sources
- CVE List CVE-2022-39327
- GitHub Advisory GHSA-47xc-9rr2-q7p4
- NVD CVE-2022-39327
- OSV BIT-azure-cli-2022-39327
- OSV PYSEC-2022-43177
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.