Skip to content
Access control Advisory Advanced CVE-2025-58726

Windows SMB Server Elevation of Privilege Vulnerability (CVE-2025-58726)

The Windows SMB Server has improper access control that lets an authorised attacker coerce a victim machine into authenticating to an attacker-controlled SMB server. A successful exploit could give the attacker SYSTEM privileges on the victim.

ap Follow

Originally disclosed on Microsoft

High 7.5 View original

Description

Improper access control in Windows SMB Server allows an authorized attacker to elevate privileges over a network.

FAQ

How could an attacker exploit the vulnerability? To exploit this vulnerability, an attacker could execute a specially crafted script to coerce the victim machine to connect back to the attacker’s SMB Server using SMB and authenticate. This could result in elevation of privilege.

FAQ

What privileges could be gained by an attacker who successfully exploited this vulnerability? An attacker who successfully exploited this vulnerability could gain SYSTEM privileges.

FAQ

According to the CVSS metric, the attack complexity is high (AC:H). What does that mean for this vulnerability? The Attack requires an Service Principal Name (SPN) that is registered to an account that no longer exists or is not in use, to be on the target machine.

Windows SMB Server

Windows SMB Server

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Andrea Pierini with Semperis. 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 improper access control in how the Windows SMB Server handles authentication when a machine is coerced into connecting to an SMB server, combined with a stale or unused Service Principal Name on the target.

Impact

An attacker who successfully exploits this could gain SYSTEM privileges on the victim machine, though the attack complexity is high because it requires a stale or unused SPN on the target.

What the attacker needed

Authorised attacker on the network; stale or unused SPN on target; attacker-controlled SMB server

The fix

Microsoft requires a customer action to address the vulnerability, but the text does not describe the specific fix.

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.

SMB is the file-sharing protocol Windows uses to talk to other machines. Here, a flaw lets someone trick a Windows computer into logging in to a server the attacker controls, and that login can be abused to gain the highest level of access on the victim. The attacker needs a special account name (an SPN) that is registered but no longer used on the target.

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.

More by ap

View all

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

Broken access control

The lesson behind this report.

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.