nginx HTTP/2 heap overflow: upgrade or switch HTTP/2 off

On 18 November 2026 nginx fixed CVE-2026-123007, a heap buffer overflow in its HTTP/2 code. The press calls it "NGINX2Root". It affects nginx 1.9.5 through 1.31.8 and NGINX Plus. If your site serves HTTPS with HTTP/2, which is common, check your version this week.

What happened

HTTP/2 uses a flow-control window to limit how much data a peer may send. In the affected versions that window can grow past its allowed limit. nginx then writes past the end of a heap buffer. Usually the nginx worker process crashes. On systems with ASLR disabled, or when an attacker can get around ASLR, it can lead to code execution.

F5, which maintains nginx, rates CVE-2026-123007 9.2 under CVSS 4.0 and 8.1 under CVSS 3.1. It is not in the CISA list of exploited vulnerabilities, and no exploitation in the wild has been confirmed. Researchers at Wiz built working exploits in their lab but have not published them.

The same release fixes CVE-2026-123633, a use-after-free in HTTP/2 when nginx acts as a proxy. It affects 1.19.7 through 1.31.8 and is also rated 9.2. About eight further flaws are fixed as well.

Who is affected

ProductVulnerableFixed version
nginx mainline1.9.5 to 1.31.81.31.9 or later
nginx stable1.9.5 to 1.30.61.30.7 or later
NGINX PlusYes37.0.8.1 or 37.3.0.1 (check F5's advisory)

Only listeners with HTTP/2 enabled are exposed. Most HTTPS setups enable it, often through a hosting panel or a configuration template, so do not assume it is off.

How to check your server

Check the version, then look for HTTP/2 in the full loaded configuration, including included files.

nginx -v
nginx -T 2>/dev/null | grep -nE 'http2|listen .*ssl'

If you use the nginx packages from Debian, Ubuntu or Red Hat, the version number may not change after the fix. Distributions often backport security fixes to the version they ship. Check your distribution's security tracker for CVE-2026-123007 to see which package release contains it.

How to fix it

  • Upgrade to nginx 1.31.9 (mainline) or 1.30.7 (stable), or to the package release your distribution lists as fixed.
  • For NGINX Plus, install the fixed release named in F5's advisory.
  • Restart nginx after the upgrade, or run a binary upgrade, so that no old worker keeps running.
  • Run nginx -v again and confirm the new version is the one serving traffic.
  • Check container images and appliances that bundle nginx. They need their own update.

If you cannot upgrade today

Wiz suggests turning HTTP/2 off until you can upgrade. Browsers fall back to HTTP/1.1, so the site keeps working, though it may load a little slower.

  • On nginx 1.25.1 and later: set http2 off;.
  • On older versions: remove http2 from the listen lines.
  • Test the configuration with nginx -t, then reload nginx.

What to look for

Repeated worker crashes are the clearest sign. Look in the nginx error log and the system journal for messages that a worker process exited on signal 11, especially in bursts. If you see them on a vulnerable version, also check for unknown processes running as the nginx user and unexpected outbound connections. A Linux server audit covers web server configuration, patch level and these signs.

Questions

My site sits behind a CDN. Am I safe?

Not necessarily. Your server is exposed if any of its listeners accept HTTP/2, from the CDN or from direct connections. Check your own configuration and upgrade anyway.

Does turning HTTP/2 off break my site?

No. Browsers and clients fall back to HTTP/1.1. Pages may load a little slower. Turn HTTP/2 back on after you upgrade.

Is anyone exploiting this yet?

No exploitation in the wild has been confirmed so far, and it is not in the CISA catalog. Lab exploits exist, so plan the upgrade now rather than wait.

This article is written for defenders and contains no exploit code. It reflects the vendor advisories on the date above; always check the vendor advisory for the latest fixed versions.

Not sure whether you are affected?

We check your servers and applications for this vulnerability and others like it, and give you a clear report with fixes.

Request an assessmentLinux Server Security Audit