Skip to content
RCE Advisory Advanced CVE-2025-59285

Azure Monitor Agent Elevation of Privilege Vulnerability (CVE-2025-59285)

The Azure Monitor Agent deserialises untrusted data, so a local user with write access to its configuration directory can plant malicious files before installation or service start. Successful exploitation lets that user elevate privileges to root on the virtual machine.

P1hcn Follow

Originally disclosed on Microsoft

High 7.0 View original

Description

Deserialization of untrusted data in Azure Monitor Agent allows an authorized attacker to elevate privileges locally.

FAQ

According to the CVSS metric, the attack vector is local (AV:L) and the privilege required is none (PR:L). What privileges could an attacker gain with successful exploitation? A local user could take advantage of this vulnerability and perform elevation of privilege (EOP). By successfully exploiting this vulnerability, the attacker could elevate their privileges to obtain root level access on the virtual machine.

FAQ

According to the CVSS metric, the attack complexity is high (AC:H). What is does this mean in the context of the elevation of privilege vulnerability? In order to successfully exploit this vulnerability, the attacker requires write access to the configuration directory by creating malicious files in a directory before the Azure Monitor Agent is installed or before the service starts after system restart.

Azure Monitor Agent

Azure Monitor Agent

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by P1hcn. 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 agent deserialises configuration files from a directory that local users can write to, without validating or restricting their contents.

Impact

A local user could elevate their privileges to root level access on the virtual machine, though exploitation is complex and needs write access to the configuration directory beforehand.

What the attacker needed

Local access to the VM; write access to the config directory; malicious files placed before install or start

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.

Deserialisation is when a program turns stored data back into live objects, and if that data is attacker-controlled it can run code. Here the agent reads files from a configuration folder, so anyone who can write there can slip in a harmful file. Because the agent runs with high rights, that file can give the attacker full control of the machine.

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 P1hcn

View all

35 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.