// Güvenlik

An HTTP/2 vulnerability in nginx enables remote code execution

Version 1.31.9 of nginx fixed five critical vulnerabilities that could allow remote code execution over HTTP/2. All releases since version 1.9.5 are affected.

The nginx 1.31.9 release, published on November 18, 2026, fixes five critical vulnerabilities that security research team Xint dubbed “nginx2root.” The most dangerous is CVE-2026-123007: it enables unauthenticated remote code execution on servers with HTTP/2 enabled. Its NVD score is 9.2.

A decade-old bug

CVE-2026-123007 has been present in every official release since nginx 1.9.5, when HTTP/2 support was introduced in 2015. Every release up to 1.31.8 is affected; when Xint reviewed the main development branch on November 10, 2026, the vulnerability was still there. The issue stems from nginx incorrectly calculating how much response data it can send to an HTTP/2 client. An attacker can cancel queued responses and cause the next response to be copied with an incorrect length, corrupting memory and making code execution possible.

Impact and practical limitations

According to Rapid7’s published analysis, exploitation requires about 128 GB of HTTP/2 traffic. In a test environment, the attack against a 1.31.8 Docker image completed in 2.5 minutes; over a 1 Gbit/s connection, it takes 17 minutes. Below 300 Mbit/s, the attack is impractical because it exceeds nginx’s default one-hour connection timeout. The method also depends on a specific glibc memcpy implementation on x86-64. In other words, not every server will fall on the first attempt—but the vulnerability is still critical.

Xint combined the vulnerability with a separate local privilege-escalation flaw involving SCTP in the Linux kernel. In the chain it tested on AWS, it escaped a Docker container and gained root access on the host. The same 1.31.9 release fixes four more vulnerabilities: CVE-2026-123633 (HTTP/2 and upstream routing, present since 1.19.7), CVE-2026-123634 (resolver, proxy_pass, and mirror), CVE-2026-121810 (HTTP/3, present since 1.25.0), and CVE-2026-113425 (mail proxy).

How many servers are exposed?

As of November 10, 2026, a Shodan search for “product:nginx” returned 56.7 million devices. Of those, 11.94 million disclose their version, and 98.9% of devices in that group are running an affected version between 1.9.5 and 1.31.8. These figures are based only on the reported version string; devices with HTTP/2 disabled cannot be exploited through this vulnerability.

Patching and temporary mitigation

The permanent fix is to upgrade to nginx 1.31.9. After updating, you need to restart nginx or perform a supported live binary upgrade; simply reloading the configuration is not enough. If you use distribution packages, don’t rely on the version string alone. As in the Ubuntu example, the package version (1.18.0-6ubuntu14.22) indicates whether the patch has been backported; check your distribution’s security advisory.

If you can’t patch immediately, disabling HTTP/2 blocks CVE-2026-123007 and CVE-2026-123633. In nginx 1.25.1 and later, add http2 off; to each server block and remove the old http2 parameter from the listen lines. In older versions, change the listen 443 ssl http2; line to listen 443 ssl;. Then verify with nginx -t and nginx -s reload. This mitigation does not fix the other three vulnerabilities.

You can check whether the HTTP/2 module is compiled into your server with nginx -V 2>&1 | grep -- '--with-http_v2_module', and whether HTTP/2 is enabled by looking for http2 lines in the output of nginx -T. The vulnerability is not yet on CISA’s KEV list; nevertheless, the published technical analysis and working demo show why you shouldn’t delay patching.

Source: Xint · Rapid7

// JOIN THE CONVERSATION

Share your experience

Bir sorunun, farklı bir çözümün veya eklemek istediğin bir notun var mı? Giriş yapmadan da yazabilirsin.

// KEEP READING

One more note.

All posts ↗︎