Windows Exploitation Techniques: Dangling COM Object Registrations
A COM class was registered system-wide pointing to a DLL under a world-writable ProgramData path that did not exist, so any user could plant a DLL there. By sending a custom-marshaled object referencing that class to a SYSTEM COM service that allows custom marshaling, an attacker could get their DLL loaded into a privileged process and escalate to administrator.
Published on projectzero.google
This short blog post is about abusing a privilege escalation bug that Microsoft recently fixed in Windows, CVE-2026-66804, that I and 14 others reported. This issue is an incomplete fix for CVE-2026-50343, a bug dubbed “Dark Elevator” by Calif.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
A COM class was registered machine-wide with an in-process server DLL path inside the user-writable ProgramData directory, and the DLL was absent, allowing any user to plant a file at that path.
Impact
An attacker could load an arbitrary DLL into a SYSTEM process and gain administrator privileges, provided a privileged COM server that does not enable the custom-marshaling mitigation is found.
What the attacker needed
Local access as a normal user; ability to write to the ProgramData path; a SYSTEM COM server without custom-marshal block
The fix
Microsoft fixed the issue, described as an incomplete fix of an earlier bug, by addressing the dangling COM registration.
How it was found
- Create a global named event called ShellCreateObjectTaskReadyEvent so the task does not exit early.
- Start the Shell Create Object Task scheduled task, which normal users are allowed to run.
- Wait on the event, then create the Shell Create Object Handler COM object, which is now hosted by a SYSTEM dllhost process.
- Confirm the hosting process runs as SYSTEM and allows custom marshaling.
- Pass a fake marshaled object whose unmarshal class is the dangling CrossDevice CLSID to the ICreateObject interface method, so the planted DLL loads in the privileged process.
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 write-up has not been written yet. The Original tab links to the source.
Windows programs can share reusable components called COM objects; each one is listed in a central registry with the file that implements it. Here that file was missing and its expected location was a folder any user can write to, so a normal user could put their own file there. The author then tricks a background Windows service that runs with high privileges into loading that file, which gives the attacker the service's power.
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.