← Lab /Security & privacy

Crafted Revit RFA file enables full remote code execution

A type-confusion bug in Autodesk Revit’s RFA parser can be reliably exploited to achieve full remote code execution on Windows systems.

Security & privacy Zero Day Initiative Blog 8 Oct 2025 Attack Prototype evidence

Published as “Crafting a Full Exploit RCE from a Crash in Autodesk Revit RFA File Parsing”

Why it matters

The work shows that a seemingly benign file-format crash in a widely used CAD tool can be turned into a scalable remote code execution vector when combined with a supply-chain flaw.

Summary

The researcher identified a type-confusion bug in Revit 2025’s RFA deserializer that dereferences a bogus vtable pointer, causing a crash. By crafting an RFA file that deserializes an AString object, they control the pointer used as a vtable and gain arbitrary code execution. They built a custom OLE compound-file editing tool and leveraged a non-ASLR DLL to find a stack-pivot gadget, then constructed a full 64-bit ROP chain to call system. The exploit works on Windows 10 and, with additional gadget hunting, on Windows 11, demonstrating remote code execution via the Axis Communications plugin supply-chain scenario.

What they found 2

  1. The crash is caused by a type-confusion where a bogus vtable pointer is dereferenced during object destruction.

    “When the application attempted to invoke the object’s destructor, it crashed upon dereferencing that value. What we have, then, is a type confusion vulnerability.”

  2. The author achieved reliable full remote code execution from the crash.

    “I was able to demonstrate that it could be used reliably for full remote code execution.”

Caveats 5

  • The exploit depends on a non-ASLR module (RWUXThemeSU2015.dll) and specific Windows versions, limiting its applicability.
  • Relies on the presence of RWUXThemeSU2015.dll, which does not support ASLR.
  • Requires correct generation of Revit's error-correcting code trailer for modified streams.
  • Stack-pivot technique differs between Windows 10 and Windows 11, requiring additional gadget hunting on the latter.
  • Full impact assumes the Axis Communications plugin is installed and the supply-chain misconfiguration is exploitable.

What’s new here 4

  • Identification of a type-confusion vulnerability in Revit's RFA deserializer that leads to RCE.
  • Release of CompoundFileTool for editing OLE compound files and handling Revit's custom gzip/error-correction format.
  • Discovery and use of a “monster gadget” and a loop-based weird machine to achieve a stack pivot on Windows 10/11.
  • Demonstration of large-scale impact by chaining the exploit with a cloud-based supply-chain flaw in the Axis plugin.