Google Researcher Shows How a Single Bit Change in .NET Files Bypassed Windows Code Integrity

A Google Project Zero researcher demonstrated how a quirk in the .NET Framework's file loading mechanism allowed a local attacker to execute untrusted code while bypassing Windows code integrity protections and Oracle VirtualBox process hardening. The technique exploited a fallback loading path in .NET Framework version 4 that occurs on a specific error, skipping image checks that would normally apply to executable files. By registering a COM object via hijacking, the researcher loaded AnyCPU-compiled .NET assemblies into protected VirtualBox processes on Windows hosts. A separate single-bit modification in the IMAGE_FILE_EXECUTABLE_IMAGE flag enabled bypass of User Mode Code Integrity on Windows 11 S Mode through a logic error in .NET's policy enforcement. Oracle addressed CVE-2026-87268 in September with VirtualBox 7.2.18, while Microsoft fixed CVE-2026-108398 on October 13 via per-version updates. The same approach reached Protected Process Light processes at maximum protection level without administrator rights, though no separate CVE was assigned for that vector.

The Hacker NewsTranslated from English

Read at source

A Google Project Zero researcher has detailed how a quirk in the way the .NET Framework loads program files allowed a local attacker to run untrusted code past two separate Windows protections designed to block it.

The same loading behavior bypassed Oracle VirtualBox's process hardening on Windows hosts, tracked as CVE-2026-87268, and Windows code integrity, tracked as CVE-2026-108398. Oracle fixed the VirtualBox flaw in September, and Microsoft fixed the Windows one on October 13, both before the write-up appeared.

VirtualBox on Windows monitors the system calls that load program files into its virtual machine processes, so a less-trusted user on the same computer cannot push code into them. Researcher James Forshaw got past that watch through the .NET Framework. The framework can run a .NET program file from a plain copy in memory when the normal way of loading it, as an executable image, fails. Version 4 of the framework takes that fallback on one specific error, and the memory copy skips the image checks a loaded program would face.

The VirtualBox check returned that error for any .NET file compiled as AnyCPU, a form meant to run on any processor, so an unchanged file loaded through the path the hardening never inspects. To get the file loaded while a virtual machine was started, he registered a COM object in the current user's settings that a protected VirtualBox process would pull in, a method known as COM hijacking.

Oracle rates the flaw, CVE-2026-87268, as a local problem that needs low privileges and no user interaction, scores it 7.8, and lists VirtualBox 7.2.16 on Windows hosts as affected. Its security advisory says a successful attack can result in the "takeover of Oracle VM VirtualBox." The code runs inside the protected VirtualBox process. It is not a break out of a guest virtual machine onto the host, and the attacker begins as an ordinary user on that host.

The same idea worked against Windows' own code-integrity checks, which decide what user-mode code is allowed to run. There is no VirtualBox hook here, only the system call that maps a file as an image. The researcher found that clearing a single bit in a .NET file's header, the IMAGE_FILE_EXECUTABLE_IMAGE flag, made that call reject the file while .NET still loaded and ran it. "This single bit change is all you need to load an untrusted .NET assembly," he wrote.

He tried it on Windows 11 S Mode, which enables User Mode Code Integrity (UMCI), the policy that limits which user-mode programs can run. A logic error in .NET's own policy check let the file load even with UMCI enforced. The flaw, CVE-2026-108398, works through the .NET Framework version 4 loading path and needs a program willing to load the assembly. It is not a way to seize any Windows machine over the internet. Microsoft rates it a local, low-privilege security-feature bypass, scores it 8.8, and fixed it on October 13.

The same file reached a more sensitive target as well. Protected Process Light, or PPL, is a kind of Windows process that ordinary programs, even ones with administrator rights, are not meant to enter. By hijacking a COM object that WerSecureFault.exe loads, he ran his test code inside a PPL process at the highest protection level without administrator rights. The older Protected Process type resisted the technique because the .NET runtime files lack the page hashes it requires. The October fix corrects the policy check for UMCI but does not change loading for protected processes, so that PPL route should still work, according to the researcher. It carries no separate CVE.

Meridian digestThe week's most consequential security stories, distilled into one briefing.See the digest

More in Vulns & Exploits

Docker Sandboxes Flaw Allows Malicious Kits to Exfiltrate AI API Keys Without User Prompts
OFFIS DCMTK Toolkit Hit by Critical Missing Authorization and Partial String Comparison Flaws
CISA Warns of Critical Vulnerabilities in Nextgen Healthcare Mirth Connect Allowing Arbitrary Script Execution and Man-in-the-Middle Attacks