Hacker Dudes// alternate deck. same feed.
FEED ~7/h Δ0 ────:──── LINK ░ SIGNAL
97%
SPOOLED 0/45 CYCLE 61339.902.155.49
Evolving Threat: http2shell is an RCE in Node, Python, and morenitter.click
186pts/91 comments/3d/─
by cowlevel / hn> / « feed
▲▼ cowlevel23:32 hn>

Likely mitigation: disable brotli (br) content-encoding on both sides

▲▼ thayne01:33 hn>

Unfortunately, AFAICT, there is no way to do this for node's fetch. I suspect there are other client libraries that don't have a way to disable it.

▲▼ profdevloper00:01 hn>
▲▼ adzm00:10 hn>

Interestingly the commit that fixes this in brotli dates back to February https://github.com/google/brotli/commit/0ed4268a4401abcb4472...

▲▼ cowlevel00:55 hn>

OpenAI's tweet says it wasn't recognized as security relevant so wasn't important enough to make a release - until their agent realised it was.

https://nitter.jaydenha.uk/OpenAI/status/2113766354386084338

▲▼ dofm01:30 hn>

Until their agent realised there was a good chance of a press release in it.

─ 4 more ─
▲▼ Sytten00:20 hn>

Since I checked Rust servers should be fine since the brotli crate is not a binding on the C.

▲▼ doodlesdev02:50 hn>

Apparently it doesn't contain a binding to the C library, but it does contain some compatibility and shares design decisions with it. In other words, it's not a clean-room implementation from the spec, but rather it's a port. Since this RCE is triggered by a OOB access, it's unlikely to have made it into the crate, but it's good to keep these things in mind.

▲▼ octoberfranklin03:39 hn>

Nope, run ldd on cargo; it links to libbrotlidec.so.1. Via libcurl.

Aren't you glad cargo connects to the network whenever it feels like it? I just love it when my build tool does that.

There are 753 crates that drag in brotli this way: https://lib.rs/crates/curl/rev

The real killer is the oath crate. Basically every rust project using OAuth is vulnerable. That's 398 projects on crates.io plus who knows how many binaries (a lot of non-library projects don't bother publishing to crates.io).

Another scary one is "a practical HTTP client that is fun" https://lib.rs/crates/isahc used in 317 crates including sequoia. In case you wanted somebody to steal your private keys.

▲▼ rvanlaar00:28 hn>

It looks like brotli <= 1.2.0 is vulnerable.

The python package has already been updated to 1.2.1. https://pypi.org/project/brotli/1.2.1/

▲▼ Gigachad02:02 hn>

This is the fix commit https://github.com/google/brotli/commit/b418fa81c48262a86a95...

Another day another out of bounds access in C code.

▲▼ ks204803:00 hn>

Can someone point the heart of this fix? I see a bunch of change of naming of constants, etc

─ 3 more ─
▲▼ QuadmasterXLII00:34 hn>

is flask hello world with gunicorn behind apache vulnerable?

▲▼ TZubiri00:45 hn>

what I can say is that a 5 liner hello world starting with ‘import socket’ is not affected

whether a hello wolrd in fastapi is affected might also be interesting

▲▼ cpburns200901:49 hn>

Only decompression with Google's brotli library is affected. So if you use "Brotli" or "brotlicffi" in your Python app to decompress brotli, you're vulnerable. Compressing responses with brotli from Apache is safe.

▲▼ DogeGode00:41 hn>

Another day, another buffer-overflow vulnerability in C code …

▲▼ cowlevel00:57 hn>

No language is safe, not even Rust

https://news.ycombinator.com/item?id=50069499

Edit: why flagged

▲▼ OCTAGRAM03:29 hn>

Ada is measured to have 9 times less bugs in average

▲▼ Dylan1680707:13 hn>
>Edit: why flagged

Well for one you linked a bug that didn't lead to any known vulnerabilities. (And isn't an overflow.)

▲▼ anonymous90821301:00 hn>

I could do without every memory bug getting a cute sensational name and marketing push, I have to say.

▲▼ lovich01:15 hn>

that ship sailed a while ago. Rowhammer is the first one I can remember

▲▼ vinkelhake01:17 hn>

Let's not forget about heartbleed!

─ 4 more ─
▲▼ card_zero03:33 hn>

Rowhammer was kind of special, surely, what with being based on a physical design flaw?

▲▼ aaronbrethorst02:38 hn>

We should start naming them like hurricanes: NIST creates a list of alphabetical names and assigns any CVE >= 9.0 with a name. Vulnerability Alex (CVE 9.4)

▲▼ ks204802:58 hn>

Vulnerability Zzyzx in a week

─ 1 more ─
▲▼ duxup05:10 hn>

"Oh man, Jan really ruined my weekend."

I actually kinda like how that works.

▲▼ cowlevel05:52 hn>

CVE scores are already inflated because it looks good for their discoverers.

▲▼ my-huge-pony07:22 hn>

CVSS is a terrible proxy for vulnerability real world impact. Not to mention, that CVE with CVSS 10.0 in Bob's Flower Names library with 5 users is probably not that important.

▲▼ dboreham01:09 hn>

This is a better article: https://www.aikido.dev/blog/python-packages-vulnerable-node2...

and this is the actual CVE report, which doesn't say much: https://www.cve.org/CVERecord?id=CVE-2026-111497

▲▼ kylepomykala01:17 hn>

They just keep coming, don't they?

▲▼ hoppp01:39 hn>

Never gonna stop. Consider it normal. Hey, at least humans still have a job. Incident response

▲▼ awakeasleep01:41 hn>

Let's not kid ourselves, llm's are already doing the incident response for this in many infrastructure teams

─ 4 more ─
▲▼ Gigachad02:04 hn>

For as long as we still have C code accessible to the internet.

▲▼ kccqzy01:41 hn>

There’s apparently no writeup on exactly what was the fix. So I’m going to make a guess that this is the chromium commit that fixed the problem: https://source.chromium.org/chromium/chromium/src/+/224140d4...

And this commit contained a refactoring from BROTLI_BOOL to BrotliDecoderErrorCode so the situation was that probably one of the error conditions previously simply returned false but needed more detail about what went wrong to continue safely.

Well okay this change from `if (prev_ix < cur_ix)` to `if (prev_ix < cur_ix && cached_backward <= max_backward)` is also suspicious and could be an related or unrelated hardening fix.

▲▼ cpburns200901:43 hn>
▲▼ ataraxia93702:00 hn>

This one again feels overblown, at least for servers. I just checked an org of over 200 GitHub repos. Node, Python, and C#. None of them are vulnerable... because none of them actually call the Brotli decoder. It's just not enabled by default on the server side, by the platforms themselves. This is much like the PHP bugs, where specific conditions have to be in play before you're actually vulnerable.

For clients? Sure, that's a bigger risk. Patch them. But bad guys aren't attacking your clients unless the clients connect to them. Don't stay up late to fix this.

(And yes, .NET is included here, because Microsoft's Brotli module is a binding for Google's vulnerable reference implementation.)

▲▼ bbor02:14 hn>

I mean, I dare say the 4,200,000 Python servers built yesterday alone with this package might disagree...? https://pypistats.org/packages/brotli

I can't find download numbers for extras, but it comes in the pretty dang innocuous-seeming `aiohttp[speedups]`, as well. Also `urllib3[brotli]`. Many, many people will be running these servers without recognizing the name of the library, especially in the agentic era.

I might be missing something obvious in your message, cause I don't see why server/client is relevant. Why would a frontend app speak a protocol that the backend doesn't?

▲▼ deathanatos02:31 hn>

That's just the total number of times that package was downloaded, which is completely unrelated to how many servers it appears in? Same with `aiohttp`: aiohttp can be used as a client library.

Sure, people should check their dependency trees, and make informed decisions.

─ 1 more ─
▲▼ vinyl703:07 hn>

The whole package manager system is a complete disaster. A huge number of dependencies are pulled in that go unused in most projects, so the number of downloads is an extremely unreliable number. I'd be surprised if more than 10% of those downloads actually use the brotli decoder.

─ 1 more ─
▲▼ babuskov02:40 hn>

How did you check? Is there are PoC or some kind of command to run?

▲▼ shakna07:27 hn>

Is your Brotli library built from older than the February commit? (The last tagged release is before then.)

If so, might be vulnerable.

Don't have Brotli enabled? Not vulnerable to this.

▲▼ guac03:26 hn>

Doesn't node's fetch call the decoder automatically for `br` responses? So any attacker controlled content that a server fetch's may be vulnerable?

▲▼ Koffiepoeder06:46 hn>

The PHP thing is exploitable by now. No specific conditions needed. Stop spreading misinformation.

▲▼ FreakLegion08:22 hn>

There were no known breaches or end-to-end exploits as of Friday. I've seen LLM hallucinations purporting to be exploits and real exploits missing pieces (address leaks), but nothing complete. Friends at some of the bigger IR practices (CrowdStrike CAO, Unit 42, Talos) have said the same thing.

It'll happen sooner or later, but all signs are that this was first and foremost a process nightmare. It wasn't another Log4Shell.

─ 2 more ─
▲▼ hatthew02:14 hn>

I feel like normal security issues don't get much publicity. The PHP and eMudhra issues seemed severe, and worth publicity. But then with things like this, I'm not sure. Is this a severe issue? Or is it just a run of the mill issue that's only newsworthy because web security is on people's minds right now?

▲▼ Gigachad02:32 hn>

The whole industry is on edge right now, and numbers wise the CVE count has exploded beyond belief. It's probably to take the side of caution, treat everything as important and update everything promptly rather than the old way of doing things where libraries are left months or years out of date until something happens.

▲▼ tdeck04:33 hn>
>I's probably to take the side of caution, treat everything as important and update everything promptly

The risk is that if people keep seeing headlines about some vuln emergency that isn't in fact exploitable in most cases they'll just start to ignore them.

▲▼ cowlevel05:53 hn>

If your code ever accesses an HTTP URL that server can hack it. Some of the time, clients might be able to hack it too. This is comparable to the PHP issue.

▲▼ oofbey06:20 hn>

I’d say this is reasonably severe. For a decently large class of servers exposed to the internet there’s a pretty simple way to RCE them. The actual set of vulnerable servers isn’t nearly as big as many would like to suggest. But if you’re running a node/express server, you should really be in panic mode right now.

▲▼ userbinator02:26 hn>

Brotli, another one of those pseudostandards[1] from Big G that I was avoiding all along. Dodged another bullet.

[1] When more than half of the "standard" https://www.rfc-editor.org/info/rfc7932/#page-44 is an opaque binary blob, they're really not encouraging independent implementations.

Edit: the votes really show what an echochamber for Big G this place has become. FUCK YOU, GOOGLE!

▲▼ johncolanduoni03:18 hn>

How do you suggest they provide the static compression dictionary?

▲▼ userbinator03:48 hn>

You don't. Any real compression algorithm, including all the other standard ones, doesn't need such a thing.

─ 2 more ─
▲▼ csiegert02:30 hn>

Is Deno affected, too? It uses brotli by default. But I don’t know how it is implemented.

▲▼ gnabgib02:32 hn>

Deno is dead (baby)

>We will support the Deno runtime for another year with monthly releases containing bug fixes and security updates. After that year we will end our development

https://deno.com/blog/cloudflare

▲▼ csiegert02:53 hn>

I know that it is dead but since they provide security updates for another year I haven’t migrated off of it immediately. Anyways, the Deno runtime uses a brotli Rust crate that does not wrap C code, and with unsafe off, so I assume it is safe.

─ 2 more ─
▲▼ Amsozzer02:41 hn>

I doubt it

▲▼ VladVladikoff03:14 hn>
>A significant blast radius

Is it really so hard to write a 2 sentence tweet that you need an AI to do it for you?

▲▼ 0xbadcafebee03:37 hn>

If you are using Python, you are affected if you use urllib3, requests, httpx, aiohttp, Scapy, and others, if they were installed when Brotli was also installed. You can mitigate by uninstalling brotli and brotlicffi, OR, strip `br` from Accept-Encoding on outbound AND reject `Content-Encoding: br` on inbound.

This is not a server-side issue (unless for some weird reason you're using Brotli decoding in your http request processing), it's client-side.

Thank you Paul for the write-up (https://opensourcemalware.com/blog/node2shell-affects-python)

▲▼ cowlevel05:58 hn>

HTTP requests can use content-encoding:br but this isn't normal in browsers so might not be implemented in many servers

▲▼ mirashii04:02 hn>

I feel as though this should be googlebrotli2shell, not http2shell. Google deserves to take a bit of a reputational hit for this. This is a basic memory safety violation, from the same organization that does wuffs, that promotes Rust for memory safety, that has Carbon. zstd has high quality rust implementations and is from roughly the same time.

On top of that, the brotli library saw no releases for almost a full year, with the fix for this vulnerability being committed back in February. Google builds from main for all their projects, so were unaffected, but open source releases are a complete afterthought. Over 100 commits with miscellaneous fixes left languishing until a security incident forces a release.

▲▼ CodesInChaos06:04 hn>
>zstd has high quality rust implementations

On the decompression side yes, on the compression side the first good zstd rust port was announced yesterday. Until then, brotli was better supported in Rust than zstd.

But I agree, decompression libraries should be (mostly) memory safe nowadays, since that side is both easier to implement and more likely to be vulnerable.

▲▼ pjmlp09:23 hn>

Looking at the repo, some of the languages have their own safe implementations though, they don't use the C implementation directly.

However I guess testing isn't that great, probably.

▲▼ kccqzy13:42 hn>

Is there ever a demo of the "2shell" aspect here? Seems like the issue was fixed because it was thought to produce a hang. Has it ever been confirmed that the issue could result in an RCE? Or is this just hypothetical?

▲▼ mirashii18:56 hn>

Imperva claims to have demonstrated it, but didn't publish it openly (and their article screams AI slop, so take that for what you will).

https://www.imperva.com/blog/node2shell-from-brotli-data-to-...

There's also a public POC here, though with the caveat that they demonstrated it only on builds with weaker configurations. https://github.com/dimasma0305/CVE-2026-111497-POC

All that said, we haven't heard the major cloud providers or security labs saying they've seen exploitation in the wild yet.

▲▼ iracigt06:48 hn>

I had some fun playing with this on Wednesday. After the node release, it was still about a day before the patched brotli package showed up on pypi.

Very easy to reproduce the with a single httpx.get(URL) in Python, but I couldn’t figure out an ASLR bypass from that context. Crashing is easy and I (with LLM assistance) can get some read/write primitives, but no chain into getting a function pointer where I needed it. Probably needs heap manipulation, but I lost interest at that point.

Really hoping we see an actual RCE PoC. Also, the open weight models can easily provide a "regression test" that would shoo away most crawlers.

▲▼ oofbey07:16 hn>

Why are you hoping for an RCE PoC? Curiosity's sake? Or because you'd like to use it offensively? The existence/publication of such a PoC makes the world less safe.

▲▼ iracigt16:00 hn>

Curiosity. Calling it "node2shell" is a pretty strong claim. It is clearly the type of bug that can lead to code execution. What it takes to get there in the context of an http request is less clear.

As a practical matter, the impact could be pretty low. Very few things would accept brotli encoded data from a client. A PoC also doesn’t have to be for any particularly common configuration.

I’m someone who really enjoys reading Google’s Project Zero blog posts where they regularly walk through building exploits for phones and browsers. It gives you an appreciation for what is possible.