NGINX 1.31.9 & 1.30.7 Emergency Fixes: NGINX2Root Chain
Published 2026-11-21Category: Guides
NGINX 1.31.9 mainline and 1.30.7 stable released 2026-11-18 fixing 10 CVEs including NGINX2Root chain (CVSS 4.0 9.2). Full restart required
Table of contents
- 1.Introduction & Key Highlights
- 2.Side-by-Side Comparison
- 3.Deep Dive per Release
- 3.1.NGINX 1.31.9 Mainline: Security Fixes Plus Behavioral Tightening
- 3.2.NGINX 1.30.7 Stable: Pure Security Maintenance
- 4.NGINX2Root Attack Chain Full Walkthrough
- 5.Operational “Restart Trap” & Verification
- 6.Mitigation & Residual-Risk Decision Matrix
- 7.Scenario-Based Guidance & Pitfall Checklist
- 8.FAQ
- 9.Sources & References

Introduction & Key Highlights
On 2026-11-18 NGINX shipped two simultaneous releases: 1.31.9 (mainline) and 1.30.7 (stable). The headline is the remediation of ten security vulnerabilities, five of which form the NGINX2Root chain disclosed by Xint.io. By chaining NGINX memory flaws with an unpatched Linux kernel SCTP defect, an unauthenticated attacker can escalate to root; the chain carries a CVSS 4.0 score of 9.2 (Critical). Affected surfaces include HTTP/2, HTTP/3, mail proxy, resolver mirror, and proxied backends — no authentication required. The project stresses that a graceful reload does not replace the in-memory binary; a full process restart is mandatory. Beyond security, 1.31.9 tightens header parsing (lines without a colon now yield 400), adds chunked request-body flood detection, fixes assorted HTTP/2 and HTTP/3 logic bugs, and makes worker processes exit on initgroups() failure. Review the official upgrade notes before deploying to avoid breaking existing configurations.
Side-by-Side Comparison
| Dimension | NGINX 1.31.9 (Mainline) | NGINX 1.30.7 (Stable) |
|---|---|---|
| Release date | 2026-11-18 | 2026-11-18 |
| Total vulnerabilities fixed | 10 (includes CVE-2026-120993 affecting only 1.31 branch) | 9 |
| NGINX2Root-related CVEs | 5 (CVE-2026-123007, CVE-2026-118899, CVE-2026-113425, CVE-2026-123633, CVE-2026-123634) | Same 5 |
| CVSS 4.0 score | 9.2 (Critical) | 9.2 (Critical) |
| Key non-security changes | Reject header lines without colon, chunked flood detection, HTTP/2/3 protocol fixes, worker exits on initgroups() failure |
None — security fixes only |
| Required upgrade action | Full process restart mandatory, reload ineffective | Full process restart mandatory, reload ineffective |
| Mitigation | Disabling HTTP/2 blocks 2 of the 9.2 CVEs | Disabling HTTP/2 blocks 2 of the 9.2 CVEs |
| Residual risk | Linux kernel SCTP flaw (no CVE, no patch) still enables privilege escalation | Same |
Deep Dive per Release
NGINX 1.31.9 Mainline: Security Fixes Plus Behavioral Tightening
While addressing the ten vulnerabilities, 1.31.9 introduces three behavioral changes that may disrupt existing services:
- Strict RFC 9112 header parsing — any header line lacking a colon (e.g.,
Foo) causes the request to return 400; upstream responses containing such lines yield 502;auth_httpand OCSP responses follow the same rule. - Chunked request-body flood detection — chunk-size, chunk-extension, and trailer fields are now counted as framing overhead; when overhead dwarfs payload the request is rejected with 400.
client_max_body_sizecontinues to limit only the entity body. - HTTP/2 and HTTP/3 protocol-stack fixes — resolves HTTP/2 trailer blocking other streams, HTTP/3 header forwarding anomalies, and related logic errors.
Additionally, a worker process that fails
initgroups()during startup now terminates immediately instead of continuing. Read the official upgrade notes to assess impact before rolling out.
NGINX 1.30.7 Stable: Pure Security Maintenance
1.30.7 is a stable-branch security-only release with zero functional changes. It backports fixes for nine vulnerabilities (excluding the 1.31-only CVE-2026-120993). All five NGINX2Root CVEs are included with identical CVSS ratings. For production environments pinned to the stable branch, this version avoids the compatibility risk of 1.31.9’s new behaviors, yet still demands a full restart.
NGINX2Root Attack Chain Full Walkthrough
Xint.io describes a two-stage chain:
- Stage 1 — exploit five NGINX memory vulnerabilities (CVE-2026-123007 et al.) to achieve code execution in the worker process context.
- Stage 2 — leverage an undisclosed, unpatched Linux kernel SCTP subsystem flaw to escalate from worker to root.
Wiz has verified CVE-2026-123007 yields RCE even in a minimal static-file setup with only HTTP/2+TLS enabled. Rapid7’s Stephen Fewer published a PoC against 1.31.8. As of 2026-11-19 no in-the-wild exploitation has been observed and the chain is absent from the CISA KEV catalog. Critical takeaway: upgrading NGINX severs only the first half of the chain; the kernel-level privilege-escalation path remains open pending kernel vendor patches.
Operational “Restart Trap” & Verification
FOSS Linux tested three servers and found that running only nginx -s reload left the old binary resident in memory — vulnerabilities unpatched. Correct procedure:
systemctl restart nginxorkill -TERM <master_pid> && nginx- Verify with
ps aux | grep nginxthat master/worker start times have updated, or comparenginx -Vbuild dates. - Containerized deployments must recreate the Pod/container (source did not disclose specific CLI flags); image tags must be pinned to
1.31.9or1.30.7to avoid stalelatesttags.
Mitigation & Residual-Risk Decision Matrix
If an immediate restart is impossible, temporarily disable HTTP/2 (http2 off;) to neutralize two of the five 9.2 CVEs. However, HTTP/3, mail proxy, resolver mirror, and the remaining three NGINX2Root CVEs stay exposed. Full remediation requires three conditions:
- Install distro-rebuilt packages.
- Perform a full process restart.
- Apply the Linux kernel SCTP patch when available.
Until the kernel fix lands, recommended defense-in-depth measures:
- Confine worker privileges with SELinux/AppArmor.
- Block SCTP module loading (
modprobe.blacklist=sctp). - Deploy runtime security monitoring (Falco/eBPF) to alert on anomalous
execveandcap_sys_adminusage.
Scenario-Based Guidance & Pitfall Checklist
- Production on stable branch — upgrade directly to 1.30.7; avoids 1.31.9 header parsing, chunked detection, and
initgroupsbehavioral shifts. - Mainline users — test in staging: verify that colon-less headers, heavy chunked framing, and HTTP/2 trailers do not trigger false rejections.
- Container/Kubernetes — ban
latesttags; pinnginx:1.31.9ornginx:1.30.7in Dockerfiles and Helm charts; confirm image digest change before rolling update. - Restart verification automation — codify
systemctl restart nginx→nginx -V→curl -I localhostin Ansible/playbooks to eliminate human error. - Pre-kernel-patch hardening — blacklist SCTP, set
kernel.unprivileged_bpf_disabled=1, add Falco rules watchingptraceandcap_dac_overrideto reduce escalation success rate.
FAQ
After upgrading to 1.31.9, will upstreams sending header lines without colons immediately error?
Yes. 1.31.9 enforces RFC 9112 strictly: upstream responses containing colon-less header lines cause NGINX to return 502 to the client; client requests with such lines receive 400. Before upgrading, enable error_log to watch for 400/502 spikes, or temporarily set ignore_invalid_headers off; in the server block as a short-term bridge (not recommended for long-term use).
Why does nginx -s reload fail to apply the security patches?
Reload only instructs the master process to re-read configuration and spawn new workers; the old master and its workers remain in memory running the unpatched binary. Since exploitation occurs in the worker memory context, you must fully replace the process image via systemctl restart nginx or manually terminate the master and restart NGINX.
Is disabling HTTP/2 sufficient for safety? Do I still need the kernel patch?
Disabling HTTP/2 mitigates only two of the five NGINX2Root CVEs (CVE-2026-123007 and CVE-2026-118899). The other three CVEs plus HTTP/3, mail proxy, and resolver mirror attack surfaces remain. Moreover, the kernel SCTP escalation path is entirely independent of the NGINX protocol stack — you must wait for your Linux distribution’s kernel update. In the interim, disable the SCTP module and strengthen runtime monitoring as outlined above.
Sources & References
- NGINX Blog: NGINX 1.31.9: Stricter header parsing, flood detection for chunked request bodies, and protocol fixes for HTTP/2 and HTTP/3 (2026-11-20)
- FOSS Linux: NGINX2Root: nginx 1.30.7 and 1.31.9 Patch Critical Flaws (2026-11-20)
Spotted outdated pricing, stock, or expired coupons?See methodology & report an update →

