Nginx 1.31.9 Closes Five CVEs, Including One That Chains to Host Root
A server that fronts a huge share of the web now carries five CVEs, one of which yields unauthenticated RCE and another that chains to host root. Operators who can't upgrade need to know that toggling HTTP/2 off only covers two of the five, so a partial patch is still a real exposure.
Xint's nginx2root collection lists five critical Nginx CVEs. The most severe allows an unauthenticated attacker to run commands on any Nginx server with HTTP/2 enabled, and one of the five combines with a separate Linux kernel vulnerability to escalate to root on the host. Nginx's fix ships in 1.31.9 (mainline) and 1.30.7 (stable), but the upgrade is not a simple package refresh for everyone.
Disabling HTTP/2 is only a partial mitigation. It blocks the two CVEs tied to HTTP/2, but the resolver use-after-free, HTTP/3 UAF, and mail proxy UAF remain active when those features are enabled. Operators running resolver, HTTP/3, or mail proxy need to patch sooner rather than later.
The post walks through an in-place binary replacement: download the tarball, back up the existing binary and its `nginx -V` output, compile with identical configure arguments, then replace `/usr/local/nginx/sbin/nginx` and restart with `stop` (not `reload`). Verification and rollback steps are included. The method assumes a simple install; third-party modules and symlinks require extra care.
The article's warning that disabling HTTP/2 doesn't cover all five CVEs is a reminder that feature-specific mitigations only work when you know exactly which modules are enabled in your deployment.
The binary-replacement upgrade method is a reasonable pattern for simple installations, but the author's own caution about third-party modules and symlinks shows that a production-grade upgrade still requires a full dependency audit.
The advice to save `nginx -V` output and match configure arguments exactly calls out a common failure mode: many operators compile with extra flags that don't match the original build, leading to subtle behavioral changes.