Skip to content
RCE Advisory Advanced CVE-2023-36415

Azure Identity SDK Remote Code Execution Vulnerability (CVE-2023-36415)

The Azure Identity client library passed a specially crafted OS-level command from a specific SDK property into the underlying command-line tool, allowing code to run on the server. An authenticated user could therefore trigger malicious code in the context of the server's account through a network call.

Martin Wrona Follow

Originally disclosed on Microsoft

High 8.8 View original

FAQ

According to the CVSS metrics, successful exploitation of this vulnerability could lead to major loss of confidentiality (C:H), integrity (I:H), and availability (A:H). What does that mean for this vulnerability? An attacker who successfully exploited this vulnerability could gain high privileges, which include read, write, and delete functionality.

FAQ

According to the CVSS metric, the attack vector is network (AV:N), and privilege required is low (PR:L). What is the target used in the context of the remote code execution? The attacker for this vulnerability could target the server accounts in an arbitrary or remote code execution. As an authenticated user, the attacker could attempt to trigger malicious code in the context of the server's account through a network call. The privilege requirement is low because the attacker needs to be authenticated as a normal user.

FAQ

How could an attacker exploit this vulnerability? An attacker could exploit this vulnerability by passing a specially crafted OS-level command to a specific SDK property which is passed to the underlying CLI and results in remote code execution.

FAQ

Which credential types provided by the Azure Identity client library are affected? The vulnerability exists in the following credential types: DefaultAzureCredential AzureCliCredential AzureDeveloperCliCredential AzurePowerShellCredential

Azure SDK

Azure SDK

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Martin Wrona (martin_jw) with Digitec Galaxus AG. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

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 library passed a user-controllable SDK property into the underlying command-line tool without sanitising it, so the value was interpreted as an OS command.

Impact

An authenticated attacker could gain high privileges on the server, including read, write and delete functionality, through a network call.

What the attacker needed

An authenticated normal user account; network access to the target

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.

The Azure Identity library is a helper that lets programs log in to Microsoft's cloud. One of its settings was handed straight to a command-line tool without being checked, so text that should have been harmless could be run as a command on the machine. Someone with a normal login could use this to run their own commands on the server.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Martin Wrona

View all

7 more disclosed reports, best first.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.