Skip to main content
CybersecurityVulnerability Management

.NET Framework Flaw Exposes Windows to Code Integrity Bypass

Windows developer workstation with laptop, programming tools, and code editor in a cluttered, softly lit space.

"This single bit change is all you need to load an untrusted .NET assembly," Google Project Zero researcher James Forshaw wrote in a write-up published yesterday.

James Forshaw and a .NET loading fallback

Forshaw's analysis shows a specific quirk in how the .NET Framework (version 4) loads program files. When the usual image-based load path fails with one particular error, the runtime falls back to running a plain copy of the .NET file from memory. That memory-copy path does not perform the same image checks as a normal loaded executable, and so a file rejected by the image loader can still be executed by the runtime.

Oracle VirtualBox process hardening bypass (CVE-2026-87268)

Oracle VirtualBox's process hardening on Windows hosts watches the system calls that map program files into its virtual-machine processes so a less-trusted local user cannot inject code. Forshaw demonstrated that VirtualBox's check returns the specific error for any .NET file compiled as AnyCPU. Because .NET's fallback path takes over, an unchanged AnyCPU file can be loaded and executed through a path the hardening never inspects.

To make a protected VirtualBox process pull in the assembly while a virtual machine was running, Forshaw registered a COM object in the current user's settings — a technique described in his analysis as COM hijacking. The resulting code executes inside the protected VirtualBox process. Oracle's advisory for CVE-2026-87268 characterizes the issue as a local problem requiring low privileges and no user interaction, assigns a 7.8 score, lists VirtualBox 7.2.16 on Windows hosts as affected, and warns a successful attack can result in the "takeover of Oracle VM VirtualBox." Oracle fixed the vulnerability in September; VirtualBox 7.2.18, shipped on September 15, carries that set of fixes. Forshaw notes the exploit runs inside the protected process rather than breaking out of a guest VM to the host, and the attacker begins as an ordinary user on that host.

Windows User Mode Code Integrity bypass (CVE-2026-108398)

Forshaw applied the same principle to Windows' own code-integrity checks. He discovered that clearing the IMAGE_FILE_EXECUTABLE_IMAGE flag — a single bit in a .NET file's header — makes the image-mapping system call reject the file while .NET still accepts and runs it. He tested the technique on Windows 11 S Mode, where User Mode Code Integrity (UMCI) is enabled, and found a logic error in .NET's policy check permitted the file to load even with UMCI enforced.

Microsoft tracked this issue as CVE-2026-108398, rated it a local, low-privilege security-feature bypass with an 8.8 score, and issued a fix on October 13. Microsoft lists the issue as publicly disclosed but not used in attacks. The bypass works through the .NET Framework version 4 loading path and requires a program willing to load the assembly; Forshaw noted it is not a mechanism to seize any Windows machine over the internet.

Protected Process Light (PPL) execution via WerSecureFault.exe and COM hijack

Forshaw's test code reached an even more sensitive target. By hijacking a COM object that WerSecureFault.exe loads, he executed code inside a Protected Process Light (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 that older protection requires. Forshaw says October's fix corrects the UMCI policy check but does not alter the runtime loading behavior for protected processes, so the PPL execution route "should still work," according to the researcher. That PPL path did not receive a separate CVE.

What to patch: VirtualBox builds and the October Windows/.NET updates

The practical takeaway is straightforward and specific. On Windows hosts, update VirtualBox to a build that includes the September fixes — affected versions cited include 7.2.16 and 7.2.18, with 7.2.18 shipped on September 15. Because an upstream code change does not equal an installed binary, operators should check the running VirtualBox version rather than assume earlier builds have been replaced.

.NET systems require the October 13 update that matches the exact Windows and .NET Framework version in use; the update release notes list the appropriate KB article for each platform. As an example cited in the analysis, the update for Windows 11 version 26H2 is KB5127694.

Forshaw first presented the Windows code-integrity bypass at the 44Con conference in September and, after .NET developers described the behavior as accidental, reported it to Microsoft in late September. Microsoft issued the fix in October's Patch Tuesday less than a month after that report.

Both vendor advisories emphasize the same simple operational action: apply the available VirtualBox and Windows/.NET patches and verify installed versions. The public record for these issues shows they required only local access and low privileges, that fixes were issued in September and October, and that, according to Microsoft, the Windows bypass was publicly disclosed but not observed in attacks.

Original story