r/programming • • Oct 24 '26

Broccoli2Shell: Brotli decoder RCE (CVE-2026-111497) in Node.js, Python and more

https://broccoli2shell.com/
614 Upvotes

87 comments sorted by

View all comments

Show parent comment

38

u/teerre Oct 24 '26

Not really, the CVE is legit. But CVE never measured how practical a exploit it. It measures how possible it is and how dangerous it is if exploited. Before LLMs these two mostly aligned because something possible was something practical since nobody would keep trying to fiddle with memory addresses behind a nginx server on the other side of the world. LLMs have no such issue and will try the most inane vectors forever. Once they get in, the CVE system has no choice but award a "high" number

29

u/nicofff Oct 24 '26 • Bravo

Yeah, not arguing the vulnerability isn't there. Just that as a defender, there is a trade-off. You can't go to your teams and say "drop everything" for every issue out there. But you want to make sure you react to things fast enough, specially for RCE's. If every memory corruption bug now becomes "under some very niche circumstances, this is an RCE", then that puts us on an awkward position. Do we rush to patch or not? It used to be the case that RCE meant "patch now".

Earlier in the year, there were a bunch of supply chain attacks. What we said as an industry was "ok, maybe we wait a few days before applying updates". Reconciling that with "every day there is a new critical that used to be a medium or a high", is going to be a very fine line to thread. Longer term, I think this is likely going to force us as an industry to automate the hell out of dependency updates, and figure out how to do it safely. Which honestly, long overdue.

11

u/yotemato Oct 24 '26

It almost calls for some new tooling around certifying and auto updating.

11

u/nicofff Oct 24 '26

I've started playing a bit with having dependabot / renovate PR's reviewed by agents, by looking at the libraries changelog/diff and using that to grep through the code to tell you "this is unlikely to break anything" vs "watch out". That plus whatever your CI checks should hopefully be a strong safety signal.

2

u/adriano-1370 Oct 26 '26

For this one, I'd have the bot report the resolved package path/version and whether that copy sits on a request-body decode path. A changelog summary can look reassuring while a second nested copy remains in the lockfile.

-4

u/daedalus_structure Oct 24 '26

> Do we rush to patch or not? It used to be the case that RCE meant "patch now".

Are your endpoints exposed to the public internet? It still means that.

>Yeah, not arguing the vulnerability isn't there. Just that as a defender, there is a trade-off. You can't go to your teams and say "drop everything" for every issue out there.

We can't just stop treating all these colds every time someone comes into the ER with massive head trauma and near fatal blood loss. It's so disruptive.

19

u/nicofff Oct 24 '26 • Bravo

Following you analogy: You are in charge of a hospital during an emergency. All OR's are full, except one. You have 2 patient in route. Both ambulance teams tell you their patient is in critical condition. You are prepared to have to make a decision that might kill somebody. Then the first ambulance comes in, the patient is bad but stable. The ambulance team tells you "We didn't want to lose face with the other team, so we messaged over the radio it was critical".

If the OR isn't full, and it isn't today, then yes, having that ambulance team around is not an issue.

If this past week is any indication that OR is going to be full a lot more often.

A lot of us found out about the php issue through social media, and started preparing to do incident response. Governments where telling people to shut down servers until they could patch. Coming out after, giving the same name to a different issue, one that isn't nearly as severe, is borderline engineering malpractice.

That said: I don't disagree with you on the immediate action! This should be patched as soon as possible. I'm just peering into the future, I see those hard decisions coming, and hoping we have the right information to decide what to do.

7

u/gefahr Oct 24 '26

How do I hire a security person with your temperament and levelheadedness? Serious question.

2

u/nicofff Oct 24 '26

Depends. How much do you pay?

2

u/gefahr Oct 24 '26

Assuming you're in the US, 200-300 USD depending on experience. That's base not TC. (We're private and your options should be considered lotto tickets at best)

2

u/nicofff Oct 24 '26

You do come with danger labels. But dm's are open

4

u/daedalus_structure Oct 24 '26

The reason my analogy holds and yours doesn't is that the overwhelming majority of the work any engineering team is doing is not in any way critical and can be dropped to handle an RCE.

Your OR's aren't full, you just have 20 runny noses in them.

4

u/nicofff Oct 24 '26

You are not wrong. Though my product managers would disagree.

1

u/nicofff Oct 24 '26

And some of my engineers too

0

u/DanLynch Oct 24 '26

Everything is top priority.