ENGINEERING

HTTP2Shell on Windows: even the Photos app carries its own vulnerable .NET

Updated October 26, evening: added Electron apps, browsers and Teams, with which Chromium version has the fix, checked against Chromium’s own source.

CVE-2026-111497 is a buffer overflow in Google’s Brotli decoder, the library that unpacks Content-Encoding: br web traffic. Crafted Brotli data can corrupt memory and, in the right app, run code. It’s been called Node2Shell, Broccoli2Shell and now HTTP2Shell, because researchers kept finding it in one more place before anyone traced it back to Brotli itself. There’s a public proof of concept. As of October 26 nobody has reported it being exploited in the wild.

I wrote about Node.js and Linux on October 23. On Linux most of it comes down to one system library package. Windows is different. There’s no system Brotli library, so every runtime and every app that decodes Brotli brings its own copy, and each one gets fixed by whoever built it. On October 25 Microsoft shipped out-of-band .NET updates for it, and that’s the one to start with on Windows, because .NET is the one that hides everywhere.

How this is different from PHP2Shell

With PHP2Shell the hard part was finding every copy of PHP. Once you found one, you knew what to do with it: update it.

Here the vulnerable code is a few kilobytes inside a runtime, and one Windows machine can have a dozen copies of that runtime. Some of them you can update, some of them only the vendor can. The Microsoft Update fixes only one of them.

What’s reachable

A .NET app is exposed when it decompresses Brotli that came from somewhere it doesn’t trust:

None of those are on by default, so plenty of .NET apps never touch the decoder. You can’t tell which ones do from the outside, though, so treat every vulnerable copy as exposed until you can confirm they aren’t.

For Node.js it’s broader. fetch() decodes br responses automatically, so any Node app that fetches from an untrusted server is in scope.

The fixed versions

Where .NET hides on a Windows machine

There are four ways a copy of the .NET runtime ends up on a Windows machine:

To see what that looks like, I put one of each on a Windows 11 lab machine, all built on the vulnerable .NET 8.0.32: the shared runtime from Microsoft’s installer, a self-contained app in C:\Program Files\Contoso Inventory, a single-file app in C:\Program Files\Contoso Agent, and a portable Node.js 22.23.3 in C:\Tools. Then I ran RFF’s exposure check on it:

RFF job on client2: VULNERABLE .NET 8.0.32 for ContosoAgent.exe (single-file app), Contoso Inventory (self-contained app) and the shared runtime 8.0.32; VULNERABLE .NET 9.0.19 for Microsoft.GetHelp and Microsoft.Windows.Photos and .NET 8.0.31 for Microsoft.MicrosoftOfficeHub (Store apps); VULNERABLE Node 22.23.3; the RFF agent's own binaries fixed on 8.0.33

It found the four I planted. It also found three I didn’t plant. Windows Photos and Get Help carry their own .NET 9.0.19, and the Microsoft 365 app (Office Hub) carries .NET 8.0.31. All three are below the fixed versions, and all three came with Windows. I don’t know whether any of them ever decodes Brotli from the internet. That’s Microsoft’s call to make, but at least we know they’re there.

Then I ran it on my own PC

A lab machine is one thing. So I ran the PowerShell below on my everyday Windows 11 PC. Leaving out my own development folders, this is what came back:

App.NET it carriesFixed?
Phone Link, Cross Device and the Windows 365 app10.0.12No (needs 10.0.14)
Copilot9.0.10No
Clipchamp8.0.11No
App Installer (the package behind winget)8.0.31No
WSL Settings8.0.0No. That’s the first .NET 8 release, from 2023
Windows Performance Toolkit6.0.27No, and never will be. .NET 6 is out of support
VS Code’s C/C++ extension8.0.25No
Unreal Engine 5.78.0.18No
PowerShell 710.0.14Yes

PowerShell 7 already ships the fixed runtime. Everything else on that list was waiting on its vendor. The WindowsApps folder also still held older builds of Photos, Copilot, Phone Link, Cross Device and Get Help next to the current ones, each with its own older runtime.

Check one Windows machine

Run this in an elevated PowerShell window. It lists every copy of the .NET runtime on C: (shared, self-contained and Store apps) with its version, read from the runtime’s own Brotli library. Give it a few minutes:

Get-ChildItem C:\ -Recurse -Force -Filter System.IO.Compression.Native.dll -ErrorAction SilentlyContinue |
  Select-Object @{ n = 'Version'; e = { ($_.VersionInfo.ProductVersion -split ' ')[0] } }, DirectoryName |
  Sort-Object { [version]$_.Version } | Format-Table -AutoSize

Don’t drop the -Force. C:\Program Files\WindowsApps is a hidden folder, and without -Force PowerShell skips it. My first run of this command, as an admin, found two copies and missed all three Store apps.

Single-file apps need a different trick, because the runtime is inside the .exe. Each one stores the name and version of the runtime it was built with near the end of the file, so this reads the last 2 MB of every large .exe and looks for it:

Get-ChildItem 'C:\Program Files', 'C:\Program Files (x86)', 'C:\ProgramData' -Recurse -Force -Filter *.exe -ErrorAction SilentlyContinue |
  Where-Object Length -gt 20MB | ForEach-Object {
    $s = [IO.File]::OpenRead($_.FullName); $b = New-Object byte[] 2MB
    [void]$s.Seek([Math]::Max(0, $s.Length - $b.Length), 'Begin'); $n = $s.Read($b, 0, $b.Length); $s.Close()
    if ([Text.Encoding]::ASCII.GetString($b, 0, $n) -match 'Microsoft\.NETCore\.App\.Runtime\.win-\w+/([\d.]+)') {
      [pscustomobject]@{ Version = $Matches[1]; Path = $_.FullName }
    }
  } | Format-Table -AutoSize

Reading only the end of the file matters. My first version read every large .exe whole and was still going after 20 minutes on my own PC. The runtime name sits in the last 0.1% of the file, so the last 2 MB is plenty.

For Node.js on Windows, the commands are in the October 23 post.

Electron apps, browsers and Teams

VS Code, Slack, Discord and most other desktop apps built from web code are Electron apps. Each one carries its own Chromium and its own Node.js, and Electron builds that Node against Chromium’s copy of Brotli. So for an Electron app, the Chromium version is what decides it.

I didn’t want to guess which Chromium has the fix, so I checked Chromium’s own source. Chromium records the Brotli it bundles in third_party/brotli/README.chromium. Chromium 147 bundles a Brotli from October 2025, which doesn’t have the fix. Chromium 148 bundles one from March 18, which does (the fix went into Brotli on February 27). Electron 42 is the first Electron on Chromium 148.

Every Electron app keeps its versions in its .exe, in a string like Chrome/148.0.7778.96 Electron/42.8.1. This finds every Electron app on C: and reads them:

Get-ChildItem C:\ -Recurse -Force -Filter v8_context_snapshot.bin -ErrorAction SilentlyContinue | ForEach-Object {
    Get-ChildItem $_.DirectoryName, $_.Directory.Parent.FullName -Filter *.exe -ErrorAction SilentlyContinue | Where-Object Length -gt 50MB
  } | Sort-Object FullName -Unique | ForEach-Object {
    $t = [Text.Encoding]::ASCII.GetString([IO.File]::ReadAllBytes($_.FullName))
    if ($t -match 'Chrome/(\d+)\.\d+\.\d+\.\d+ Electron/([\d.]+)') {
      [pscustomobject]@{ Electron = $Matches[2]; Chromium = [int]$Matches[1]; Path = $_.FullName }
    }
  } | Format-Table -AutoSize

It looks for v8_context_snapshot.bin, a file every Chromium-based app ships, and reads the large .exe next to it or one folder up (current VS Code keeps its Chromium files in a versioned subfolder). Anything under 148 in the Chromium column needs an update. It took about two and a half minutes on the lab machine, because each Electron .exe is around 200 MB and the version string sits most of the way through it.

On the lab machine I unzipped an old portable VS Code (1.100, from May 2025) next to the current one. On my own PC, VS Code (Electron 42.8.1) and Discord (Electron 42.11.15) were both already fixed.

RFF job on client2: VULNERABLE Electron 34.5.1 (Chromium 132) for the old portable VS Code, fixed Electron 43.7.7 (Chromium 150) for the current one, and Edge, Chrome and the WebView2 runtime fixed at 152 to 156

Fixing each kind

The shared runtime gets the fix from Microsoft Update, but only if the machine is opted in. On Windows 10 and 11 that’s Settings > Windows Update > Advanced options > Receive updates for other Microsoft products. My lab machine had it off, so it would never have picked up 8.0.33 on its own. This shows whether it’s on (look for “Microsoft Update” in the list):

(New-Object -ComObject Microsoft.Update.ServiceManager).Services | Select-Object Name, IsDefaultAUService

Windows Server doesn’t get .NET updates through Automatic Updates even then, unless you opt it in with a registry value. Microsoft documents it as AllowAUOnServerOS = 1 (DWORD) under HKLM\SOFTWARE\Microsoft\.NET. WSUS and Configuration Manager carry the .NET updates too. When the update installs, it removes the older patch versions of the same release, so 8.0.33 replaces 8.0.32 instead of sitting next to it. Or install the 8.0.33 runtime yourself from Microsoft; that’s what I did in the lab.

Self-contained and single-file apps only get fixed when their vendor rebuilds them on a fixed runtime. Updating the shared runtime does nothing for them. Find out which ones you have, then ask each vendor when the rebuild ships, or update the app if it already has.

Store apps update through the Microsoft Store. On October 26 I forced a Store update scan on the lab machine (the UpdateScanMethod on the MDM_EnterpriseModernAppManagement_AppManagement01 WMI class, run as SYSTEM). It came back with nothing newer: Photos stayed on the build carrying 9.0.19. So for now the Store apps are waiting on Microsoft too.

Node.js copies get replaced with 22.23.4, 24.22.1 or 26.12.1, or retired if they’re on 20 or older.

After installing 8.0.33, removing 8.0.32, swapping both Contoso apps for 8.0.33 builds and deleting the old Node.js, the same check looks like this:

RFF job on client2 after the fixes: the shared runtime, Contoso Inventory and ContosoAgent.exe all fixed on .NET 8.0.33, no Node.js found, and the three Store apps (Get Help and Photos on 9.0.19, Office Hub on 8.0.31) still VULNERABLE

Everything I could fix went green. The three Store apps stayed red, because the fix for those has to come from Microsoft.

About RFF’s own agent

RFF’s Windows and Linux agents are single-file .NET apps too, and they use HttpClient with automatic decompression. The current builds (1.3.161 for Windows, 1.3.162 for Linux) embed .NET 8.0.33, which is why they show up green in the pictures above. If you run RFF, the agent updates itself, so there’s nothing for you to do there.

Doing this across a fleet

The RFF Script Library’s HTTP2Shell / Node2Shell (CVE-2026-111497) - Node.js, .NET and Electron Brotli Exposure Check does all of the above as SYSTEM on every Windows machine you point it at. It finds every node.exe, every .NET runtime copy (shared, self-contained, single-file and Store apps), every Electron app, and Chrome, Edge and WebView2, reads each version from the file without running anything, and says which ones are vulnerable and who has to fix them. The Linux version also checks the system Brotli library, which is what fixed Ubuntu’s own Node.js in my lab once apt installed libbrotli1 1.2.0-3ubuntu0.1. Both are read-only.

RFF is free for your first 100 endpoints: getrff.com.

Sources

One email per new post, nothing else. Unsubscribe in one click. Or use the RSS feed.

Comments

Comments use GitHub Discussions, so you'll need a GitHub account to post. Corrections are especially welcome.