What to do5 steps
Upgrade nginx to 1.31.9 (mainline) or 1.30.7 (stable).
On a distribution package, check that the security update includes all five CVEs;
nginx -vcan show the old version.Restart nginx, or do a live binary upgrade.
A configuration reload does not replace the running binary.
If you cannot upgrade now, apply the mitigation for your configuration.
Each one blocks only the paths named.
- CVE-2026-123007 and CVE-2026-123633: disable HTTP/2. From 1.25.1 set
http2 off;in every server block on the port and removehttp2fromlisten; before 1.25.1 removehttp2fromlisten.-
Is the HTTP/2 module built in:
nginx -V 2>&1 | grep -q -- '--with-http_v2_module' && echo 'HTTP2_MODULE=present' || echo 'HTTP2_MODULE=absent' -
Is HTTP/2 on in the configuration:
sudo nginx -T 2>&1 | sed 's/#.*//' | grep -nE 'listen[[:space:]].*http2|^[[:space:]]*http2[[:space:]]+on[[:space:]]*;' -
Is HTTP/2 reachable from outside (run from another network):
openssl s_client -connect HOST:443 -servername HOST -alpn h2 </dev/null 2>&1 | grep -E 'ALPN protocol:|No ALPN negotiated'
-
- CVE-2026-121810: remove
quiclisteners, sethttp3 off;and sendadd_header Alt-Svc 'clear' always;. Block UDP on the port for extra defense. - CVE-2026-123634: point
proxy_passat a fixedupstreamgroup, for the main request and the mirror.mirror_request_body onstopped Xint's exploit but does not fix the bug. - CVE-2026-113425: bind the mail listeners to
127.0.0.1, or allow only trusted IPs at the firewall.
- CVE-2026-123007 and CVE-2026-123633: disable HTTP/2. From 1.25.1 set
After a mitigation, restart nginx.
Old workers keep existing HTTP/2 and mail connections on the old configuration.
Kernel: block the SCTP module on hosts that do not use it.
Add
install sctp /bin/falseto a.conffile in/etc/modprobe.d/until a kernel fix ships. This does not unload a loaded module or disable SCTP built into the kernel.
Are you affected?only if all are true
Every setup
- nginx before 1.30.7 (stable) or 1.31.9 (mainline), without a backported fix. No authentication is needed.
Your setup
HTTP/2 flow control (CVE-2026-123007)1 condition
- HTTP/2 is enabled (listen ... http2 or http2 on).
HTTP/2 with an upstream (CVE-2026-123633)2 conditions
- HTTP/2 is enabled.
- Requests are forwarded to an upstream (backend) server.
HTTP/3 (CVE-2026-121810)2 conditions
- HTTP/3 (QUIC) is enabled.
- Requests are forwarded to an upstream server.
Resolver (CVE-2026-123634)2 conditions
- A resolver is set and the proxy_pass destination comes from the request (for example proxy_pass http://$host;).
- A subrequest reaches it. Xint tested mirror with mirror_request_body off; SSI and other subrequests may reach it too.
Mail proxy (CVE-2026-113425)1 condition
- The mail proxy (IMAP, POP3 or SMTP) runs with proxy on and auth_http. No valid credentials are needed.
Root on the host (kernel step)2 conditions
- The attacker already runs code as the nginx worker through one of the bugs above.
- The Linux kernel SCTP bug is reachable from the worker (SCTP module loadable). Xint also escaped a Docker container this way.
Check your version
- nginx version
nginx -v 2>&1 - Distribution package (backports keep the version string)
dpkg -l | grep -i nginx - Distribution package (backports keep the version string)
rpm -qa | grep -i nginx - Distribution package (backports keep the version string)
apk info -v | grep -i nginx - Prompt for your own agent, read-onlyAm I affected by NGINX2Root?
Read the prompt
Check whether the systems I am authorized to inspect are affected by NGINX2Root (CVE-2026-123007, CVE-2026-123634, CVE-2026-123633, CVE-2026-121810, CVE-2026-113425). Five independent unauthenticated RCEs in nginx (HTTP/2 flow control, HTTP/2, HTTP/3, resolver, mail proxy), fixed in 1.31.9 and 1.30.7; Xint chained one with a Linux kernel SCTP bug to root on the host. It is exploitable under these conditions: - nginx before 1.30.7 (stable) or 1.31.9 (mainline), without a backported fix. No authentication is needed. - HTTP/2 flow control (CVE-2026-123007), only if all are true: HTTP/2 is enabled (listen ... http2 or http2 on). - HTTP/2 with an upstream (CVE-2026-123633), only if all are true: HTTP/2 is enabled. Requests are forwarded to an upstream (backend) server. - HTTP/3 (CVE-2026-121810), only if all are true: HTTP/3 (QUIC) is enabled. Requests are forwarded to an upstream server. - Resolver (CVE-2026-123634), only if all are true: A resolver is set and the proxy_pass destination comes from the request (for example proxy_pass http://$host;). A subrequest reaches it. Xint tested mirror with mirror_request_body off; SSI and other subrequests may reach it too. - Mail proxy (CVE-2026-113425), only if all are true: The mail proxy (IMAP, POP3 or SMTP) runs with proxy on and auth_http. No valid credentials are needed. - Root on the host (kernel step), only if all are true: The attacker already runs code as the nginx worker through one of the bugs above. The Linux kernel SCTP bug is reachable from the worker (SCTP module loadable). Xint also escaped a Docker container this way. Fixed releases: - nginx: 1.30.7 (branch 1.30), 1.31.9 (branch 1.31) nginx.org lists 1.31.9+ and 1.30.7+ as not vulnerable for all five CVEs. Distribution packages (Ubuntu 1.24.0 and 1.18.0, Debian 1.22.1) can carry a backported fix without a new version string: compare the full package version with the distribution advisory. Commands the catalog lists to find the version or the setting (read each one before you run it): - nginx version: nginx -v 2>&1 - Distribution package (backports keep the version string): dpkg -l | grep -i nginx - Distribution package (backports keep the version string): rpm -qa | grep -i nginx - Distribution package (backports keep the version string): apk info -v | grep -i nginx What the catalog says to do on an affected system (report these, do not carry them out): 1. Upgrade nginx to 1.31.9 (mainline) or 1.30.7 (stable). 2. Restart nginx, or do a live binary upgrade. 3. If you cannot upgrade now, apply the mitigation for your configuration. 4. After a mitigation, restart nginx. 5. Kernel: block the SCTP module on hosts that do not use it. For each host, container image or application, report affected, not affected, fixed or unknown, with the evidence, and list anything you could not access. Work read-only: do not change configuration, restart services or send exploit input. More: https://nginx.2shell.wtf/nginx2root
Affected versions2 branches
| nginx branch | Fixed in |
|---|---|
| 1.30 | 1.30.7 |
| 1.31 | 1.31.9 |
nginx.org lists 1.31.9+ and 1.30.7+ as not vulnerable for all five CVEs. Distribution packages (Ubuntu 1.24.0 and 1.18.0, Debian 1.22.1) can carry a backported fix without a new version string: compare the full package version with the distribution advisory.
Proof of concept1 public PoC
For testing systems you own or are authorized to test. A PoC repository can be fake or carry malware: read it before you run it.
- Open the PoC
Rapid7 publishes a proof of concept that runs code through CVE-2026-123007
Timeline4 events
Reported to the vendor
Reported to F5 through HackerOne
Patched
nginx 1.30.7 and 1.31.9 released
Disclosed
Xint publishes the NGINX2Root write-up
Public PoC
Rapid7 publishes a proof of concept that runs code through CVE-2026-123007
Look for past exploitation
These steps are from Xint's write-up. CVE-2026-123007 leaves little in access logs: the WINDOW_UPDATE and RST_STREAM frames that trigger it are not logged as requests.
- Look for programs started by an nginx worker. A worker has no reason to run
/bin/shor/bin/bash; this is the clearest sign. With auditd:sudo auditctl -a always,exit -F arch=b64 -S execve,execveat -F euid=NGINX_UID -k nginx_worker_exec, thensudo ausearch -k nginx_worker_exec -ts recent -i. The rule records only from when you add it. - Run
sudo ss -tinp state established '( sport = :443 )'twice. Suspect one long-lived connection whosebytes_receivedgrows fast whilebytes_sentstays small, together with many short TLS connections from the same IP. - Log
$connectionand$connection_requestswith$request_length. A large gap between received bytes and logged request lengths fits a flood of HTTP/2 control frames. - Look for worker crashes from failed attempts:
sudo grep -Ei 'worker process.*exited|signal 11|segfault' /var/log/nginx/error.logandsudo coredumpctl list nginx.
Each of steps 2 to 4 can have a normal cause. Investigate when several appear together.
Sources16 links
- CVE-2026-123007
- CVE-2026-123634
- CVE-2026-123633
- CVE-2026-121810
- CVE-2026-113425
- nginx security advisories
- F5 K000163926 (CVE-2026-123007)
- F5 K000163925 (CVE-2026-123634)
- F5 K000163928 (CVE-2026-123633)
- F5 K000163927 (CVE-2026-121810)
- F5 K000163931 (CVE-2026-113425)
- nginx-1.30.7 stable and nginx-1.31.9 mainline released
- Xint: NGINX2Root, new remote code execution vulnerabilities in nginx
- nginx2root.com (finder's page, updates and demos)
- Rapid7: CVE-2026-123007 analysis and proof of concept
- Hacktron: nginx2root, RCE in nginx
Sources checked on . This page tells you how to check and what to install. It cannot tell you that you are safe.
3 changes since it was published
- Credited CVE-2026-123633 to Albert of Vexera AI, nginx's named reporter, rather than to Xint alone; corrected the severity column's source to F5's per-CVE articles (the nginx advisory list carries no severity).
- Added Rapid7's public proof of concept for CVE-2026-123007 and the Rapid7 and Hacktron write-ups; checked CISA KEV again. Grouped the conditions by CVE; remediation steps got short titles.
- Moved the HTTP/2 commands from the version check to the remediation steps: they read the configuration, not the version.