Recent findings from Google Project Zero’s James Forshaw reveal a critical security flaw in the .NET Framework that allows unauthorized code execution on Windows systems. This vulnerability, found in how the framework loads program files, compromises two major security protections: Windows code integrity and Oracle VirtualBox’s process hardening.
Details of the Security Vulnerability
The issue, tracked as CVE-2026-87268 for VirtualBox and CVE-2026-108398 for Windows, involves a peculiar loading behavior in the .NET Framework. The flaw permits a local attacker to execute untrusted code by exploiting a fallback mechanism when the framework encounters specific errors. This bypasses the usual checks that ensure code integrity.
Forshaw demonstrated that by tweaking a single bit in a .NET file’s header, the IMAGE_FILE_EXECUTABLE_IMAGE flag, the modified file could be rejected by normal system calls but still executed by the .NET Framework. This technique worked even on Windows 11 S Mode, which typically enforces strict user-mode code integrity policies.
Impact on VirtualBox and Windows Systems
Oracle’s VirtualBox, which monitors system calls to prevent unauthorized code execution, was also affected by this issue. The vulnerability allowed Forshaw to conduct a COM hijacking attack, enabling untrusted code to run within a protected VirtualBox process. Oracle addressed this issue in their September update, specifically for VirtualBox 7.2.16, with the fix included in build 7.2.18.
For Windows systems, the bypass impacted processes such as Protected Process Light (PPL), which are designed to prevent unauthorized access even from admin-level programs. By hijacking a COM object used by WerSecureFault.exe, Forshaw managed to execute test code within a PPL process without needing administrative privileges.
Resolution and Recommendations
Microsoft addressed the Windows-specific flaw with a security update released on October 13. This patch corrects the logic error in .NET’s policy check but does not alter the loading process for protected processes like PPL. Users are advised to apply the latest updates for both VirtualBox and Windows to secure their systems against these vulnerabilities.
To ensure protection, Windows users should update their .NET Framework to the version-specific patch corresponding to their system, as detailed in the release notes. Similarly, VirtualBox users should verify their software version to ensure it includes the September updates that rectify the identified security risks.
Conclusion
This discovery underscores the importance of staying vigilant with software updates and understanding the implications of security vulnerabilities. While both Oracle and Microsoft have issued fixes, users must actively apply these updates to mitigate potential risks. As technology evolves, maintaining robust security measures remains critical for safeguarding systems against emerging threats.
