nginx2root: Five nginx Flaws Can Be Chained with a Linux SCTP Bug for Root Access

· Original article ↗

Summary

The nginx2root disclosure covers five nginx flaws affecting HTTP/2, HTTP/3, resolver and mail-proxy configurations. Chained with a Linux SCTP use-after-free, a flaw can enable host root access; fixes and configuration-specific mitigations are provided.

Key points

  • CVE-2026-123007 affects reachable nginx installations with HTTP/2 enabled, from releases 1.9.5 through 1.31.8; its cause is an integer overflow leading to a heap out-of-bounds write.
  • The other nginx flaws affect resolver and proxy configurations (CVE-2026-123634), HTTP/2 upstream connections (CVE-2026-123633), HTTP/3 upstream connections (CVE-2026-121810), and mail-proxy authentication lookups (CVE-2026-113425).
  • The article says the nginx flaws can be chained with a Linux kernel SCTP send-path use-after-free for root access, including from inside a Docker container.
  • Update nginx to 1.31.9 (mainline) or 1.30.7 (stable); Linux distributions may backport fixes without changing the displayed nginx version.
  • Configuration-specific mitigations include disabling HTTP/2 for two flaws, changing resolver or proxy settings, disabling QUIC/HTTP/3, and restricting mail-proxy access.
  • The archived ingress-nginx project is affected by CVE-2026-123633 and will not receive an upstream fix; the article recommends disabling HTTP/2 and planning a move to a maintained or patched build.

Article Details

Vulnerability Types
  • Integer overflow
  • Out-of-bounds heap write
  • Use-after-free
Severity
Critical
Affected Versions
  • nginx 1.9.5–1.31.8 (CVE-2026-123007)
  • nginx 1.13.4 (first affected release; CVE-2026-123634)
  • nginx 1.19.7 (first affected release; CVE-2026-123633)
  • nginx 1.25.0 (first affected release; CVE-2026-121810)
  • nginx 0.5.15 (first affected release; CVE-2026-113425)
  • ingress-nginx v1.15.1, bundling nginx 1.27.1 (CVE-2026-123633)
Exploitation Status
unknown
Exploit Availability
unknown
Patch Status
available
Workarounds
  • For CVE-2026-123007 and CVE-2026-123633, disable HTTP/2: set http2 off in affected server blocks on nginx 1.25.1 and later, or remove http2 from the listen directive on older versions.
  • For CVE-2026-123634, point proxy_pass to a fixed upstream group instead of using request-time DNS.
  • For CVE-2026-121810, remove QUIC listeners and set http3 off.
  • For CVE-2026-113425, bind mail proxy listeners to loopback or restrict access to trusted IP addresses with a firewall.
  • For hosts that do not use SCTP, add install sctp /bin/false to a .conf file under /etc/modprobe.d/; this does not unload an already loaded module or affect SCTP compiled into the kernel.

MITRE ATT&CK

CVE

Vendors

Products

Related Articles