Back to Article List

Critical nginx HTTP/2 flaw CVE-2026-123007

Vulnerabilitate critică nginx HTTP/2 CVE-2026-123007 - Critical nginx HTTP/2 flaw CVE-2026-123007

A flaw in nginx's HTTP/2 module, CVE-2026-123007, published on 18 November 2026, lets an attacker crash the server's worker processes and, in some conditions, run code on the machine. Anyone running nginx with HTTP/2 switched on should update now.

What is affected

The flaw sits in ngx_http_v2_module, the part of nginx that handles HTTP/2. According to the CVE record, certain traffic can push the flow control window past its allowed limit. That leads to a heap buffer overflow, which usually ends with an nginx worker crashing. On systems where Address Space Layout Randomization (ASLR) is disabled, or where an attacker can get around it, the overflow can be turned into remote code execution.

The record rates it 8.1 (High) under CVSS 3.1 and 9.2 (Critical) under CVSS 4.0. No login or user interaction is needed, though the attack is rated as high complexity. It affects the data plane only, meaning the traffic nginx serves, not any management interface.

The affected versions listed in the record:

ProductAffectedFixed in
NGINX Open Source 1.31.x1.31.0 up to 1.31.91.31.9
NGINX Open Source 1.30.x1.30.0 up to 1.30.71.30.7
Older NGINX Open Sourcefrom 1.9.5no fix listed; move to a fixed branch
NGINX Plus 37.1.x and later37.1.0 up to 37.3.0.137.3.0.1
NGINX Plus 37.0.x37.0.0 up to 37.0.8.137.0.8.1

The record also notes that versions past their end of technical support were not evaluated, so an old, unsupported nginx should be treated as vulnerable.

Who needs to act

You need to act if all of these are true:

  • nginx is running somewhere you control: your own server, a reverse proxy in front of an app, or a container image that bundles nginx.
  • HTTP/2 is enabled. Most HTTPS sites set up in recent years have it on, because it is the usual recommendation.
  • Your version is in the affected ranges above, or your distribution has not yet shipped its patched package.

A quick way to see whether HTTP/2 is on is to search your configuration:

sudo grep -rn "http2" /etc/nginx/

If you are on shared hosting, the provider runs the web server, so there is nothing for you to install. It is still fair to ask them whether their servers are updated. If an agency or freelancer looks after your server, forward them the CVE id.

Updating nginx from your package manager

Most people installed nginx through their system's package manager, so that is where the fix comes from. If your site runs on a VPS or another server where you have root access, the update is yours to run.

On Debian or Ubuntu:

sudo apt update && sudo apt install --only-upgrade nginx

On Rocky Linux, AlmaLinux, Fedora or similar:

sudo dnf upgrade nginx

Then test the configuration and restart, so the old processes are replaced with the new binary:

sudo nginx -t
sudo systemctl restart nginx

One thing that trips people up: distributions often backport security fixes into an older version number. Your package might still show an older version number and be patched. Check your distribution's security tracker for CVE-2026-123007 to see which package release carries the fix. If you use the official nginx.org packages, aim for 1.30.7 or 1.31.9 or later. For Docker images, pull a fixed image and recreate the container; updating the host does not touch nginx inside a container.

Checking the running version

Let's confirm the fix is actually live, not just installed.

nginx -v

This prints the nginx version. For distribution packages, also check the package release, since that is where backported fixes show up:

dpkg -l nginx      # Debian, Ubuntu
rpm -q nginx       # RHEL family

Compare that against the fixed release in your distribution's tracker. Finally, make sure nginx was restarted after the update:

systemctl status nginx

The "Active: since" time should be after you ran the upgrade. If it is older, the old binary is still serving traffic.

Temporary steps if you cannot update yet

If a fixed package is not available for your system yet, or you cannot restart right now, two steps reduce the risk.

Turn off HTTP/2. The flaw is in the HTTP/2 module, so configurations without HTTP/2 are not exposed to it. Depending on your nginx version, HTTP/2 is enabled either by the http2 parameter on a listen line (listen 443 ssl http2;) or by a separate http2 on; line. Remove the parameter or change the line to http2 off;, then run sudo nginx -t and reload. Visitors fall back to HTTP/1.1; the site keeps working, just with slightly less efficient connections.

Make sure ASLR is on. The record says code execution needs ASLR to be disabled or bypassed. Check it with:

cat /proc/sys/kernel/randomize_va_space

A value of 2 means full randomization. This does not stop the crash, so treat it as a safety net, not a fix. Plan the real update as soon as your distribution ships it, and switch HTTP/2 back on afterwards.

FAQ

How do I check my nginx version?

Run nginx -v on the server to see the version number. If you installed nginx from your distribution, also run dpkg -l nginx (Debian, Ubuntu) or rpm -q nginx (RHEL family), because patched packages can keep an older version number, and compare the result with your distribution's security tracker for CVE-2026-123007.

Do I need to disable HTTP/2?

Not if you can update to a fixed release, which is the proper fix. Disabling HTTP/2 is a temporary measure for servers that cannot be updated yet: the flaw is in the HTTP/2 module, so turning it off removes that exposure until the patched package is installed, after which you can turn it back on.