SAASMENT

News

A one-bit .NET header change bypassed Windows code integrity.

A fallback in .NET Framework 4 let a local user run an untrusted assembly after Windows refused to load it as a normal program, getting past code integrity and VirtualBox's process hardening. Both flaws were patched before the write-up.

Illustration of a charcoal program file with one lime square flipped, beside a pink-cracked shield and a lime ring

Impact

What was impacted
CVE-2026-108398, scored 8.8, a local security-feature bypass in .NET Framework 4. When Windows rejects a .NET file as an executable image, version 4 can run it from a plain memory copy that skips those image checks. Clearing one header bit, IMAGE_FILE_EXECUTABLE_IMAGE, forces that rejection, and a logic error in .NET's own policy check still let the file load with User Mode Code Integrity on. The same fallback bypassed Oracle VirtualBox's process hardening on Windows hosts, CVE-2026-87268, scored 7.8. VirtualBox's check returned the triggering error for any .NET file compiled as AnyCPU, so an unchanged file took a path the hardening never inspects. The researcher got it loaded, while a virtual machine was started, by registering a COM object in the current user's settings that a protected VirtualBox process pulls in. The code runs inside that VirtualBox process. It is not an escape from a guest machine onto the host. Pointing a COM object that WerSecureFault.exe loads at the same kind of file ran test code inside a Protected Process Light process at the highest protection level, without administrator rights. That route has no separate CVE. The older Protected Process type resisted it because the .NET runtime files lack the page hashes it requires.
Who was impacted
Anyone running .NET Framework 4 on Windows, especially machines that rely on User Mode Code Integrity, such as Windows 11 S Mode, and anyone running Oracle VM VirtualBox on a Windows host. The attacker starts as an ordinary local user on that computer, and a program has to be willing to load the assembly. This is not a way to take over a Windows machine from the internet. Microsoft lists CVE-2026-108398 as publicly disclosed and not used in attacks.
What you need to do
Install the October 13 .NET Framework update that matches the exact Windows and .NET Framework version. It is not one shared package. The update notes list the KB for each version. On Windows 11 version 26H2, the example given is KB5127694. On Windows hosts, move VirtualBox to a build that carries the September fixes and check the version that is actually running. Oracle lists VirtualBox 7.2.16 on Windows hosts as affected. The article's table names build 7.2.18, shipped September 15, as that September update. The same patch note also names 7.2.16 and 7.2.18 together, and says an upstream code fix is not the same as a released binary. The October .NET fix corrects the User Mode Code Integrity policy check. It does not change loading for protected processes, so the researcher says the Protected Process Light route should still work.

Google Project Zero researcher James Forshaw showed that a fallback in .NET Framework 4 let a local user run an untrusted assembly after Windows refused to load it as a normal program file. The same behavior got past two protections: Windows code integrity, tracked as CVE-2026-108398, and Oracle VirtualBox's process hardening on Windows hosts, tracked as CVE-2026-87268. Oracle fixed the VirtualBox flaw in September. Microsoft fixed the Windows one on October 13. Both fixes landed before the write-up, which was published the day before this report.

Version 4 of the framework can run a .NET program from a plain copy in memory when loading it as an executable image fails on one specific error. That memory copy skips the image checks a normally loaded program would face. VirtualBox on Windows watches the system calls that load program files into its virtual machine processes, so a less-trusted user on the same computer cannot push code into them. Its check returned that error for any .NET file compiled as AnyCPU, a form meant to run on any processor, so an unchanged file took the path the hardening never inspects. Forshaw got the file loaded while a virtual machine was started by registering a COM object in the current user's settings that a protected VirtualBox process would pull in. Oracle scores CVE-2026-87268 at 7.8, calls it local, and says it needs low privileges and no user interaction. It lists VirtualBox 7.2.16 on Windows hosts as affected, and says a successful attack can result in takeover of Oracle VM VirtualBox. The code runs inside the protected VirtualBox process. It is not a breakout from a guest virtual machine onto the host, and the attacker starts as an ordinary user on that host.

Against Windows itself there is no VirtualBox component, only the system call that maps a file as an image. Clearing one bit in the .NET file header, the IMAGE_FILE_EXECUTABLE_IMAGE flag, made that call reject the file while .NET still loaded and ran it. On Windows 11 S Mode, which turns on User Mode Code Integrity, a logic error in .NET's own policy check let the file load anyway. CVE-2026-108398 works through the .NET Framework 4 loading path and needs a program willing to load the assembly. Microsoft scores it 8.8, rates it a local low-privilege security-feature bypass, and lists it as publicly disclosed but not used in attacks.

The same kind of file reached Protected Process Light, a Windows process type that ordinary programs, even ones running as administrator, are not meant to enter. By pointing a COM object that WerSecureFault.exe loads at his test code, Forshaw ran that code inside a Protected Process Light 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 it requires. The October fix corrects the policy check for User Mode Code Integrity and does not change loading for protected processes. Forshaw says that Protected Process Light route should still work. It has no separate CVE.

On Windows hosts, update VirtualBox to a build that carries the September fixes, and check the version that is actually installed. Oracle lists 7.2.16 on Windows hosts as affected. The article's comparison table names build 7.2.18, which shipped on September 15, as the September update. The patch note also names 7.2.16 and 7.2.18 together and warns that an upstream code fix is not the same as a released binary. .NET systems need the October 13 update that matches the exact Windows and .NET Framework version. The release notes list the right KB for each. On Windows 11 version 26H2, the example given is KB5127694. Forshaw first showed the code-integrity bypass at the 44Con conference in September, after judging it fell outside Microsoft's rules for what gets fixed. .NET developers later told him the behavior he had counted on was accidental. He reported it in late September, and the fix arrived in that October Patch Tuesday.

For your AI agent

Agent instructions — copy paste to Claude

You are helping me respond to two local flaws in how .NET Framework 4 loads a program file, described in a write-up by Google Project Zero researcher James Forshaw. Do not write or run a proof of concept. Do not flip header bits, craft a .NET assembly, register a COM object, hijack WerSecureFault.exe, or try to inject code into VirtualBox or a protected process. Ask before installing updates, changing code-integrity policy, or taking a machine offline.

Facts from the report:
- A fallback in .NET Framework 4 runs a .NET program from a plain copy in memory when loading it as an executable image fails on one specific error. That memory copy skips the image checks a normally loaded program would face.
- CVE-2026-108398 is scored 8.8. It is a local, low-privilege security-feature bypass. Clearing the IMAGE_FILE_EXECUTABLE_IMAGE bit in a .NET file header makes the image-mapping call reject the file, and .NET still loads and runs it. On Windows 11 S Mode, which enables User Mode Code Integrity, a logic error in .NET's own policy check let the file load with that policy on. It needs a program willing to load the assembly. It is not a remote takeover of a Windows machine. Microsoft lists it as publicly disclosed and not used in attacks. The fix shipped on October 13, before the write-up.
- CVE-2026-87268 is scored 7.8. It is the same loading behavior against Oracle VirtualBox's process hardening on Windows hosts. VirtualBox watches system calls that load program files into its virtual machine processes. Its check returned the triggering error for any .NET file compiled as AnyCPU, so an unchanged file took a path the hardening never inspects. Forshaw loaded it while a virtual machine was started by registering a COM object in the current user's settings that a protected VirtualBox process pulls in. Oracle says it needs low privileges and no user interaction, lists VirtualBox 7.2.16 on Windows hosts as affected, and says a successful attack can result in takeover of Oracle VM VirtualBox. The code runs inside the protected VirtualBox process. It is not a guest-to-host escape. The attacker starts as an ordinary user on that host. Oracle fixed it in September, before the write-up.
- Protected Process Light is a Windows process type that ordinary programs, even with administrator rights, are not meant to enter. By pointing a COM object that WerSecureFault.exe loads at his test code, Forshaw ran that code inside a Protected Process Light process at the highest protection level without administrator rights. The older Protected Process type resisted this because the .NET runtime files lack the page hashes it requires. The October fix corrects the User Mode Code Integrity policy check and does not change loading for protected processes. Forshaw says the Protected Process Light route should still work. It has no separate CVE. Do not invent one, and do not try that route.
- VirtualBox patch note in the report: update Windows hosts to a build that carries the September fixes, and check the running version. Oracle lists 7.2.16 on Windows hosts as affected. The comparison table names build 7.2.18, shipped September 15, as the September update. The same note also names 7.2.16 and 7.2.18 together and says an upstream code fix is not the same as a released binary. Do not treat 7.2.18 as both the vulnerable build and the fix. Say what the report says and check the installed version.
- .NET patch: the October 13 update that matches the exact Windows and .NET Framework version, not one shared package. The release notes list the KB for each. On Windows 11 version 26H2, the example given is KB5127694. Do not invent a KB for any other version.
- Forshaw first presented the code-integrity bypass at 44Con in September, having judged it fell outside Microsoft's rules for what gets fixed. After .NET developers told him the behavior was accidental, he reported it in late September. The fix arrived in October's Patch Tuesday. Do not contact him from this prompt.

Context:
- What was impacted: .NET Framework 4's fallback when an image load fails, which bypassed Windows User Mode Code Integrity and VirtualBox process hardening on Windows hosts, and was also shown inside Protected Process Light.
- Who should care: local users of .NET Framework 4 on Windows, especially where User Mode Code Integrity is on, and operators of VirtualBox on Windows hosts.
- What to do: install the matching October 13 .NET KB, update VirtualBox on Windows to the September fixed build after checking the running version, and do not assume the Protected Process Light path was closed.

Do this in order. Ask before installing a patch, changing a security policy, or isolating a machine. Prefer read-only inventory first. Do not write or run an exploit or a proof of concept.

1. Inventory
   - Find Windows machines that have .NET Framework 4, and record the Windows version and whether User Mode Code Integrity or S Mode is enabled. Do not change the policy.
   - Check whether the October 13 .NET update for that exact Windows version is already installed. Use the KB named in the vendor's update notes for that version. The only KB this report names is KB5127694, and only for Windows 11 version 26H2. If the notes do not list a KB, say so and stop. Do not guess a number.
   - Find Oracle VM VirtualBox installs on Windows hosts and record the version string. Oracle lists 7.2.16 on Windows hosts as affected. The report's table names 7.2.18, shipped September 15, as the September update that carries the fix, and also tells you to check the running build because an upstream fix is not a released binary.
   - Note whether WerSecureFault.exe or other Protected Process Light processes are present only as context. Do not attach to them or replace a COM registration.
2. Contain
   - If a Windows host is still on VirtualBox 7.2.16, or on a build you cannot show carries the September fixes, propose keeping untrusted local users off that host until it is updated. Ask before you change access.
   - Do not disable .NET, turn off code integrity, or block COM globally in this step.
3. Remediate
   - After I agree, install the October 13 .NET Framework update that the vendor lists for this exact Windows version.
   - After I agree, update VirtualBox on Windows hosts to a released build that carries the September fixes. Stop if the download you are looking at is not that build. Do not assume 7.2.18 is safe and vulnerable at the same time. Read the version you are about to install against Oracle's advisory.
   - The report says the Protected Process Light route was not closed by the October fix and has no CVE. Do not invent a patch for it. If we rely on Protected Process Light to keep administrator-level code out, say that this report says that loading path can still work, and stop there.
4. Verify
   - If I asked you to make a change, confirm the .NET KB installed and the VirtualBox version now running.
   - If I did not ask you to change anything, report the inventory only.
5. Report back
   - Which machines have .NET Framework 4, whether the matching October 13 update is present, the VirtualBox version on each Windows host, and that Microsoft has not reported attacks using CVE-2026-108398. Repeat that the Protected Process Light path has no separate CVE and was not described as fixed.

Do not invent victims, KB numbers, or a CVE. If a check needs access I have not given you, say what you need and stop.

← All news

Try the platform.

Open the demo workspace with mock data. No login. Register from the banner when you want early access. No security team. No call.

Try the platform