Mastodon Mastodon Mastodon Mastodon

Decade‑old NGINX vulnerability allows unauthenticated HTTP/2 remote code execution (nginx2root)

Photo of author

CyberSecureFox Editorial Team

Published:

A critical vulnerability in NGINX — CVE-2026-123007, dubbed nginx2root — has been fixed. An Integer Underflow bug (CWE-191) in the ngx_http_v2_module allows an unauthenticated attacker to execute arbitrary code on a server with HTTP/2 enabled. The vulnerability has been present in the code since version 1.9.5, released in September 2015 — for more than ten years. Fixes are included in versions 1.31.9 (mainline) and 1.30.7 (stable), published on 18 November 2026. Administrators of servers with HTTP/2 enabled must update and perform a full NGINX restart as soon as possible.

Technical details of the vulnerability

According to the F5 advisory, CVE-2026-123007 is rated at 9.2 under CVSS 4.0 (Critical) and 8.1 under CVSS 3.1 (High). The vulnerability affects HTTP/2 flow-control handling and is classified as an integer underflow. Exploitation results in code execution in the context of an NGINX worker process.

Affected versions:

  • NGINX Open Source: all versions from 1.9.5 through 1.31.8 inclusive
  • NGINX Plus: builds 37.1.0–37.2.0.1 and 37.0.0–37.0.7.1, as well as branches R34–R36

Fixed versions:

  • NGINX Open Source: 1.31.9 (mainline) and 1.30.7 (stable)
  • NGINX Plus: 37.3.0.1 and 37.0.8.1 for the respective branches
  • For NGINX Plus R34–R36, fixes have not yet been announced

It is important to distinguish levels of compromise. CVE-2026-123007 by itself provides code execution with the privileges of an NGINX worker process — not root. According to Xint researchers, obtaining root access and breaking out of a Docker container was only possible by chaining this with a separate vulnerability in the Linux kernel SCTP subsystem. This is a fundamental difference: without an additional privilege escalation exploit, the attacker is limited to the rights of the worker process.

Exploitation demonstrations

Three independent research groups have confirmed the possibility of remote code execution. According to Wiz, researchers were able to bypass ASLR and achieve code execution on official NGINX 1.31.7 and 1.31.8 builds. Specialists from Xint report successful exploitation on AWS, GCP and Azure servers, including via public IP addresses, with only access to the HTTP/2 port. Rapid7 has published a PoC exploit on GitHub designed to demonstrate an attack against a freshly launched Docker container on the same host.

At the same time, neither the vendor nor the researchers have observed exploitation in real-world attacks. The vulnerability is absent from the CISA KEV catalog.

The Rapid7 demonstration revealed significant practical constraints: the attack requires transmitting about 128 GB of HTTP/2 traffic and took two and a half minutes. If the network bandwidth is below roughly 300 Mbit/s, the transfer will exceed the standard one-hour keep-alive limit of an NGINX connection, and the exploit will fail. In addition, the method depends on a specific memcpy implementation in glibc, which is selected on x86-64 processors that support the avx512f and avx512vl instruction sets. These limitations describe the demonstrated strategy — future exploits may have different characteristics.

The five vulnerabilities in the NGINX2Root set

In addition to CVE-2026-123007, the same updates fix four more vulnerabilities that are part of the NGINX2Root set. All five are rated 9.2 under CVSS 4.0 and can lead to remote code execution under certain configurations:

Each vulnerability is exploitable only under certain configurations — from enabling HTTP/2 or HTTP/3 to using NGINX as a mail proxy. Disabling HTTP/2 blocks exploitation paths for CVE-2026-123007 and CVE-2026-123633 but does not protect against the other three vulnerabilities, which require separate measures: for CVE-2026-121810 you must disable HTTP/3; for CVE-2026-123634 you should avoid SSI, the mirror directive and constructing upstream server names from variables; for CVE-2026-113425 you should restrict access to mail listeners to trusted networks.

Response recommendations

Update priority should be given to NGINX servers with HTTP/2 enabled and accessible from the internet, including recent installations of version 1.31.8 — the vulnerable code is present up to and including this version. You can check for HTTP/2 support with the command openssl s_client -alpn h2 — the output will contain the line ALPN protocol: h2 if the protocol is accepted. Make sure you are checking the NGINX server directly, not via a CDN.

Recommended steps:

  1. Update NGINX to 1.31.9 or 1.30.7 (Open Source) or to 37.3.0.1 / 37.0.8.1 (Plus). Official Docker images with tags 1.31.9 and 1.30.7 are already available.
  2. Perform a full restart of NGINX or a live binary upgrade. A simple reload is not sufficient: the old binary will continue running, and existing connections will remain on the old worker processes.
  3. Check distribution packages. According to Ubuntu and Debian, fixed packages are already available for supported releases. The distribution package version may differ from what nginx -v shows — refer to your distribution’s advisory.
  4. If you cannot update immediately, temporarily disable HTTP/2: on NGINX 1.25.1+ set http2 off; in each server block and remove http2 from listen directives; on earlier versions, remove http2 from listen. After making the changes, restart NGINX and re-check with openssl.
  5. Block loading of the SCTP module on hosts that do not use this protocol by adding the line install sctp /bin/false to a .conf file in the /etc/modprobe.d/ directory. This reduces the risk of privilege escalation via the related kernel vulnerability.

Detecting exploitation attempts

The high volume of traffic required for the demonstrated exploit creates opportunities for detection. According to Xint and Rapid7, you should monitor:

  • Long-lived HTTP/2 connections with a large volume of incoming traffic but few logged requests
  • NGINX worker processes spawning unexpected child processes
  • Unusual worker process crashes or the appearance of core dumps
  • Uncharacteristic outbound connections or DNS queries originating from NGINX processes

Clean access logs do not rule out an attack: HTTP/2 control frames do not appear in the access log as regular requests. None of the listed signs alone is proof of compromise, but taken together they are grounds for investigation.

Given the public availability of a PoC exploit, the 9.2 CVSS 4.0 rating, and the independently confirmed ability of unauthenticated remote code execution by three research groups, updating NGINX to versions 1.31.9 or 1.30.7 followed by a full restart is a top-priority action for any infrastructure using NGINX with HTTP/2. Organizations using NGINX Plus R34–R36, for which a patch has not yet been released, should immediately disable HTTP/2 as a temporary measure and monitor the F5 advisory for updates.


CyberSecureFox Editorial Team

The CyberSecureFox Editorial Team covers cybersecurity news, vulnerabilities, malware campaigns, ransomware activity, AI security, cloud security, and vendor security advisories. Articles are prepared using official advisories, CVE/NVD data, CISA alerts, vendor publications, and public research reports. Content is reviewed before publication and updated when new information becomes available.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.