Skip to content
RCE Advisory Advanced CVE-2026-123387

Active Directory Domain Services Elevation of Privilege Vulnerability (CVE-2026-123387)

A command injection flaw in Windows Active Directory lets an authenticated attacker with delegated directory permissions rename an object using crafted characters. If a privileged administrator later generates and runs the affected PowerShell remediation script, the attacker's crafted input is executed and privileges can be elevated.

Ziga Sumenjak Follow

Originally disclosed on Microsoft

High 8.0 View original

Description

Improper neutralization of special elements used in a command ('command injection') in Windows Active Directory allows an authorized attacker to elevate privileges over a network.

FAQ

According to the CVSS metrics, privileges required is low (PR:L) and user interaction is required (UI:R). What does that mean for this vulnerability? An authenticated attacker with delegated directory permissions can rename an object using crafted characters. A privileged administrator must then generate and run the affected PowerShell remediation script for exploitation to occur.

Windows Active Directory

Windows Active Directory

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Ziga Sumenjak of 0patch with ACROS Security. 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 remediation script builds a command from object names without neutralising special characters, so crafted names are interpreted as commands.

Impact

An authenticated attacker with delegated permissions could elevate privileges, but only if a privileged administrator generates and runs the affected remediation script.

What the attacker needed

Authenticated account; delegated directory permissions; admin runs remediation script

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.

Active Directory is Microsoft's system for managing users and computers in a network. This bug means someone with limited rights can give an object a tricky name, and if an administrator later runs a clean-up script, that name is treated as a command and run with the administrator's power. So the attacker needs both a low-level account and an admin to run the script.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

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.