CVE-2022-39327
Improper Control of Generation of Code ('Code Injection') in Azure CLI
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
2Exploited in Wild
-Decision
Descriptions
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.
Azure CLI es la interfaz de línea de comandos para Microsoft Azure. En las versiones anteriores a 2.40.0, Azure CLI contiene una vulnerabilidad por posible inyección de código. Los escenarios críticos son cuando una máquina de alojamiento ejecuta un comando de Azure CLI donde los valores de los parámetros han sido proporcionados por una fuente externa. La vulnerabilidad sólo es aplicable cuando el comando Azure CLI es ejecutado en una máquina Windows y con cualquier versión de PowerShell y cuando el valor del parámetro contiene los símbolos "&" o "|". Si no es cumplido alguno de estos requisitos previos, esta vulnerabilidad no es aplicable. Los usuarios deben actualizar a la versión 2.40.0 o superior para recibir una mitigación de la vulnerabilidad
CVSS Scores
SSVC
- Decision:-
Timeline
- 2022-09-02 CVE Reserved
- 2022-10-25 CVE Published
- 2024-06-15 EPSS Updated
- 2024-08-03 CVE Updated
- 2024-08-03 First Exploit
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
- CWE-94: Improper Control of Generation of Code ('Code Injection')
CAPEC
References (3)
URL | Tag | Source |
---|
URL | Date | SRC |
---|---|---|
https://github.com/Azure/azure-cli/pull/23514 | 2024-08-03 | |
https://github.com/Azure/azure-cli/security/advisories/GHSA-47xc-9rr2-q7p4 | 2024-08-03 |
URL | Date | SRC |
---|---|---|
https://github.com/Azure/azure-cli/pull/24015 | 2023-06-27 |
URL | Date | SRC |
---|
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Microsoft Search vendor "Microsoft" | Azure Command-line Interface Search vendor "Microsoft" for product "Azure Command-line Interface" | < 2.40.0 Search vendor "Microsoft" for product "Azure Command-line Interface" and version " < 2.40.0" | - |
Affected
| in | Microsoft Search vendor "Microsoft" | Windows Search vendor "Microsoft" for product "Windows" | - | - |
Safe
|