nginx2root: upgrade nginx to 1.30.7 or 1.31.9 for ten CVEs
On 18 November 2026 nginx released 1.30.7 (stable) and 1.31.9 (mainline), fixing ten vulnerabilities. Five, which Cloudflare calls nginx2root, are memory corruption bugs in HTTP/2, HTTP/3, the resolver and the mail proxy that can let an unauthenticated attacker run code. Upgrade, then restart rather than reload.
nginx shipped 1.30.7 stable and 1.31.9 mainline on 18 November 2026 with fixes for ten vulnerabilities. Five of them are memory corruption bugs that Cloudflare, in its nginx2root write-up, says "can let an unauthenticated attacker run code on a server". The affected code paths include HTTP/2, HTTP/3, the DNS resolver used with variable proxy_pass, and the mail proxy, and some of them go back more than fifteen years. If nginx terminates traffic anywhere in your stack, including ingress controllers and container images, this is a patch-now item.
What was fixed
The nginx security advisories page lists all ten. Every one is fixed in 1.31.9 and later, and all except the PROXY protocol bug (which only affects mainline) are also fixed in 1.30.7 and later.
| CVE | Issue | nginx severity | Vulnerable versions |
|---|---|---|---|
| CVE-2026-123007 | Memory corruption in HTTP/2 flow control | major | 1.9.5 to 1.31.8 |
| CVE-2026-118899 | Infinite loop reading request body over TLS 1.3 | major | 1.13.0 to 1.31.8 |
| CVE-2026-113425 | Use-after-free in mail proxy module | major | 0.5.33 to 1.31.8 |
| CVE-2026-123634 | Use-after-free in resolver | medium | 0.6.18 to 1.31.8 |
| CVE-2026-121810 | Use-after-free in HTTP/3 | medium | 1.25.0 to 1.31.8 |
| CVE-2026-123633 | Use-after-free in HTTP/2 | medium | 1.19.7 to 1.31.8 |
| CVE-2026-120967 | SNI bypass with client certificate validation in stream | medium | 1.25.5 to 1.31.8 |
| CVE-2026-120993 | NULL pointer dereference with PROXY protocol v2 | minor | 1.31.4 to 1.31.8 |
| CVE-2026-125283 | Buffer overflow with alias and try_files | minor | 0.9.6 to 1.31.8 |
| CVE-2026-123640 | Insufficient validation in stream ssl_preread | minor | 1.15.2 to 1.31.8 |
In practice that means every nginx Open Source release before 1.30.7 is affected by most of the list. For nginx Plus, Cloudflare's post gives the fixed builds as 37.0.8.1 and 37.3.0.1, and says R34 to R36 have no fixed build: you have to move to a fixed 37.x release. F5 tracks the issues under K000164058.
The five nginx2root bugs and when they are reachable
Cloudflare's write-up covers five of the ten bugs in detail, discovered by Xint and reported to F5 on 16 October 2026. Whether each one matters to you depends on your configuration:
- CVE-2026-123007, HTTP/2 flow control. An integer overflow in
WINDOW_UPDATEhandling leads to an out-of-bounds heap read and write. Present since 1.9.5 whenever HTTP/2 is enabled. Cloudflare notes that exploitation needs direct control of HTTP/2 frames, very high traffic on one connection, and an ASLR bypass. - CVE-2026-123633, HTTP/2 with
proxy_pass. A use-after-free reachable over a direct HTTP/2 connection when the worker is running low onworker_connections. - CVE-2026-121810, HTTP/3. A use-after-free in QUIC/HTTP/3 with
proxy_pass, present since 1.25.0. Only relevant if you have QUIC listeners. - CVE-2026-123634, resolver. A use-after-free when
proxy_passuses variables with aresolver, and a subrequest (frommirroror SSI) is waiting on the same DNS lookup. Cloudflare says its own proxy does not fully protect against this one, and that settingmirror_request_body offalone is not enough. - CVE-2026-113425, mail proxy. A use-after-free with
proxy onandauth_http, reachable over a direct IMAP, POP3 or SMTP connection.
The other five are not covered in that post. The two to note are the TLS 1.3 request-body infinite loop (CVE-2026-118899), which nginx rates major and applies to any TLS 1.3 server since 1.13.0, and the stream SNI bypass (CVE-2026-120967) if you rely on client certificate validation in the stream module.
What to do
1. Find every nginx you run
The obvious hosts are rarely the problem. Check container base images, Kubernetes ingress controllers, sidecars, appliances and anything built from source:
nginx -v
docker run --rm your-image:tag nginx -v
grep -rnE 'FROM .*nginx' --include='Dockerfile*' .nginx -V (capital V) also prints the configure arguments, which tells you whether the binary was built with --with-http_v2_module, --with-http_v3_module or --with-mail. You can paste the output of either command into the nginx security version checker to see which of the ten CVEs apply to each version.
Distribution packages are a separate case. Debian, Ubuntu, RHEL and others often backport fixes without changing the upstream version number, so a distro nginx that reports an older version may already be patched. Check your distribution's security tracker for these CVE IDs rather than relying on the version string.
2. Upgrade and restart
Move to 1.30.7 on the stable branch or 1.31.9 on mainline. Cloudflare points out that a configuration reload does not replace the running binary, so restart nginx after the package upgrade and confirm the version of the running process, not just the installed package.
3. Reduce exposure where you can't patch today
From the mitigations in Cloudflare's post:
- If you don't need them, disable HTTP/2 (
http2 off;, available since 1.25.1) and HTTP/3 (http3 off;or removequiclisteners). - Point
proxy_passat fixedupstreamgroups instead of variables resolved at runtime, which removes the resolver path. - Restrict mail proxy listeners to trusted networks.
- Keep origins reachable only through your CDN or load balancer, so attackers can't open direct HTTP/2 or QUIC connections. This does not help with the resolver bug or the mail proxy.
A quick way to see which risky features your configuration uses:
grep -rnE '\b(http2|http3|quic|resolver|mirror|ssi|auth_http|proxy_protocol|ssl_preread|try_files)\b' /etc/nginx/For the resolver bug on unpatched versions, Cloudflare suggests checking error logs for the message could not cancel <name> resolving.
4. Track the change in code
Version bumps across many Dockerfiles, Helm values and CI images are tedious but mechanical. If you use CodeBeast, a task such as "bump every nginx base image to 1.30.7 and run the smoke tests" goes through the same plan, build, review and test stages as any other change, and ends as a pull request you review.
Open questions
- nginx's advisories link to F5 pages but, at the time of writing, list no standalone patch files for these issues, so source builds of older branches need to move to a fixed release.
- Cloudflare describes exploit conditions for the five nginx2root bugs; whether public exploit code follows is not stated. Plan as if it will.
- Ingress controllers and appliances that embed nginx will ship fixes on their own schedule. Check each vendor.
Sources
- nginx news: 1.30.7 and 1.31.9 released
- nginx security advisories
- Cloudflare: nginx2root, five new nginx vulnerabilities
- F5 advisory index K000164058
FAQ
Which nginx version fixes nginx2root?
nginx 1.30.7 (stable) and 1.31.9 (mainline), both released on 18 November 2026, fix all five nginx2root bugs and the other five CVEs in the same release. For nginx Plus, Cloudflare lists 37.0.8.1 and 37.3.0.1 as fixed builds.
Is reloading nginx enough after upgrading?
No. A reload re-reads the configuration with the binary that is already running. Restart nginx so the new binary is loaded, then check the version of the running process.
Does putting nginx behind a CDN protect me?
Partly. A proxy in front of the origin blocks direct HTTP/2 and QUIC connections, which several of the bugs need, but Cloudflare says it does not fully protect against the resolver bug, and mail traffic is not proxied at all. Treat it as a stopgap until you upgrade.
My distro's nginx reports an older version. Am I vulnerable?
Not necessarily. Distributions often backport security fixes into older version numbers. Look up the CVE IDs in your distribution's security tracker to see which package release contains the fix.
Written by the CodeBeast Team with AI assistance. Spotted a mistake? Email support@codebeast.ai.