NGINX2Root – Critical remote code execution in nginx
Xint reported five vulnerabilities that can each allow code execution before authentication under the relevant nginx configuration. Code running through one of these flaws takes on the privileges of the affected nginx worker. Xint research report
In Xint’s demonstration, pairing an nginx flaw with a separate Linux SCTP vulnerability turned worker-level access into host root. The researchers demonstrated the chain from an nginx instance running inside Docker. Xint project overview
The five nginx CVEs at a glance
Use the table to identify the features that need attention on each instance. The version column gives the earliest affected release in the nginx advisory. The HTTP/3 row also identifies the setup Xint tested. nginx security advisories
| CVE | Affected configuration | Since version | Blocked by disabling HTTP/2? |
|---|---|---|---|
| CVE-2026-123007 | HTTP/2 enabled | 1.9.5 | Yes |
| CVE-2026-123634 | resolver and a variable backend hostname in proxy_pass. An SSI or mirror subrequest resolves the same name. | 0.6.18 | No |
| CVE-2026-123633 | HTTP/2 with backend proxying when worker_connections run low | 1.19.7 | Yes |
| CVE-2026-121810 | HTTP/3 (QUIC). Xint tested a setup that forwarded requests to a backend. | 1.25.0 | No |
| CVE-2026-113425 | Mail proxy using proxy on and auth_http | 0.5.33 | No |
mirror as possible sources of subrequests. Xint’s test used mirror with mirror_request_body off. Check SSI exposure as well if you disable mirroring. Xint lists 1.13.4 for its tested mirror configuration and 0.5.15 for its mail proxy path. The table follows the published nginx advisory ranges. F5 resolver advisoryWho is affected?
The upstream advisory puts CVE-2026-123007 in versions 1.9.5 through 1.31.8. Xint also found the vulnerable code in master on November 10, 2026. The fix shipped on November 18 in mainline 1.31.9 and stable 1.30.7. nginx security advisories · Xint research report
For distribution packages, compare the complete revision with the vendor’s CVE tracker. Ubuntu 24.04 uses nginx 1.24.0, Ubuntu 22.04 uses 1.18.0, and Debian 12 uses 1.22.1. An earlier Ubuntu 22.04 security update illustrates what a backport looks like: 1.18.0-6ubuntu14 and 1.18.0-6ubuntu14.22 both report 1.18.0 through nginx -v. Canonical and Debian still listed these releases as vulnerable to CVE-2026-123007 when checked on November 19. USN-8955-1 · Ubuntu CVE status · Debian Security Tracker
On November 10, Xint’s Shodan search for product:nginx returned 56.7 million results. Only 11.94 million (21.1%) showed a recognizable version. Within that subset, 98.9% fell into the affected upstream range. A banner reveals neither the HTTP/2 settings nor the package’s backport history. Xint exposure analysis
How to check for exposure
A server is affected by CVE-2026-123007 if it runs an unpatched version, includes the HTTP/2 module, and has HTTP/2 enabled. The first three checks below test each of these conditions; the fourth checks whether HTTP/2 is reachable over the Internet. For the other four nginx flaws, refer to the configuration table above. Check guide by Xint
1. Check the version
nginx -v 2>&1
- 1.9.5 through 1.31.8: The official release contains the vulnerable code. Continue with the next checks.
- 1.9.4 or earlier: Released before HTTP/2 support and therefore not affected.
- 1.31.9 (mainline) and 1.30.7 (stable): The fix is available from these versions onward in their respective upstream branches.
- Distribution or appliance version: Do not rely on the version string alone. Confirm whether the fix was backported by checking the full package version.
2. Check for the HTTP/2 module
nginx -V 2>&1
Look for --with-http_v2_module in the build options for the binary the service actually runs. If the command fails, check the executable path or run it inside the relevant container before drawing a conclusion.
3. Check whether HTTP/2 is enabled in the configuration
sudo nginx -T
Matches such as listen 443 ssl http2; or http2 on; flag settings to review in the full dump. Check which server blocks they apply to, including inherited settings and multiline directives. The dump describes files on disk. Verify that nginx loaded the configuration successfully before drawing conclusions about the running service.
4. Check whether HTTP/2 is reachable over the Internet
Run the command below from a machine outside your network, replacing both {HOST} placeholders with your domain and adjusting the port if you do not use 443.
openssl s_client -connect "{HOST}:443" -servername "{HOST}" -alpn h2 </dev/null
A successful handshake with ALPN protocol: h2 confirms HTTP/2 at the TLS endpoint tested. No ALPN negotiated means this connection did not negotiate HTTP/2. Treat connection or handshake errors as inconclusive. If a CDN or proxy terminates TLS, check the nginx origin separately through an authorized route.
Interpret the combined results as follows:
| Result | Assessment |
|---|---|
Unpatched 1.9.5–1.31.8 + --with-http_v2_module + ALPN protocol: h2 on the actual nginx port | Vulnerable and externally exposed. Immediate action required |
Unpatched 1.9.5–1.31.8 + --with-http_v2_module + HTTP/2 disabled | The vulnerable code is present, but the current attack path is disabled |
| 1.9.4 or earlier, or no HTTP/2 module | Not affected by this vulnerability |
| Running 1.31.9, 1.30.7 or a confirmed backport | Patched. No longer vulnerable |
| Connection failure, TLS handshake failure, or uncertain patch status | Inconclusive. Further review required |
Install the update and apply mitigations
Apply the appropriate security update for your build, starting with nginx 1.31.9 on mainline or 1.30.7 on stable for upstream packages. Restart the service, replace the container using the updated image, or perform a supported live binary upgrade. Verify the running build afterward. nginx release announcement
Use the following temporary measures where the features apply and an upgrade has to wait. Xint mitigation guidance
Disable HTTP/2 (CVE-2026-123007 and CVE-2026-123633)
Both vulnerabilities arise while nginx handles HTTP/2 connections. Disable HTTP/2 on the affected ports. Clients that support HTTP/1.1 can continue using the service; services that require HTTP/2, such as native gRPC, will be affected.
For nginx 1.25.1 and later, set http2 off; in each affected server block and remove any legacy http2 parameter from its listen directives. Check all server blocks sharing the listening address and port:
listen 443 ssl;
http2 off;
For nginx 1.9.5 through 1.25.0, remove http2 from listen 443 ssl http2;:
listen 443 ssl;
Validate the configuration before reloading:
sudo nginx -t && sudo nginx -s reload
After the reload, repeat the ALPN check in step 4 for every affected endpoint. Confirm HTTPS is still available and the old HTTP/2 sessions have closed.
Remove request-time DNS lookups (CVE-2026-123634)
Point affected proxy and subrequest destinations at fixed upstream groups to avoid resolving their names during request processing. Review the main request as well as mirror and SSI subrequests. Define the upstream groups in http and put the location examples inside the appropriate server block. Substitute backend IPv4 addresses for the placeholders.
upstream backend_hotfix {
server {BACKEND_IP}:8080;
}
location / {
mirror off;
proxy_pass http://backend_hotfix;
}
If you need mirroring, use fixed upstream groups for both the main request and the mirror:
upstream backend_main_hotfix {
server {MAIN_SERVER_IP}:8080;
}
upstream backend_mirror_hotfix {
server {MIRROR_SERVER_IP}:8080;
}
location / {
mirror /mirror;
proxy_pass http://backend_main_hotfix;
}
location = /mirror {
internal;
proxy_pass http://backend_mirror_hotfix;
}
Then validate and reload: sudo nginx -t and sudo nginx -s reload.
Disable HTTP/3 (QUIC) (CVE-2026-121810)
The flaw is in how nginx handles HTTP/3 request streams on a QUIC connection. In every affected server block, remove the listen directives that contain quic, set http3 off, and replace any Alt-Svc header advertising HTTP/3 with Alt-Svc 'clear':
listen 443 ssl;
# listen 443 quic reuseport;
# listen [::]:443 quic reuseport;
http3 off;
add_header Alt-Svc 'clear' always;
Validate, reload, and check whether anything still accepts UDP traffic on port 443:
sudo nginx -t && sudo nginx -s reload
sudo ss -lunp 'sport = :443'
Check which process owns any remaining UDP sockets on port 443. If nginx appears, review its remaining UDP listeners. Block the port at the firewall only if no required service uses it.
Restrict access to the mail proxy (CVE-2026-113425)
This mitigation only applies if you use nginx as a mail proxy in front of IMAP, POP3 or SMTP servers. You are affected if the mail block uses proxy on together with auth_http. The bug is triggered during login – the attacker does not need valid credentials. Until the patch is installed, keep untrusted clients away from the mail proxy.
If the proxy does not need external access, bind every IMAP, POP3 and SMTP listener to a loopback address. Only programs on the same machine can then connect:
listen 127.0.0.1:143;
Validate, reload, and confirm that the mail ports no longer listen on external addresses:
sudo nginx -t && sudo nginx -s reload
sudo ss -ltnp | grep -E ':(25|110|143|465|587|993|995)([[:space:]]|$)'
The command checks the standard mail ports; add yours if they differ. If outside clients do need to reach the proxy, use your firewall to allow only the IP addresses you trust.
Close existing connections
A reload applies the new configuration only to new connections. Connections that were already open, such as HTTP/2 or mail sessions, stay with the old workers. In ps these workers show up as nginx: worker process is shutting down. If such workers are still running after the reload, restart nginx through your service manager (systemctl restart nginx). A restart forcibly disconnects every client and cuts off downloads, uploads and mail sessions in progress – expect a short service interruption.
Kernel flaw: SCTP as a stepping stone to root
Host root in Xint’s demonstration required a second vulnerability: a local privilege escalation zero-day in Linux SCTP. The nginx vulnerabilities themselves grant execution as the worker account. Containers on the same host share its Linux kernel. Xint kernel analysis
Xint traced the memory safety issue to the SCTP (Stream Control Transmission Protocol) send path and dated it to Linux 4.15 (2018). Track the host kernel’s security updates separately from the nginx rollout. As of November 19, 2026, no kernel patch for the SCTP flaw was available, so the modprobe.d rule remains the only protection for now.
*.conf file under /etc/modprobe.d/: install sctp /bin/false. This only prevents loading through modprobe. It does not unload a module that is already loaded, and it does not disable SCTP compiled into the kernel.How to spot an attack
HTTP/2 control frames can go unrecorded in ordinary access logs. Review connection statistics, process activity and worker crash reports alongside request logs. Xint detection guidance
Check connection statistics
sudo ss -tinp state established '( sport = :443 )'
Compare two snapshots of the connection statistics. Investigate connections that show several unusual patterns together:
- A connection from the same external IP remains open for several minutes
bytes_receivedkeeps growing very quickly- The server's
bytes_sentis much smaller than the received volume - The same external IP also creates many short-lived TLS connections
Compare traffic with a baseline and look for plausible explanations such as large uploads. Preserve relevant logs and investigate when the combined signals warrant it.
Review requests by connection
The default access log does not show which connection each request belongs to. This log format adds the connection ID, the number of requests on that connection, and the request size; no debug build is needed. Add it to the nginx http block:
log_format h2_hunt '$time_iso8601 src=$remote_addr conn=$connection '
'requests=$connection_requests proto=$server_protocol '
'status=$status request_length=$request_length '
'bytes_sent=$bytes_sent request_time=$request_time';
access_log /var/log/nginx/h2-hunt.log h2_hunt;
Validate, reload, and display only HTTP/2 requests:
sudo nginx -t && sudo nginx -s reload
sudo grep 'proto=HTTP/2.0' /var/log/nginx/h2-hunt.log | tail -n 200
Compare request totals per connection against bytes_received for the corresponding socket. The counters measure different protocol layers, so use any large discrepancy as a lead for further review.
Monitor command execution by workers
Unexpected program execution under the nginx worker’s UID warrants investigation. Start by finding the numeric UID of the worker account:
ps -eo uid,user,pid,ppid,args | grep '[n]ginx: worker process'
On systems that use the audit subsystem auditd, replace NGINX_UID with the numeric UID and add the following rule:
sudo auditctl -a always,exit -F arch=b64 -S execve,execveat \
-F euid=NGINX_UID -k nginx_worker_exec
The rule applies to the 64-bit syscall ABI from installation onward and matches any process with that effective UID. Check the process and parent IDs. Add coverage for the 32-bit ABI separately if the host supports it and the deployment needs it.
sudo ausearch -k nginx_worker_exec -ts recent -i
Look for /bin/sh, /bin/bash or any other program started by a worker. If other applications run under the same account, compare each event's parent process with your service configuration.
Check for abnormal worker exits
A failed exploit attempt can crash an nginx worker:
sudo grep -Ei 'worker process.*exited|signal 11|segfault' /var/log/nginx/error.log
sudo coredumpctl list COMM=nginx
A worker can also crash without an attack. Correlate the records with the other signals before drawing a conclusion.
Assess the evidence
Investigate unexpected process execution and correlate it with error logs and unusual traffic:
- Sustained high inbound traffic
- Many connections from the same source
- A large gap between actual received bytes and logged request lengths
- Repeated abnormal worker exits
Disclosure timeline
Xint documented the disclosure milestones in UTC. nginx confirmed the November 18 release date for both branches. Xint disclosure timeline · nginx release announcement
| Date (UTC) | Event |
|---|---|
| October 11, 2026 | Xint research team discovers the vulnerabilities |
| October 16, 2026 | Reported to F5 through HackerOne |
| October 20, 2026 | HackerOne completes validation |
| October 27, 2026 | Delivered to F5's nginx development team |
| November 9, 2026 | nginx team requests patch validation |
| November 10, 2026 | Xint completes patch validation |
| November 18, 2026 | nginx security releases 1.30.7 and 1.31.9 |
What the fixes address
- CVE-2026-123007 — HTTP/2 flow-control flaw that can corrupt heap memory
- CVE-2026-123634 — Use-after-free in the DNS resolver
- CVE-2026-123633 — Use-after-free in HTTP/2 connection handling
- CVE-2026-121810 — Use-after-free in HTTP/3 connection handling
- CVE-2026-113425 — Use-after-free in the mail proxy
Sources
- nginx2root.com – Overview and fix guidance
- Xint – NGINX2Root: full write-up
- nginx – Release 1.31.9
- nginx – Security advisory list
- CVE-2026-123007 (CVE Program)
- CVE-2026-123634 (CVE Program)
- CVE-2026-123633 (CVE Program)
- CVE-2026-121810 (CVE Program)
- CVE-2026-113425 (CVE Program)
- Ubuntu – Security notice USN-8955-1
- nginx release announcements
- F5 – CVE-2026-123634
- F5 – CVE-2026-123633
- F5 – CVE-2026-121810
- Canonical – CVE-2026-123007
- Debian Security Tracker – CVE-2026-123007