← Lab /Security & privacy

Brotli decoder out-of-bounds write enables code execution; patch stops it

Security & privacy Disclosure · Real-world · Datadog Security Labs

The claim

The authors assert that the out-of-bounds write in the Brotli decoder can be exploited to achieve remote code execution and that patching is the only complete mitigation.

Sebastian Obregoso · Datadog Security Labs Writeup

Published as: “Node2Shell: Reproducing CVE-2026-111497 in the Node.js Brotli decoder”

So what

Organizations must patch all runtimes embedding Brotli and monitor for abnormal decoder behavior to prevent remote code execution.

The five-minute version

The write-up reproduces CVE-2026-111497 in the Node.js Brotli decoder and shows that a crafted Brotli stream can corrupt decoder state, leading to crashes, memory reads, and ultimately remote code execution. Exploits have been demonstrated in the lab and confirmed in the wild, affecting many runtimes that embed the upstream Google Brotli library. The Node.js patch changes the block-switch helper to return a proper error code, causing the decoder to reject malicious streams before any out-of-bounds write occurs. Detection relies on behavioral signals such as decoder error messages, SIGSEGV crashes, and sustained CPU usage.

What they found 2

What undercuts it the paper’s own results

Stated limits 3

What’s new here 4

Artifacts & methods 3

Topics

Brotliout-of-bounds writeremote code executionheap memory corruptionDenial of Serviceruntime embeddingdecoder error handling
← Previous Overlay presentation lets humans compare long strings faster with higher accuracy