Google Researcher Shows How a Single Bit Change in .NET Files Bypassed Windows Code Integrity
About 5 min read
securitysoftwarenetworking
Google Project Zero researcher James Forshaw disclosed a new bypass that exploits a quirk in the .NET Framework’s file‑loading routine, allowing a local attacker to run untrusted code past two separate Windows protections. The write‑up, published yesterday, details how a single‑bit change in a .NET assembly can evade both Oracle VirtualBox’s process‑hardening checks and Microsoft’s code‑integrity enforcement, exposing a pathway for low‑privilege code execution on Windows hosts.
The vulnerability stems from the way the .NET Framework loads program files when the normal executable‑image path fails. In version 4 of the framework, a specific error triggers a fallback that copies the .NET file into memory and runs it without performing the image checks that a standard loader would apply. This fallback is invoked only for a particular failure condition, and the memory copy bypasses the security validations normally performed on an executable image.
Oracle VirtualBox on Windows monitors the system calls that load program files into its virtual‑machine processes, a measure intended to prevent a less‑trusted user on the same computer from injecting code into those processes. The .NET Framework’s fallback caused the VirtualBox check to return the same error for any .NET file compiled as “AnyCPU,” a configuration meant to run on any processor architecture. Because the file is then loaded through the fallback path, the hardening logic never inspects it, allowing the attacker to slip malicious code past the guard. This flaw is tracked as CVE‑2026‑87268.
Microsoft’s code‑integrity subsystem, which decides which user‑mode code may run, is similarly vulnerable. Forshaw discovered that clearing a single bit in the .NET file’s header—the IMAGE_FILE_EXECUTABLE_IMAGE flag—causes the system‑call that maps a file as an image to reject the file, while the .NET runtime still loads and executes it. The result is that an untrusted .NET assembly can be launched even when User Mode Code Integrity (UMCI) is enforced, as in Windows 11 S Mode. This bypass is catalogued as CVE‑2026‑108398.
Oracle addressed the VirtualBox issue in September, releasing a fix for VirtualBox 7.2.16 and 7.2.18. The patch was shipped on September 15, but the upstream code fix does not guarantee that every binary on a system is patched; users must verify the running version to ensure the vulnerability is mitigated. Oracle rates CVE‑2026‑87268 as a local problem requiring low privileges and no user interaction, assigning it a CVSS score of 7.8. Its advisory warns that a successful exploit could lead to a takeover of Oracle VM VirtualBox.
Microsoft released its fix on October 13, during the monthly Patch Tuesday. The remediation corrects the policy check for UMCI but does not alter the loading behavior for protected processes, meaning the technique that injects code into a Protected Process Light (PPL) remains viable. Microsoft classifies CVE‑2026‑108398 as a local, low‑privilege security‑feature bypass with a CVSS rating of 8.8. The vulnerability is publicly disclosed but, to date, has not been observed in the wild. The appropriate update for Windows 11 version 26H2 is KB5127694, and the .NET Framework update must match the exact Windows and framework version in use rather than a generic package.
Forshaw’s exploitation method relies on COM hijacking. He registers a COM object in the current user’s settings, which a protected VirtualBox process subsequently loads. By hijacking the COM object that WerSecureFault.exe loads, he also managed to run his test code inside a PPL at the highest protection level without needing administrator rights. The older Protected Process type resisted this approach because .NET runtime files lack the page hashes required for that protection. Although the October fix resolves the UMCI policy error, it does not modify the loading path for protected processes, so the PPL route should still function, albeit without a separate CVE assignment.
The practical impact for end users and administrators is that an ordinary user on a Windows host can, by altering a single bit in a .NET assembly, bypass both VirtualBox’s hardening and Windows’ code‑integrity checks. While the attack does not provide remote code execution over a network, it enables a local attacker to execute arbitrary .NET code inside a protected process, potentially compromising the integrity of VirtualBox or other security‑sensitive components. The exploit requires a program willing to load the malicious assembly, so it is not a universal “any‑machine” break‑in, but it does illustrate how subtle runtime behaviors can undermine layered defenses.
Forshaw first presented the Windows code‑integrity bypass at the 44Con conference in September, arguing that the behavior fell outside Microsoft’s typical remediation scope. After .NET developers confirmed that the fallback behavior was unintended, he reported the issue in late September. Microsoft’s response was swift: the patch arrived less than a month later, demonstrating the effectiveness of coordinated vulnerability disclosure and the importance of rapid patch cycles.
For readers of ShieldPack who manage Windows environments, the immediate steps are clear. Verify that any installation of Oracle VM VirtualBox is at least version 7.2.18, or that the September 15 patch has been applied, and confirm the running build to avoid false confidence. Apply the October 13 .NET Framework update that corresponds to the specific Windows build in use—on Windows 11 26H2, this is KB5127694. Administrators should also audit COM registration locations for unexpected entries that could be leveraged for hijacking, especially in contexts where protected processes such as WerSecureFault.exe are involved.
The broader significance of these findings lies in the reminder that runtime libraries like the .NET Framework can unintentionally open doors to bypass core operating‑system security mechanisms. Even well‑established defenses such as User Mode Code Integrity and process hardening can be subverted when a runtime falls back to a less‑checked code path. Security teams should therefore monitor not only OS patches but also updates to language runtimes and virtualization platforms, ensuring that all components in the software stack receive timely remediation. The coordinated fixes from Oracle and Microsoft underscore the value of collaborative vulnerability research and the need for organizations to maintain an up‑to‑date posture across the entire stack.
Rockstar Games has confirmed that a temporary stat boost originally planned for Grand Theft Auto VI will not appear in the version released for Australia and New Zealand. The company removed…
Amazon has announced a Black Friday price reduction on a 55‑inch Hisense 4K ULED television, positioning the model as a compelling option for players who plan to experience the upcoming rele…
Max Verstappen, the Dutch‑Belgian Formula 1 driver, disclosed that during the weekend of the Las Vegas Grand Prix he devoted more than 40 hours to playing the video game Grand Theft Auto VI.…