اختر لغتك

WHAT ARE YOU LOOKING FOR?

Popular Tags

Raleigh, NC

32°F
Few Clouds Humidity: 67%
Wind: 4.63 M/S

One-Bit Alteration Enables Bypass of Windows Code Integrity in .NET Applications, Google Researcher Finds

One-Bit Alteration Enables Bypass of Windows Code Integrity in .NET Applications, Google Researcher Finds

A previously overlooked behavior in Microsoft's .NET Framework allowed local attackers to circumvent multiple Windows security mechanisms designed to prevent unauthorized code execution, according to new research published by Google Project Zero security researcher James Forshaw.

The issue leveraged an unusual .NET program-loading process that enabled malicious code to execute even when standard Windows validation mechanisms rejected the file. Forshaw demonstrated that the behavior could be used to bypass both Oracle VirtualBox's process hardening protections and Windows Code Integrity enforcement, resulting in two tracked vulnerabilities: CVE-2026-87268 and CVE-2026-108398.

Both vendors addressed the issues before the public release of the research. Oracle patched the VirtualBox vulnerability in September, while Microsoft delivered its fix on October 13.

How the .NET Loading Behavior Created a Security Gap

The root of the issue lies in how .NET Framework 4 handles executable files that fail to load through the normal Windows image-mapping process.

Under specific circumstances, when Windows rejects a .NET executable image, the framework can fall back to loading the file directly into memory as a raw byte stream. Because this fallback path avoids the standard image-loading mechanism, the assembly can bypass some of the security inspections normally applied to executable code.

Forshaw discovered that this alternative loading process could be abused to execute untrusted code in environments that were expected to block it.

VirtualBox Hardening Bypassed Through .NET Assembly Loading

On Windows hosts, Oracle VirtualBox employs process hardening technology to prevent lower-privileged users from injecting code into protected VirtualBox processes. The protection monitors sensitive system calls associated with executable image loading and rejects unauthorized attempts.

However, Forshaw found that the .NET fallback mechanism effectively operated outside the scope of those protections.

Specifically, VirtualBox returned a particular error condition when loading .NET assemblies compiled using the AnyCPU architecture target, which is designed to run across different processor platforms. That error triggered .NET Framework's fallback loading behavior, allowing the assembly to execute through a path that VirtualBox never inspected.

To demonstrate exploitation, Forshaw utilized a COM hijacking technique. By registering a COM object within the current user's profile, he caused a protected VirtualBox process to load attacker-controlled code when a virtual machine was launched.

The attack did not require administrative privileges and could be carried out by a standard user already logged into the Windows host.

Oracle tracked the vulnerability as CVE-2026-87268, assigning it a CVSS score of 7.8. According to Oracle's advisory, successful exploitation could lead to the compromise and control of affected VirtualBox installations running on Windows systems.

Importantly, the vulnerability impacts the VirtualBox process itself and does not represent a virtual-machine escape scenario where an attacker moves from a guest VM to the underlying host operating system.

Single-Bit Modification Defeated Windows Code Integrity

Forshaw also discovered that the same .NET loading quirk could bypass Windows User Mode Code Integrity (UMCI), the security mechanism responsible for enforcing which user-mode applications are permitted to execute.

In this case, he modified a .NET assembly by changing just a single bit within the Portable Executable (PE) header. Specifically, he cleared the IMAGE_FILE_EXECUTABLE_IMAGE flag, causing Windows to reject the file when it was loaded through the standard executable image mapping process.

Although Windows considered the file invalid, .NET Framework still accepted and executed it through its fallback loading path.

According to Forshaw, this minimal modification was sufficient to evade trust validation and allow an otherwise unauthorized assembly to run.

Testing on Windows 11 S Mode, which enforces UMCI by default, revealed an additional flaw within .NET's internal policy validation logic. As a result, the framework incorrectly allowed the modified assembly to load despite code integrity restrictions being active.

Microsoft assigned the issue CVE-2026-108398, classifying it as a local security feature bypass vulnerability. The flaw received a CVSS score of 8.8 and was patched during October's Patch Tuesday release.

Microsoft stated that the vulnerability had been publicly disclosed but had not been observed in active attacks.

Impact on Protected Process Light (PPL)

Beyond bypassing code integrity controls, Forshaw demonstrated that the technique could reach highly protected Windows processes.

By exploiting a COM object loaded by WerSecureFault.exe, he successfully executed test code inside a Protected Process Light (PPL) instance operating at the highest available protection level. Notably, this was achieved without administrative permissions.

PPL processes are specifically designed to prevent interference from ordinary applications, including software running with elevated privileges. As a result, executing code inside such processes represents a significant escalation of capability.

The more restrictive legacy Protected Process (PP) model remained resistant to the technique because it requires runtime binaries to include page hash information, something the necessary .NET runtime components do not provide.

Forshaw noted that Microsoft's October update resolves the UMCI bypass by correcting the underlying policy validation flaw. However, his research suggests that the PPL-loading technique itself may remain functional because the update did not alter the protected-process loading behavior. No separate CVE has been assigned to that aspect of the research.

Remediation Recommendations

Organizations using Oracle VirtualBox on Windows should ensure they are running a release that incorporates Oracle's September security fixes. Both VirtualBox 7.2.16 and 7.2.18 were identified as affected versions during the disclosure process, making version verification essential before assuming systems are protected.

Windows administrators should also deploy Microsoft's October 13 security updates corresponding to their specific Windows and .NET Framework versions. Because .NET patches are distributed through platform-specific updates, organizations should confirm installation of the correct KB package for their environment. For example, systems running Windows 11 version 26H2 received the remediation through KB5127694.

Disclosure Timeline

Forshaw initially presented details of the Windows Code Integrity bypass during the 44Con security conference in September after believing the behavior fell outside Microsoft's servicing criteria. Following feedback from .NET developers indicating that the behavior was unintended, he formally reported the issue later that month.

Microsoft investigated the finding, classified it as a security vulnerability, and delivered a fix as part of October's Patch Tuesday updates, less than a month after disclosure. The rapid response closed a security gap that enabled untrusted .NET assemblies to bypass important Windows execution controls through a surprisingly small modification.

Found this article interesting? Follow us on X(Twitter) ,Threads and FaceBook to read more exclusive content we post. 

Cybersecurity Insight delivers timely updates on global cybersecurity developments, including recent system breaches, cyber-attacks, advancements in artificial intelligence (AI), and emerging technology innovations. Our goal is to keep viewers well-informed about the latest trends in technology and system security, and how these changes impact our lives and the broader ecosystem

Please fill the required field.