← All articles

Windows Code Integrity Bypass Fixed After .NET Loading Flaw

Windows Code Integrity Bypass Fixed After .NET Loading Flaw

Windows code integrity was bypassed by a quirk in how .NET Framework loads program files, according to a technical write-up from a Google Project Zero researcher. The same loading behavior also bypassed VirtualBox process hardening on Windows hosts. The issues are tracked as CVE-2026-108398 in Windows and CVE-2026-87268 in VirtualBox. Microsoft and the vendor released fixes before the research was published.

VirtualBox process hardening monitors the system calls used to load program files into its virtual machine processes. The purpose is to stop a less-trusted user on the same computer from placing code inside those processes. The researcher found a route around that monitoring through .NET Framework version 4.

When the normal method of loading a .NET program as an executable image fails, the framework can run the program from a plain copy held in memory. Version 4 uses this fallback for one particular error, and the memory copy does not receive the same image checks as a normally loaded program. VirtualBox returned that error for any .NET file compiled as AnyCPU, a format designed to run on different processor types. As a result, an unchanged .NET file could be loaded through a path that VirtualBox did not inspect.

The researcher used COM hijacking, a technique that makes a protected program load a component chosen through the current user's settings. By registering a COM object this way, the code was pulled into a protected VirtualBox process while a virtual machine was running. The vendor classifies CVE-2026-87268 as a local vulnerability requiring low privileges but no user interaction. It gives the issue a severity score of 7.8 and lists VirtualBox 7.2.16 on Windows hosts as affected. The vendor's advisory says a successful attack could result in the takeover of the vendor's virtualization product.

This was not a breakout from a guest virtual machine to the host. The code ran inside the protected VirtualBox process, and the attacker first needed to be an ordinary user on the Windows host.

The same basic idea also defeated Windows code integrity, the system rules that determine which user-mode code is allowed to run. In this case there was no VirtualBox monitoring hook. The relevant protection involved the system call that maps a file as an executable image.

The researcher found that clearing one header bit, IMAGE_FILE_EXECUTABLE_IMAGE, caused that system call to reject the file while .NET continued to load and run it. The test worked on Windows 11 S Mode, which enables User Mode Code Integrity, or UMCI, a policy that limits which programs can run for ordinary users. A logic error in .NET's policy check allowed the file to load even when UMCI was enforced.

Microsoft tracks this issue as CVE-2026-108398. It describes the flaw as a local, low-privilege security-feature bypass, rates it 8.8, and says it was publicly disclosed but not used in attacks. The route requires .NET Framework version 4's loading behavior and a program that is willing to load the assembly. It is not a method for taking over any Windows computer through the internet.

The same file also reached a more sensitive Windows target. Protected Process Light, or PPL, is a Windows process protection level that ordinary programs, including programs with administrator rights, are not normally meant to enter. By hijacking a COM object loaded by WerSecureFault.exe, the researcher ran test code inside a PPL process at the highest protection level without administrator rights.

The older Protected Process type resisted this method because the .NET runtime files do not contain the page hashes it requires. Microsoft's October fix corrects the UMCI policy check, but does not change loading for protected processes. According to the researcher, the PPL route should therefore still work, and it has no separate CVE.

The vendor fixed the VirtualBox issue in September. VirtualBox 7.2.18, released on September 15, contains that fix, while versions 7.2.16 and 7.2.18 are identified in the affected and fixed-version information. Administrators should check the version actually running on each Windows host rather than assume that an older installation received an upstream code change.

Windows systems using .NET Framework need the October 13 update matching the exact Windows and .NET Framework version installed. There is no single package for every system, so administrators should use the release notes to find the appropriate KB. For Windows 11 version 26H2, the cited update is KB5127694.

The Windows code-integrity bypass was first presented at the 44Con conference in September, after the researcher judged that it fell outside Microsoft's rules for issues eligible for a fix. After .NET developers explained that the relied-on behavior was accidental, the issue was reported in late September. Microsoft included the correction in October's Patch Tuesday, less than a month later.

For businesses reviewing this kind of Windows exposure, AEU-I provides security-first IT, infrastructure and consulting.

Also available in: DeutschItalianoShqip