Heads up, server wranglers: a decade-old bug in NGINX’s HTTP/2 code can let strangers on the internet run code inside your NGINX worker processes. The issue, tracked as CVE-2026-123007 and nicknamed “nginx2root” by researchers, dates back to NGINX 1.9.5 (2015) and affects many releases up to the recent October builds. Patches are out now, but if you haven’t updated, this is one of those bugs that deserves immediate attention.

Quick tl;dr — what broke and why you should care

In plain terms: if your NGINX accepts HTTP/2 connections, an attacker can trigger an integer-underflow-ish path that leads to remote code execution inside the worker process. Researchers showed it can be done without logging in, and in some test setups they even bypassed protections and ran code. That code runs with the permissions of an NGINX worker, and in certain environments a separate kernel bug can be chained to escalate to root.

Important bits:

  • The bug exists in many open-source NGINX versions starting from 1.9.5 through older mainline and stable branches; vendor patches were released in the 1.31.9 and 1.30.7 builds.
  • ASLR bypass risk can make exploitation much easier in some setups; researchers demonstrated successful attacks where that protection was absent or could be defeated.
  • Proof-of-concept code has been published by researchers for demonstration purposes; it’s mainly aimed at freshly started test containers and lab setups, not sophisticated real-world campaigns — but the existence of a PoC means defenders should act fast.
  • An exploited worker runs with NGINX worker privileges; privilege escalation to root requires an additional issue (for example, a kernel SCTP bug in some test cases).

Patch, workarounds and what to watch for

Fixes: upgrade NGINX to the patched builds (1.31.9 or 1.30.7 for affected branches) or apply your vendor’s equivalent package. If you use NGINX Plus, follow your vendor’s advisory and upgrade to the fixed releases for your series. After updating, make sure to restart the daemon properly — a config reload leaves old executables running and can keep vulnerable workers alive.

Temporary mitigations if you can’t patch immediately:

  • Disable HTTP/2 on the affected server blocks. On modern releases, add http2 off; to each server block and remove http2 from listen directives. On older versions, remove http2 from the listen directives entirely (e.g., change listen 443 ssl http2; to listen 443 ssl;), then restart NGINX and verify that the server no longer negotiates HTTP/2.
  • If you’re worried about the kernel SCTP escalation seen in tests, prevent the SCTP module from loading by adding a line like install sctp /bin/false to a .conf file in /etc/modprobe.d/. Note: this won’t unload a module already loaded or disable SCTP built into the kernel.

How to check if your server accepts HTTP/2 (quick test): run openssl s_client -alpn h2 -connect your.server:443 — if the response shows ALPN protocol: h2, the server accepts HTTP/2.

Clues an exploit might have been attempted or used:

  • NGINX worker processes spawning unexpected programs, crashing, or leaving core dumps.
  • Long-lived HTTP/2 connections with heavy inbound traffic but few or no typical logged requests (some HTTP/2 control frames don’t appear in access logs).
  • Unusual outbound connections or DNS lookups originating from your web host.

Some extra technical context so you can sleep slightly less soundly:

  • A public technical write-up from researchers shows one exploitation method required around 128 GB of HTTP/2 traffic in the demo and was sensitive to link speed and NGINX’s default connection time limits.
  • On certain CPUs and builds, the exploit depends on specific glibc/memory-copy choices (observed on x86-64 with particular instruction set features enabled), so not every environment is equally easy to exploit — but many are.

Bottom line: don’t procrastinate. If your NGINX accepts HTTP/2, plan an immediate upgrade or at least turn off HTTP/2 until you can patch and restart the server properly. Keep an eye on unusual worker behavior and network patterns, and treat any sign of oddness as urgent until you’ve verified systems are updated and clean.