Skip to content
RCE Advisory Advanced CVE-2023-36414

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

Certain credential types in the Azure Identity client library passed a caller-supplied value into an underlying command-line tool without proper handling. An authenticated attacker could supply a specially crafted operating-system command through a specific SDK property and achieve remote code execution on the server.

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 affected credential types passed a user-controllable property into an underlying CLI invocation without sanitising it, allowing command injection.

Impact

An authenticated user could gain high privileges with read, write and delete capability, and could trigger malicious code in the context of the server's account.

What the attacker needed

Authenticated as a normal user; 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. Some of its login helpers hand a value straight to a command-line tool running on the machine. If that value is really a command rather than plain data, the tool may run it, letting someone who is already logged in run their own code 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.