← Lab /Security & privacy

Dangling COM registration enables SYSTEM privilege escalation via custom marshaling

A dangling COM object registration can be abused with custom COM marshaling to load an arbitrary DLL into a SYSTEM process and achieve privilege escalation.

Security & privacy Google Project Zero 21 Sep 2026 Attack Prototype evidence

Published as “Windows Exploitation Techniques: Dangling COM Object Registrations”

Why it matters

Attackers can achieve SYSTEM privileges on vulnerable Windows installations by planting a DLL in a writable location and abusing a dangling COM registration via custom marshaling.

Summary

The authors locate a dangling COM registration for the CrossDevice object that points to a non-existent DLL in a writable ProgramData folder. They show that custom COM marshaling can be used to force a privileged COM server to load an attacker-controlled DLL when the server does not disable custom marshaling. By starting the Shell Create Object Handler service via a scheduled task and confirming it allows custom marshaling, they deliver a fake OBJREF that triggers the load of the malicious DLL, achieving SYSTEM code execution. The exploit is demonstrated on an unpatched Windows system using PowerShell scripts and a working exploit payload.

What they found 1

  1. Custom marshaling of a fake OBJREF causes the dangling COM DLL to be loaded and yields privilege escalation.

    “When unmarshaled, which happens automatically in the runtime before the target method is called, the malicious DLL will be loaded and we’d get privilege escalation.”

Caveats 6

  • The writeup notes that a mitigation can be enabled to disable custom marshaling unless the class is explicitly opted-in.
  • The Get-ComProcess command is broken on Windows 11 25H2, limiting verification on newer builds.
  • Exploitation requires a privileged COM service that does not enable the mitigation, which may not exist on all systems.
  • The technique only works if the target COM service has custom marshaling enabled; many services have the mitigation turned on.
  • The provided PowerShell helper commands may fail on newer Windows versions (e.g., Win11 25H2).
  • Finding writable paths for the dangling DLL must be done manually.

What’s new here 4

  • Identifies a dangling COM registration for CrossDevice.Streaming.Source.dll as an escalation vector.
  • Demonstrates that custom COM marshaling can bypass mitigations to load arbitrary DLLs in privileged processes.
  • Finds a SYSTEM-run COM service (Shell Create Object Handler) that does not disable custom marshaling.
  • Provides PowerShell scripts and a fully working exploit to achieve SYSTEM privilege escalation.