Skip to main content
nginx cve rce http2 privilege-escalation threat-intelligence

nginx2root: Five nginx Flaws and a Kernel Bug That Lead to Root (CVE-2026-123007)

Sevarity Team

nginx has had very few unauthenticated remote code execution bugs in twenty years. That track record is a big reason it fronts so much of the internet.

On November 18, 2026, that changed. One HTTP/2 connection, no credentials, and an attacker runs commands as the nginx worker. Chain a Linux kernel bug, and it’s root on the host, even from inside a Docker container.

That’s nginx2root.

Key Takeaways

  • nginx2root is five nginx CVEs plus a Linux kernel SCTP flaw, found by Xint. The worst, CVE-2026-123007, is an unauthenticated RCE in HTTP/2 flow control.
  • CVE-2026-123007 affects every nginx release from 1.9.5 (2015) through 1.31.8.
  • As of November 10, 2026, 98.9% of Shodan-visible nginx hosts with a known version fell in the affected range.
  • Fix: nginx 1.31.9 (mainline) or 1.30.7 (stable), then restart. Interim: http2 off;.

What Is nginx2root and Why Does It Matter?

nginx2root is a set of five nginx vulnerabilities and one Linux kernel flaw, disclosed by Xint on November 18, 2026 (Xint, 2026). The headline bug, CVE-2026-123007, lets an unauthenticated remote attacker execute commands with nginx worker privileges over HTTP/2.

nginx isn’t one server among many. It’s the reverse proxy, TLS terminator, and load balancer sitting in front of a huge share of web applications. It runs in Kubernetes ingress controllers, CDN edges, API gateways, and countless Docker images.

So a remote, pre-auth bug in its HTTP/2 code is about as exposed as a vulnerability gets. The attacker doesn’t need to know what’s behind the proxy. They only need port 443 and HTTP/2.

nginx2root is a set of five nginx CVEs and a Linux kernel SCTP flaw disclosed by Xint on November 18, 2026. The most severe, CVE-2026-123007, is an integer overflow in nginx’s HTTP/2 flow control that gives unauthenticated remote code execution on all releases from 1.9.5 through 1.31.8, and chains with the kernel bug to reach root (Xint, 2026).

What Is the Root Cause of CVE-2026-123007?

CVE-2026-123007 is an integer overflow in nginx’s HTTP/2 flow-control window arithmetic that leads to an out-of-bounds heap write (Xint, 2026). The code has been there since HTTP/2 support arrived in nginx 1.9.5 in 2015.

HTTP/2 uses flow-control windows to stop one side from flooding the other. nginx tracks a send window for each stream and one for the whole connection. Neither may exceed the protocol maximum.

Here’s where it breaks:

  1. A client cancels a stream that still has queued, unsent data.
  2. nginx returns that unused credit to the connection window.
  3. That cleanup path never checks the result against the HTTP/2 maximum.
  4. The connection window grows past its legal limit.
  5. Unsigned arithmetic hides the overflow from the later window-increase check.
stream cancel (RST_STREAM) →
  unsent credit returned to connection window →
    no max-window check →
      window exceeds 2^31-1 →
        unsigned compare passes →
          out-of-bounds heap read/write → RCE

Each step is a small accounting mistake. Together they give an attacker a heap corruption primitive from a single TCP connection.

What Are the Other Four nginx CVEs?

The other four nginx2root CVEs are use-after-free bugs, each tied to a specific configuration (Xint, 2026). nginx itself rates CVE-2026-123007 and CVE-2026-113425 as major, and the other three as medium.

CVEVulnerable configurationFirst affectedStopped by disabling HTTP/2?
CVE-2026-123007HTTP/2 enabled1.9.5Yes
CVE-2026-123634resolver + request-derived proxy_pass + mirror with mirror_request_body off1.13.4No
CVE-2026-123633HTTP/2 forwarding to an upstream1.19.7Yes
CVE-2026-121810HTTP/3 forwarding to an upstream1.25.0No
CVE-2026-113425Mail proxy with proxy on and auth_http0.5.15No

The sixth piece is a Linux kernel flaw in the SCTP subsystem. Xint used it to escalate from the nginx worker to root. No kernel patch was available at disclosure.

Which Systems Are Affected?

Every official nginx release from 1.9.5 through 1.31.8 contains CVE-2026-123007 (Xint, 2026). That covers eleven years of releases, including the versions shipped by every major Linux distribution.

The exposure numbers are hard to ignore. In November 2026, Xint found 56.7 million Shodan hosts for product:nginx. Of the 11.94 million that reported a version, 98.9% fell inside the affected range. Xint is careful to note that version strings alone don’t confirm a host is vulnerable.

Distro versions are tricky. Ubuntu 24.04 ships nginx 1.24.0, Ubuntu 22.04 ships 1.18.0, and Debian 12 ships 1.22.1. Distros backport fixes without changing the upstream version, so nginx -v can show 1.18.0 on a patched box. Check your distro’s security tracker, not the version string.

Patched releases: nginx 1.31.9 (mainline) and 1.30.7 (stable), released November 18, 2026 (nginx.org, 2026). OpenResty and other nginx-based products may lag behind.

How Does the Attack Chain Reach Root?

Xint chained CVE-2026-123007 with the kernel SCTP flaw to go from an unauthenticated HTTP/2 connection to root on the host (Xint, 2026). In testing, the chain also escaped a Docker container running nginx.

The chain has two stages:

  1. Remote code execution. The attacker opens an HTTP/2 connection to the public IP and abuses the flow-control overflow. Commands run as the nginx worker user, usually www-data or nginx.
  2. Privilege escalation. From the worker, the attacker triggers the SCTP kernel bug and gains root on the host.

Why does container isolation fail? Containers share the host kernel. A kernel bug reachable from inside the container breaks out of it. Xint demonstrated the attack against AWS, GCP, Azure, and bare-metal targets, and deliberately left out the final steps needed to reproduce it.

Xint chained nginx CVE-2026-123007, an unauthenticated HTTP/2 remote code execution bug, with a Linux kernel SCTP flaw to obtain root on the underlying host. In its tests the chain escaped a Docker container running nginx, and worked against servers on AWS, GCP, Azure, and bare metal over their public IP addresses (Xint, 2026).

What Should You Do Right Now?

Priority 1, Upgrade and restart. Install nginx 1.31.9 or 1.30.7, or your distro’s patched package. A config reload doesn’t replace the running binary. Restart nginx or do a supported live binary upgrade.

Priority 2, Check exposure:

# Version in affected range? (1.9.5 – 1.31.8)
nginx -v 2>&1

# HTTP/2 module compiled in?
nginx -V 2>&1 | grep -q -- '--with-http_v2_module' && echo "http2 module present"

# HTTP/2 enabled in config?
sudo nginx -T 2>&1 | sed 's/#.*//' \
  | grep -nE 'listen[[:space:]].*http2|^[[:space:]]*http2[[:space:]]+on[[:space:]]*;'

Priority 3, Temporary mitigations if you can’t patch:

# nginx 1.25.1+: in every affected server block
http2 off;
listen 443 ssl;          # remove the legacy "http2" parameter

# HTTP/3 (CVE-2026-121810): drop quic listeners
http3 off;
add_header Alt-Svc 'clear';

# Mail proxy (CVE-2026-113425): bind to loopback only
listen 127.0.0.1:143;

Disabling HTTP/2 breaks native gRPC services, so plan for that. For CVE-2026-123634, point proxy_pass at a fixed upstream or turn off mirror. Xint warns that mirror_request_body on blocked its exploit but doesn’t fix the resolver bug.

Priority 4, Restart, don’t just reload. Old workers keep serving long-lived connections after a reload. If they’re still running, restart through your service manager.

Indicators of Exploitation

Xint warns that an attack may leave little evidence in nginx access logs, and published no hashes or IPs (Xint, 2026). Focus on behaviour.

Signals to monitor:

  • A long-lived connection from one external IP with bytes_received climbing fast and bytes_sent low
  • Worker crashes: signal 11, segfault, or worker process exited in error.log
  • Any shell or external program started by an nginx worker

Find worker crashes:

grep -Ei 'worker process.*exited|signal 11|segfault' /var/log/nginx/error.log
coredumpctl list nginx

Log commands run by workers:

# Replace NGINX_UID with the worker's UID
auditctl -a always,exit -F arch=b64 -S execve,execveat -F euid=NGINX_UID -k nginx_worker_exec

A normal nginx worker has no reason to run /bin/sh. If one does, treat the host as compromised.

Frequently Asked Questions

Is my server vulnerable if I don’t use HTTP/2?

Not to CVE-2026-123007 or CVE-2026-123633, which need HTTP/2. You may still be exposed to the other three if you use HTTP/3, the mail proxy, or mirror with request-time DNS. Upgrading to 1.31.9 or 1.30.7 covers all five.

Does reloading nginx apply the fix?

No. nginx -s reload re-reads configuration but keeps the old binary in memory. You need a full restart or a live binary upgrade. Xint specifically calls this out as a common mistake.

Does running nginx in Docker protect me?

No. Xint’s chain escaped a Docker container and got root on the host through the kernel SCTP flaw. Containers share the host kernel, so patch both nginx and the host, and consider blocking SCTP module loading.

Is there a public exploit?

Xint withheld the final reproduction steps. Several security vendors report that proof-of-concept work is circulating, but no confirmed in-the-wild exploitation was reported at disclosure. That window rarely lasts long for a bug this exposed.

How was it found?

A Xint researcher found CVE-2026-123007 while preparing for ZeroDay Cloud 2026. A few days later, a fully automated Xint scan found the other four with no human guidance. Xint reported them to F5 through HackerOne on October 16, 2026.

References

Secure Your Operations

Ready to identify critical vulnerabilities before threat actors do?

Request a Quote