Microsoft Azure AD SSH Login extension for Linux Elevation of Privilege Vulnerability (CVE-2026-26148)
The Azure AD SSH Login extension for Linux on Azure VMs mishandles trusted variables or data stores during initialisation, letting an unprivileged local user gain root privileges. Exploitation requires the attacker to first prepare the target environment to make the attack reliable.
Originally disclosed on Microsoft
Description
External initialization of trusted variables or data stores in Azure Entra ID allows an unauthorized attacker to elevate privileges locally.
FAQ
According to the CVSS metric, the attack complexity is high (AC:H). What does that mean for this vulnerability? Successful exploitation of this vulnerability requires an attacker to prepare the target environment to improve exploit reliability.
FAQ
How could an attacker exploit this vulnerability? An unprivileged local user on an affected Azure Linux VM can obtain root privileges.
FAQ
How can customers update the Microsoft Azure AD SSH Login extension for Linux? Customers update the Azure AD SSH Login extension by using their Linux distribution’s package manager to install the latest version of the aadsshlogin package. Systems with the extension already installed have packages.microsoft.com configured automatically, so no additional setup is required. Depending on the Linux distribution, customers should run one of the following commands: Ubuntu or Debian: sudo apt update aadsshlogin RHEL-based distributions (RHEL, CentOS, Rocky Linux, AlmaLinux, Oracle Linux): sudo dnf update aadsshlogin SUSE-based distributions (SLES, openSUSE): sudo zypper update aadsshlogin
Azure Entra ID
Azure Entra ID
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 extension initialises trusted variables or data stores in a way that a local user can influence, so attacker-controlled values are treated as trusted.
Impact
An unprivileged local user could gain root on an affected Azure Linux VM, though the attack is complex and needs the environment prepared first.
What the attacker needed
Local unprivileged access to the VM; attacker prepares the target environment
The fix
It was fixed by updating the aadsshlogin package to the latest version through the Linux distribution's package manager.
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.
This is a flaw in a small add-on that lets people log in to Linux machines on Azure using their Microsoft cloud account. A normal user with only limited rights on the machine could abuse the flaw to become the all-powerful root user, who can do anything on that system. The attacker must first set things up on the machine in a particular way, which is why the vendor rates it as harder to pull off.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.