Remote Code Execution in Official Node.js 24.22.0 Build via Crafted Brotli Data (CVE‑2026‑111497)
What It Is — Security researchers at Imperva have publicly demonstrated a remote‑code‑execution (RCE) flaw in the official Node.js 24.22.0 container image for Linux arm64. The vulnerability, tracked as CVE‑2026‑111497, resides in the bundled Brotli decompression library. By feeding a specially‑crafted Brotli stream to the decoder, an attacker can cause the runtime to execute arbitrary shell commands without needing a debugger, custom build, or elevated privileges. The proof‑of‑concept, dubbed “Node2Shell,” runs on the unmodified official image, proving that the flaw is exploitable in real‑world deployments that rely on the default Node.js distribution.
Background — Node.js is a cornerstone runtime for modern JavaScript‑based services, powering everything from micro‑services APIs to server‑side rendering engines. Brotli compression is widely used to reduce HTTP payload size and is enabled by default in many Node.js HTTP servers and CDN edge functions. Because the decoder runs inside the same process as the application code, any memory‑corruption bug in the library can give an attacker full control over the host process.
Discovery & Disclosure — The Imperva team identified the flaw during routine fuzz‑testing of the Brotli implementation. After confirming that the crafted payload could trigger code execution on a clean Node.js 24.22.0 image, they responsibly disclosed the issue to the Node.js security team. The Node.js project publicly acknowledged the vulnerability, assigned CVE‑2026‑111497, and indicated that a fix is forthcoming. No public exploit kit has been observed in the wild yet, but the proof‑of‑concept demonstrates a clear path for an attacker who can supply Brotli data—e.g., via a malicious HTTP request, compromised upstream content, or a supply‑chain compromise.
Technical Details — The exploit leverages an out‑of‑bounds write in the Brotli decoder’s handling of the “distance” parameter. By constructing a Brotli stream that overflows an internal buffer, the attacker overwrites a function pointer that the runtime later invokes. Because the overwritten pointer can be directed to attacker‑controlled shellcode, the runtime executes the payload with the same privileges as the Node.js process. The vulnerability is classified as High severity (CVSS ≈ 8.8) due to the lack of authentication, the ability to achieve full code execution, and the prevalence of the affected runtime.
Impact Scope — Any service that accepts Brotli‑compressed input and runs on the vulnerable Node.js version is at risk. This includes public APIs, internal tooling, server‑side rendering pipelines, and edge functions that rely on the default Docker image. While the demonstration focused on Linux arm64, the underlying library is shared across architectures, suggesting that other platforms (x86_64, Windows) may be similarly vulnerable pending further analysis.
Detection & Mitigation — At the time of writing, no known active exploitation campaigns have been reported. However, the simplicity of the attack surface—merely delivering a crafted Brotli payload—means that detection based on network signatures alone is difficult. The most reliable mitigation is to upgrade to a patched Node.js release as soon as it becomes available. In the interim, organizations can:
- Disable Brotli compression for inbound data streams where it is not required.
- Deploy runtime‑level sandboxing (e.g., gVisor, Firecracker) to limit the impact of a potential breach.
- Integrate CVE‑monitoring into CI/CD pipelines to flag builds that still use the vulnerable version.
Node.js Response — The Node.js security team has confirmed that a patch will be released in the upcoming 24.22.1 maintenance update. They have also issued a security advisory recommending that affected users upgrade immediately and review any services that accept external Brotli data. The advisory emphasizes the importance of maintaining a rapid patch‑management cadence for third‑party runtimes.
Why It Matters for Trust & Control Assurance — This incident underscores the control objective of timely vulnerability remediation and secure configuration of third‑party software components. Demonstrating that you can detect, patch, and evidence remediation for such flaws is a concrete trust signal across multiple frameworks (e.g., NIST CSF 2.0, ISO 27001).
Recommended Actions
- Inventory – Identify all environments running Node.js 24.22.0 or earlier, especially on Linux arm64.
- Patch – Apply the forthcoming 24.22.1 update or a back‑ported fix as soon as it is released.
- Hardening – If immediate patching is not possible, disable Brotli input handling or isolate the runtime with container‑level sandboxing.
- Evidence Capture – Record version inventories, patch status, and any compensating controls in your audit repository to demonstrate compliance.
- Continuous Monitoring – Integrate automated CVE scanning (e.g., SBOM tools) into your CI/CD pipeline to surface similar issues early.