Sign up Log in
n/chit-chat · 12d ago · 332 views
u/Yang-iyuSilver
n/chit-chatu/Yang-iyu · 12d ago

[News] NGINX2Root Exposed: From Unauthenticated RCE to Host Root

The security research team Xint has just disclosed a set of critical vulnerabilities dubbed NGINX2Root. As the name suggests, this chain can take an attacker from being just another random visitor on the internet all the way to Root on the server running nginx — and even on the underlying host.

NGINX2Root isn't a single bug. It's an attack chain made up of five nginx remote code execution vulnerabilities plus one Linux kernel local privilege escalation flaw. The one with the widest impact is CVE-2026-123007, which can affect nginx servers with HTTP/2 enabled. [nginx2root.com], [xint.io]

What is NGINX2Root?

According to Xint, NGINX2Root covers the following five nginx vulnerabilities:

  • CVE-2026-123007
  • CVE-2026-123634
  • CVE-2026-123633
  • CVE-2026-121810
  • CVE-2026-113425

These five don't need to be combined to work. Each one is a relatively independent attack path — they just require different server configurations to trigger. Once an attacker successfully exploits one, the first thing they get is the privileges of the nginx Worker process. [xint.io]

In further testing, the researchers chained the nginx bugs with a privilege escalation flaw in the Linux kernel's SCTP subsystem, achieving:

  1. Sending a malicious request to the nginx server from the public internet;
  2. Executing commands with no account or password;
  3. Gaining nginx Worker process privileges;
  4. Escalating via the Linux kernel vulnerability;
  5. Escaping from inside the container;
  6. Finally obtaining Root on the host.

The researchers say they carried out the demo in AWS over a public IP, and also provided demos for GCP, Azure, and bare-metal environments. [xint.io]

Why is this so dangerous?

1. No login required

CVE-2026-123007 is an unauthenticated remote code execution vulnerability — what's usually called Pre-auth RCE.

The attacker doesn't need a backend account, an SSH key, or a server password in advance. If the server meets the conditions, all they may need to do is send crafted HTTP/2 traffic over the network to have a shot at triggering it. [xint.io]

2. The bug may be over a decade old

CVE-2026-123007 traces back to nginx 1.9.5, the version where nginx first introduced HTTP/2 support.

According to the research team's analysis, official releases from nginx 1.9.5 through 1.31.8 all contain the vulnerable code. As of November 10, 2026, the same code is still present in the development branch. [xint.io]

3. Container isolation may not stop the full chain

A lot of admins figure that as long as nginx runs in a Docker container, even if it gets compromised the damage stays inside the container.

But in the chain Xint demonstrated, the attacker can first get nginx Worker privileges inside the container, then use the Linux kernel bug to break out, and finally land Root on the host. [xint.io]

That means containers still provide a degree of isolation, but they're no substitute for patching — and "it runs in a container" definitely doesn't mean "the server is safe."

Which configurations do the five NGINX vulnerabilities affect?

CVE Mainly affected configuration Earliest affected version Temporary mitigation
CVE-2026-123007 HTTP/2 enabled 1.9.5 Disable HTTP/2 for now
CVE-2026-123634 Uses resolver, sets proxy_pass dynamically from request values, and involves subrequests or Mirror config 1.13.4 Avoid dynamically resolving upstream addresses during the request phase
CVE-2026-123633 HTTP/2 plus forwarding to an upstream server 1.19.7 Disable HTTP/2 for now
CVE-2026-121810 HTTP/3 plus forwarding to an upstream server 1.25.0 Disable HTTP/3 for now
CVE-2026-113425 Mail Proxy using proxy on and auth_http 0.5.15 Stop exposing it externally or restrict access

Note that turning off HTTP/2 only temporarily blocks CVE-2026-123007 and CVE-2026-123633 — it won't fix the other three. So admins shouldn't treat "disable HTTP/2" as a complete fix. [xint.io]

How do I check my own server?

Step 1: Check the NGINX version

Run on the server:

nginx -v 2>&1

Sample output:

nginx version: nginx/1.31.8

You can do a rough first pass like this:

  • 1.9.5 to 1.31.8: official releases contain the vulnerable code, keep digging;
  • 1.9.4 or earlier: HTTP/2 wasn't introduced yet, so not affected by CVE-2026-123007;
  • 1.31.9 or later: should already include the fix, but still verify where the package came from;
  • Older versions shipped by Ubuntu, Debian, etc.: don't just look at nginx -v — check the full package version and the distro's security advisories.

That's because distros like Ubuntu and Debian often fix things by backporting security patches. The nginx major version looks unchanged on the surface, but the distro package itself may already include the patch. [xint.io]

On Ubuntu or Debian, you can also run:

apt-cache policy nginx

dpkg-query -W nginx nginx-core nginx-full nginx-light 2>/dev/null

On RPM-based systems, run:

rpm -q nginx

dnf info nginx

Step 2: Check whether the HTTP/2 module is compiled in

nginx -V 2>&1 | grep -q -- '--with-http_v2_module' </span>

  && echo 'HTTP2_MODULE=present' </span>

  || echo 'HTTP2_MODULE=absent'

If the output is:

HTTP2_MODULE=present

then the current nginx binary includes the HTTP/2 module, and you need to check whether HTTP/2 is enabled in the config. [xint.io]

Step 3: Check whether HTTP/2 is enabled in the config

sudo nginx -T 2>&1 </span>

  | sed 's/#.\*//' </span>

  | grep -nE 'listen\[\[:space:\]\].\*http2|^\[\[:space:\]\]*http2\[\[:space:\]\]+on\[\[:space:\]\]*;'

If you see something like:

listen 443 ssl http2;

or:

http2 on;

then HTTP/2 is enabled on that listening port.

Keep in mind that nginx -T shows the config on disk. If the config was edited but not reloaded, what's actually running may differ from the file. [xint.io]

Step 4: Check from outside whether HTTP/2 is reachable

Run this from another machine, not the server itself:

openssl s_client </span>

  -connect example.com:443 </span>

  -servername example.com </span>

  -alpn h2 </dev/null 2>&1 </span>

  | grep -E 'ALPN protocol:|No ALPN negotiated|Connection refused|connect:errno|handshake failure'

Replace both instances of example.com with your own domain.

If the output is:

ALPN protocol: h2

then the server accepts HTTP/2 connections from the outside.

If there's Cloudflare, a CDN, a load balancer, or another reverse proxy in front of the server, this test may only be showing you the proxy node's result. Admins still need to check the actual listening port on the origin nginx. [xint.io]

How do I tell whether my server has already been compromised?

The researchers note that attacks on CVE-2026-123007 don't necessarily leave obvious traces in normal access logs. The HTTP/2 control frames involved in triggering the bug aren't regular HTTP requests, so the default access.log may not fully reflect what happened. [xint.io]

Admins should focus on the following signs.

1. Long-lived abnormal connections on 443

sudo ss -tinp state established '( sport = :443 )'

Run it twice, a few dozen seconds apart, and pay attention to:

  • Connections from the same external IP lasting several minutes;
  • bytes_received growing quickly;
  • The server sending noticeably less data than it receives;
  • Lots of short-lived connections from the same IP at once;
  • No legitimate business scenario such as a large file upload.

Any single one of these doesn't mean you've been compromised, but if several show up together, isolate the source immediately and start investigating. [xint.io]

2. NGINX Worker spawning abnormal processes

You can inspect the children of the nginx Worker:

sudo ps -eo pid,ppid,user,lstart,cmd --forest

Or use:

sudo pstree -ap

Look for shells, download tools, reverse-connect programs, or anything else that doesn't match expected business behavior started by the nginx user, for example:

  • sh
  • bash
  • curl
  • wget
  • nc
  • python
  • perl
  • socat

These programs aren't necessarily malicious in themselves — the key question is whether they should be started by an nginx Worker at all.

3. NGINX Worker crashing abnormally

sudo journalctl -u nginx --since "24 hours ago"

sudo dmesg -T | grep -Ei 'nginx|segfault|general protection|oom'

If you see frequent Worker crashes, segfaults, or unexpected restarts, preserve the logs and memory dumps and dig deeper into the incident.

Urgent checklist for server admins

If you maintain nginx servers, work through it in this order:

  • Run nginx -v and note the current version;
  • Check the full package version and where it was installed from;
  • Run nginx -V to confirm whether the HTTP/2 module is present;
  • Run nginx -T to confirm HTTP/2, HTTP/3, Mail Proxy, and dynamic upstream config;
  • Test from outside with ALPN to see whether HTTP/2 is publicly exposed;
  • Check the real origin behind CDNs and load balancers;
  • Check all containers and Kubernetes Ingress Controllers;
  • Upgrade to a version the vendor confirms is fixed;
  • Restart the service, not just reload the config;
  • Check for abnormal connections, Worker crashes, and child processes;
  • Keep records of versions, logs, and changes before and after the upgrade;
  • If you can't upgrade right away, apply temporary mitigations based on your actual config.

Closing thoughts

What makes NGINX2Root dangerous isn't just that there's a serious nginx vulnerability — it's that it demonstrates a complete attack path:

From a single unauthenticated request over the network, into the nginx Worker, across the container boundary, and finally to Root on the host.

For individual site owners, enterprise ops teams, and anyone running reverse proxies on Docker or Kubernetes, the most important thing isn't waiting for public exploit code to show up — it's immediately confirming your versions, configs, and actual exposure.

Security updates should go out ASAP. Temporarily disabling HTTP/2 lowers some of the risk, but it's no replacement for a full patch and doesn't cover all the vulnerabilities in NGINX2Root.


Notes

Sources:

Post polished by: GPT5.6-sol

Translated by AI from 简体中文

2
4
Log into join the discussion.

4 replies

Sort order
  1. sydney1 Diamond 12d ago

    Year one of CVEs and it's still ramping up

    Translated by AI from 简体中文

    0
  2. deleted_20159 11d ago

    AI keeps finding more and more vulnerabilities

    Translated by AI from 简体中文

    0
  3. Yang-iyu Silver OP 11d ago

    This thing's smart enough and never gets tired.

    Translated by AI from 简体中文

    0
  4. Halogen Silver 11d ago

    Network security is getting more and more important these days.

    Translated by AI from 简体中文

    0