CVE-2026-40381: Microsoft Azure Connected Machine Agent privilege escalation

CVE-2026-40381 · Severity: high · CVSS 7.8 · Published 2026-05-12

The Azure Connected Machine Agent, which manages non-Azure servers for use with Azure services, contains a security flaw in how it manages permissions. An attacker who already has low-level access to a server could exploit this to gain full administrative control over the machine. This could lead to unauthorized data access, system-wide changes, or the disruption of critical services.

Technologies: Microsoft Azure Connected Machine Agent. Vendors: Microsoft.

Quick answers

Is CVE-2026-40381 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-40381 being exploited in the wild.
How severe is CVE-2026-40381?
High severity, with a CVSS score of 7.8, published 12 May 2026.
Which products and versions are affected?
Microsoft Azure Connected Machine Agent.
Is there a fix for CVE-2026-40381?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2026-40381 attacked?
It is attacked with local access, in a software library.
Am I affected by CVE-2026-40381?
Check whether you run Microsoft Azure Connected Machine Agent. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

An improper access control vulnerability (CWE-284) exists in the Microsoft Azure Connected Machine Agent. The flaw allows a local attacker with low-privileged user access to bypass security restrictions and elevate their privileges to a higher level, such as SYSTEM or root. The attack vector is local, requiring the attacker to already have an authenticated session on the target host. Successful exploitation grants the attacker full confidentiality, integrity, and availability impact over the affected system. Microsoft has released security updates to address this issue.

Affected products

  • Microsoft Azure Connected Machine Agent

Timeline

  • 2026-05-12: disclosed
  • 2026-05-12: advisory

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.