Skip to content
Memory corruption Write-up Advanced

nginx2root: Five new nginx vulnerabilities, and how Cloudflare protects origins from the worst of them

Five memory-corruption flaws in nginx, four of them use-after-free bugs, allow an unauthenticated attacker to crash a worker or, per the researchers, run code with the worker's privileges. The most serious, an integer overflow in HTTP/2 flow control, needs only HTTP/2 enabled and has existed since 2015.

Dan Jones Follow

Published on blog.cloudflare.com

On November 18, 2026, F5 and nginx.org disclosed ten vulnerabilities in nginx. Five of them, detailed by the Xint research team and published under the name nginx2root, are memory corruption flaws that an unauthenticated attacker can use to crash an nginx worker or, per Xint's research, run commands on the server.

Dan Jones, on blog.cloudflare.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a mix of use-after-free bugs where one code path frees a connection or request that another path still holds, plus an uncapped refund of HTTP/2 flow-control credit that lets the send window wrap past its protocol maximum.

Impact

An unauthenticated attacker could crash an nginx worker or, per the researchers, execute code with the worker's privileges; code execution requires ASLR to be disabled or bypassed, and origins behind Cloudflare's HTTP proxy are shielded from the HTTP/2 and HTTP/3 variants.

What the attacker needed

Nginx with HTTP/2 enabled; ability to send tens of GB over one connection; ASLR disabled or bypassed for code execution

The fix

It was fixed in nginx 1.30.7 and 1.31.9 by tracking queued DATA bytes in the WINDOW_UPDATE check, and administrators should update and restart.

How it was found

  1. Enable HTTP/2 on an nginx server running an affected version.
  2. Send a very large number of WINDOW_UPDATE frames on one connection to push the connection send window past its maximum.
  3. Queue DATA frames for a stream, then cancel the stream so the credit is refunded without a cap.
  4. Continue sending WINDOW_UPDATE frames so the window grows past the signed 64-bit boundary.
  5. Trigger DATA frame sizing so nginx builds a buffer with an invalid length and reaches the vulnerable copy.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

nginx is a very common web server program. These bugs are memory-safety mistakes: the program frees a piece of memory and then keeps using it, or miscounts a number so it writes outside the space it reserved. An attacker who sends specially crafted network traffic can make the server crash, and researchers say they can sometimes turn that into running their own commands on the machine.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.