Stack Notes

NGINX2Root: from a web request to root on the host, and the module load that gives it away

Picture a small online shop. Its nginx runs in a Docker container, serves the site over HTTPS with HTTP/2 switched on, and nobody has touched the config in a year. On 18 November, researchers showed that a stranger could run code in that nginx without logging in, and then use a second bug, in the Linux kernel, to become root on the machine under the container. Below is what is public so far, what to change today, and which Stack Snack rule sees each step. One of those steps leaves a mark on the host even when the attack starts inside a container.

Stack Snack Crew

November 19, 2026 · 10 min read

Two bugs in nginx's HTTP/2 code

nginx 1.30.7 and 1.31.9 came out on 18 November with fixes for ten security bugs. Two of them are in the code that handles HTTP/2, and they let an attacker run code on the server without logging in. Wiz, Xint and Rapid7 were among the teams that found them independently. F5, which develops nginx, rates both 9.2 out of 10 on CVSS 4.0.

  • CVE-2026-123007 is memory corruption in HTTP/2 flow control. It is in every nginx from 1.9.5 (2015) to 1.31.8. HTTP/2 being on is all it needs: Wiz ran code on an nginx that served nothing but static files.
  • CVE-2026-123633 is a use-after-free in HTTP/2, in nginx 1.19.7 to 1.31.8. It needs nginx to pass requests on to a backend, which is how most people run it.

The attacker's code runs as the nginx worker, the process that answers requests. On most servers that is an ordinary account such as www-data or nginx, not root. That limits what the attacker can touch, until they find a way to root.

The step to root

Xint, who named the chain NGINX2Root, looked for a way from the worker's account to root and found one in the kernel's SCTP code. SCTP is a network protocol like TCP, used mostly for telephone network signalling; most servers never speak it. The bug has been in the kernel since Linux 4.15 in 2018. It has no CVE number and no patch yet, and Xint is holding back the details until a patch exists.

They chained it with CVE-2026-123007, and a container was no obstacle: "In our tests, the chain also escaped a Docker container running nginx and obtained root on the underlying host."

That works because every container on a host shares the host's kernel. On many distributions the kernel also loads the SCTP module by itself the first time any program opens an SCTP socket. The worker doesn't need root or modprobe for that. One socket() call is enough, and after it the buggy code is loaded and reachable.

What is public, and what isn't

This is where things stood when we wrote this on 19 November:

What to do today

1. Find out whether your nginx speaks HTTP/2

Both bugs need HTTP/2. Check the build, the config and what a visitor actually gets:

nginx -V 2>&1 | grep -o with-http_v2_module
sudo nginx -T 2>/dev/null | grep -nE '\bhttp2\b'
curl -sI --http2 -o /dev/null -w '%{http_version}\n' https://shop.example/

The last command prints 2 when the server answers over HTTP/2. If a CDN or another proxy sits in front of nginx, the proxy is the one answering, so run the test against nginx itself.

2. Upgrade, or turn HTTP/2 off

Upgrade to 1.30.7 or 1.31.9 and restart nginx. A reload does not replace the running program. With the official images, pull the new tag and recreate the containers.

Debian stable and Ubuntu users have no fixed package yet. Until one arrives, turn HTTP/2 off in every server block that listens on the same address and port (nginx 1.25.1 and later):

listen 443 ssl;
http2 off;

On older versions, remove http2 from the listen line. Browsers fall back to HTTP/1.1 without trouble. Services that need HTTP/2, such as gRPC, will stop working.

3. Block SCTP where you don't use it

The kernel bug has no patch. On hosts that don't use SCTP, stop the kernel from loading it. Do the same for DCCP, RDS and TIPC, three other rarely used protocols with a history of kernel exploits:

printf 'install %s /bin/false\n' sctp dccp rds tipc \
  | sudo tee /etc/modprobe.d/block-rare-protocols.conf
lsmod | grep -E '^(sctp|dccp|rds|tipc) '

The block only stops new loads. If lsmod already lists one of them, the block takes effect after the next reboot. It does nothing on a kernel with SCTP built in. Stack Snack's SEC-029 watches /etc/modprobe.d, so expect one alert for the new file.

What we found on our own servers

We run Stack Snack on our own hosts, and we went through the same checks on them the evening the advisories came out.

  • Every nginx we run sits behind a reverse proxy that talks to it over plain HTTP. The proxy handles TLS and HTTP/2 itself, so no HTTP/2 connection ever reaches nginx, and neither bug was reachable.
  • We still have vulnerable nginx versions inside container images. Stack Snack lists the Debian builds on the Vulnerabilities page as Unfixed, because Debian has no fix yet. We'll rebuild those images when it ships.
  • A few of our containers run nginx's official Alpine images, which carry nginx.org's own build. Those need the 1.30.7 or 1.31.9 tags.
  • None of the 31 rare protocol modules from the next section loaded on any of our hosts in the week before we shipped the rule that watches for them. The only module loads that week came from reboots for a kernel update.

What Stack Snack sees at each step

Back to the shop. Here is the attack as the researchers describe it, one step per row, with the trace each step leaves on the host and the rule that raises it. Rules marked "Needed" read programs as they start, which Stack Snack calls exec capture. It is off by default; here is how to turn it on.

Step, and the trace it leaves on the hostExec captureStack Snack rule
The shop runs a vulnerable nginx: a Debian, Ubuntu or Alpine nginx package on the host or in a container imageNot neededSEC-077 Installed package has a known vulnerability (host). SEC-111 Container image has packages with fixed vulnerabilities (images). Both show on Detect > Vulnerabilities
The shop's nginx is nginx.org's own build, which is what the official nginx:*-alpine images carryNot neededSEC-202 Host nginx (nginx.org build) with a published vulnerability. SEC-203 Container image nginx (nginx.org build) with a published vulnerability (high for these advisories)
Failed attempts: the worker crashes with a memory faultNot neededSEC-114 Network-facing daemon crashed with a memory fault: medium for an nginx crash, high when that process owned a listening port, critical at three such crashes in ten minutes
Code runs inside the worker: no program starts and no file is written—None (see the limits below)
The worker starts a shell or a downloader: sh, curl or wget with nginx as the parent, or a program running from memoryNot neededSEC-059 Web server, PHP or app server spawned a shell or downloader (high). SEC-054 Listening network service spawned a persistent shell. SEC-008 Memory-backed (memfd) process execution (high)
The same, seen as each program starts: a short-lived shell, curl | sh, a program run from /tmp or /dev/shmNeededSEC-101 Short-lived shell spawned by a network service. SEC-163 Download-and-execute. SEC-102 Execution from scratch or deleted path
It calls home: a shell with a network socket on its input and output, or an outbound connectionSEC-103 onlySEC-014 Shell or interpreter with a network socket on stdio. SEC-037 Shell or interpreter with an outbound connection. SEC-103 Reverse-shell command line (all high)
It opens an SCTP socket: the kernel loads the sctp module, also when the socket was opened in a containerNot neededSEC-201 Rare network-protocol kernel module loaded (medium)
The kernel exploit misfires: an oops, BUG or warning in the kernel logNot neededSEC-117 Kernel oops/BUG/warning
It reaches out of the container with tools: nsenter, chroot into /proc/1/root, mounting a host diskNeededSEC-176 Container escape / host-access tooling (high)
It stays: a new systemd unit or cron entry, a new line in a shell profile, a new SSH keyNot neededSEC-002 Cron or systemd persistence configuration changed. SEC-029 New or changed persistence mechanism. SEC-001 Monitored authorized_keys file changed or appeared (all high)

Most of these rules existed before NGINX2Root: a web server that starts a shell looks the same whichever bug got the attacker in. Two rows are new. We added SEC-201 for the SCTP step the night the chain was published, and SEC-202 and SEC-203 for nginx.org's builds a few hours later.

The module load, up close

An attacker can't use an SCTP bug unless the SCTP code is in the kernel. On a server that never speaks SCTP, that code isn't loaded until something asks for it, and asking leaves a mark. SEC-201 watches for it.

The rule keeps a list of 31 rarely used protocol modules: SCTP, DCCP, RDS, TIPC, the GSM multiplexer n_gsm, several CAN modules, X.25, AX.25 and more like them. It fires when one of them is loaded now, wasn't in the last snapshot, and hasn't been seen on this host in the last 90 days.

A container doesn't hide the load, because the list of loaded modules belongs to the host kernel. When a process in a container opens an SCTP socket, the kernel loads sctp for the whole host, and the agent reads that list every 30 seconds. The module stays loaded until the next reboot, so even an exploit that is over in a second leaves it behind for the next snapshot.

Each host learns first. The first snapshot only records what is already loaded, so a host that already runs SCTP for telephony or a corosync cluster never alerts for it. The alert is medium, because a load alone proves nothing: running ss -S loads sctp_diag and sctp, and so does a protocol test. Each case alerts once per host and module, then stays known for 90 days.

Where it stops

  • Code that stays in the worker's memory is invisible. Until the attacker starts a program, writes a file or loads a module, the host has nothing new to show.
  • SEC-201 names the module, not the process. The kernel loads the module for whoever opened the socket. Use the alert's time to look at what ran just before. SEC-122 names a process that holds SCTP sockets, but only in the host's own network namespace, not in a container's.
  • Some hosts stay quiet. A host that used SCTP in the last 90 days doesn't alert again, and neither does a kernel with SCTP built in rather than loaded as a module.
  • Containers make some shell rules quieter. SEC-059 checks the worker's account against the host's user list, which may not know a container's nginx user. SEC-101 skips BusyBox's sh, the shell in Alpine images, when it can read the program. SEC-201 depends on neither.
  • A clean kernel exploit gets past SEC-117 and SEC-176. If it doesn't crash anything, SEC-117 has no oops to report. And it can leave the container in its own code, without running any tool SEC-176 knows.
  • The package rules depend on distro data. SEC-077 and SEC-111 match against Debian, Ubuntu and Alpine advisories. The official nginx images carry nginx.org's own build, which that data doesn't describe, so those two rules can miss them. SEC-202 and SEC-203 cover those builds: they read nginx.org's own advisory page every three hours and raise an alert for each host or image and nginx branch inside a vulnerable range.
  • "Unfixed" opens no finding yet. While Debian and Ubuntu have no fix, the match shows as Unfixed on the Vulnerabilities page. It becomes an open finding, with the fixed version, once the distro's advisory data has one. Findings notify according to your vulnerability policy, which by default pushes known exploited and critical ones.

If SEC-201 fires

  1. Read the alert before you touch the host. It names the module and when it appeared. Running ss -S yourself loads sctp_diag, so leave that until later.
  2. Look at what ran in the minutes before the load: a web server or container process that started a shell, a download in /tmp, a root process that shouldn't be there. The kernel log often shows the moment the protocol registered:
    journalctl -k --since "-1 day" | grep -iE 'sctp|protocol .* registered'
  3. If you can't explain the load, treat the host as compromised. Isolate it and rebuild it from a known image, because a kernel exploit can hide its own traces.
  4. Block the module on every host that doesn't need it, with the modprobe.d line above, and install the kernel fix when your distribution ships it.
  5. If the load was expected (telephony, corosync over SCTP, a protocol test), baseline the module name. The rule then stays quiet for that module on that host and still alerts for the others on the list.

Sources

Want this watching your stack?

Every rule in this post ships in the Stack Snack agent and console today. Install the agent on a Linux host and see what it sees.