Five serious holes in nginx, partly found with AI: anyone using HTTP/2 should update the web server soon
F5 has released new versions, and working attack code is meanwhile available online.
F5, the owner of the widely used nginx web server, on Wednesday released versions 1.30.7 and 1.31.9. Among other things they close five critical flaws that researchers collectively call nginx2root and that let an attacker run code without logging in, SecurityWeek reports. According to CSO Online, the worst flaw sits in the HTTP/2 code: with manipulated flow-control settings, the server copies memory outside the intended bounds. That flaw is present in every official release since 1.9.5 from 2015. A second HTTP/2 bug reuses memory that has already been freed, while the other three sit in HTTP/3, the mail proxy and the way backends are chosen per request.
Several teams found the flaws independently, among them Rapid7, Wiz, Metnir, Ikotas Labs and Xint. According to CSO Online, most of the teams worked with AI agents. Xint found five with its own automated system, which chief executive Brian Pak said went through 50,000 lines of code in an hour and a half. Xint chained one of the flaws with an as yet unpatched bug in the Linux kernel's SCTP module and in tests escaped from a Docker container that way, with root rights on the underlying machine.
Rapid7 published attack code that needs about 128 gigabytes of HTTP/2 traffic, SecurityWeek writes. Censys, according to the same source, managed it without that volume of traffic and estimates that around 9 million services run a vulnerable version with HTTP/2 enabled. No exploitation in the wild has been seen yet, and according to F5 code execution only succeeds if memory address protection is bypassed, which some researchers have managed to do.
F5 advises updating immediately or disabling HTTP/2, although that only blocks the two most serious flaws. Those running nginx Plus need to move to 37.3.0.1 or 37.0.8.1. Administrators who do not use SCTP can block that kernel module until a kernel patch is available.