VirtualBox Process Hardening Bypassed by .NET Framework Feature
A Project Zero researcher has uncovered a bypass for Oracle VirtualBox's Windows process hardening, exploiting a .NET Framework feature to load arbitrary code into protected processes.

A recent analysis by a Google Project Zero researcher has revealed a significant bypass of Oracle VirtualBox's process hardening mechanisms on Windows systems. The vulnerability, tracked as CVE-2026-87268, leverages a specific feature within the .NET Framework that allows assemblies to be loaded directly from memory. This bypasses traditional security checks designed to prevent unauthorized code injection into protected processes.
The core of the exploit lies in how the .NET runtime handles assembly loading. Unlike traditional DLL loading, which can be monitored and restricted by process hardening techniques, the .NET Framework supports loading managed code from a byte array in memory. This is achieved through the Assembly::Load static method, which accepts raw byte data. Since the .NET runtime itself is Microsoft-signed, it is generally trusted by security mechanisms, allowing it to load code that might otherwise be flagged as suspicious.
While this memory-loading capability has been known and previously exploited, the researcher discovered a nuanced interaction with VirtualBox's implementation. The exploit targets a specific fallback mechanism within the .NET Framework's assembly mapping process. When the initial attempt to map an assembly file as a PE executable image fails with an ERROR_BAD_EXE_FORMAT, the .NET runtime falls back to mapping it as a data-only section. This fallback, when triggered under specific conditions, allows the runtime to execute code from memory without triggering the hardening checks that would monitor a standard image mapping.
Exploitation requires causing the initial CreateFileMapping call with the SEC_IMAGE flag to fail with the specific ERROR_BAD_EXE_FORMAT. By manipulating this process, an attacker can trick the .NET runtime into using the FlatImageLayout object instead of MappedImageLayout. This ensures that the loaded assembly is not treated as a directly mapped executable image, thus circumventing security controls that inspect loaded image sections.
This particular bypass is noted to be effective on .NET Framework version 4 and later. Earlier versions of the framework, while potentially susceptible to similar bypasses in the initial mapping stage, do not appear to exhibit the same fallback behavior that enables this specific exploit.
The implications of this vulnerability are substantial for VirtualBox users on Windows. Process hardening is a critical security feature designed to protect virtual machine processes from tampering by the host operating system or other applications. A successful bypass allows an attacker to execute arbitrary code within the protected VirtualBox process, potentially leading to further system compromise, data theft, or denial of service.
This discovery highlights the ongoing cat-and-mouse game between security researchers and software vendors in hardening complex applications. As operating systems and runtimes evolve, new avenues for bypassing security controls emerge, necessitating continuous vigilance and updates from developers like Oracle to maintain the integrity of their software.
While the article focuses on CVE-2026-87268, it also mentions that the researcher found three other bypasses for protected processes, as well as a separate bug that was a broken fix for a previous vulnerability reported in 2020. These additional findings underscore the persistent challenges in securing VirtualBox's host-level protections.