Microsoft Azure CLI Remote Code Execution Vulnerability (CVE-2026-83948)
The Azure CLI repair command on Windows failed to neutralise special characters in VM tags, so a crafted tag could be interpreted as a command. An authenticated attacker who could modify tags on a virtual machine could therefore run code with an administrator's permissions when that administrator later ran the repair command.
Description
Improper neutralization of special elements used in a command ('command injection') in Microsoft Azure CLI allows an authorized attacker to execute code over a network.
FAQ
According to the CVSS metric, the attack complexity is high (AC:H). What does this mean for this vulnerability? An attacker would need specific conditions to be in place (i.e. particular protocol settings, or configurations, etc.) before an attack could succeed, which reduces the likelihood of widespread or opportunistic exploitation.
FAQ
How could an attacker exploit this vulnerability? An authenticated attacker with permission to modify tags on an Azure virtual machine could add a specially crafted tag. If an administrator later uses the affected Azure CLI repair command to copy tags from that virtual machine on Windows, the tag could be interpreted as a command and execute code with the administrator's permissions.
Microsoft Azure CLI
Microsoft Azure CLI
Microsoft
Microsoft
Customer Action Required
Yes
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the repair command passed tag values into a command interpreter without escaping or validating special characters.
Impact
An attacker could execute code with an administrator's permissions, but only if specific conditions are in place, which reduces the likelihood of widespread exploitation.
What the attacker needed
Authenticated account; permission to modify VM tags; administrator runs repair on Windows
How it was found
- An authenticated attacker with permission to modify tags adds a specially crafted tag to an Azure virtual machine.
- An administrator later runs the affected Azure CLI repair command on Windows to copy tags from that virtual machine.
- The crafted tag is interpreted as a command and executes code with the administrator's permissions.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A tag is just a label attached to a cloud virtual machine, like a sticky note. The Azure command-line tool has a repair option that copies those labels, and it did not treat the label text as plain text. So someone who could edit a label could sneak in instructions that the tool would run as if an administrator had typed them.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.