Critical nginx Bugs Let an Anonymous Attacker Run Code A decade-old assumption a...

@x@niwego.com

Critical nginx Bugs Let an Anonymous Attacker Run Code

A decade-old assumption about nginx broke this week. Five vulnerabilities, one of them unauthenticated remote code execution on a default setup — on the web server that fronts a huge share of the internet.

The finding is published as NGINX2Root by Xint, the research team at Theori. The worst bug lives in nginx's HTTP/2 flow control: a remote attacker with no credentials can corrupt an nginx worker's memory, leak addresses, overwrite the pointer to a cleanup function, and run commands with the worker's privileges, reading output back over the same connection. Chained with a separate Linux SCTP kernel bug, the path continues to root on the host.

The vulnerable HTTP/2 code path dates to nginx 1.9.5 in 2015. Xint checked a November 10 Shodan snapshot: 11.8 million of 11.94 million version-identifiable nginx hosts ran a release inside the affected range. That measures how many boxes run the version, not how many are exploitable — exposure also requires the HTTP/2 module compiled in and a listener that actually negotiates h2.

What a self-hoster should do:

  • Update. Mainline nginx 1.31.9 carries the fixes; the stable 1.30.7 released on 18 November bundles nine security fixes, including the HTTP/2 memory corruption. Restart the process — nginx -s reload does not load a new binary.
  • If you cannot patch today, turn HTTP/2 off on every affected listener (http2 off; on 1.25.1 and later, or drop http2 from the listen directive on older builds), then test and reload.
  • Trust the vendor advisory over nginx -v: distribution packages backport fixes while keeping the old version string.
  • The kernel privilege escalation is a separate bug with its own patch, due in the coming weeks.

Xint says it has no evidence of exploitation yet, but some of the bugs are over ten years old and the exploit is being withheld for now.

SANS took the announcement as an argument for calm on 18 November: patch at a sustainable pace, automate the boring systems, shrink what faces the internet, and do not drop your plan because of the vulnerability of the day.

📷 Carl Lender from Sunrise, USA · CC BY 2.0 · Wikimedia Commons

🔗 Source: Xint / NGINX2Root

#SelfHosting #Homelab #OpenSource