Nginx2Shell: Affected NGINX Versions, Fixes and Workaround
TL;DR: Nginx2Shell is an informal name used for two flaws that affect NGINX before 1.30.7 and NGINX 1.31.0 to 1.31.8 when HTTP/2 is on. They are CVE-2026-123007 and CVE-2026-123633, disclosed 18 November 2026, and unfixed NGINX Plus is affected too. F5 warns of code execution if ASLR is disabled or bypassed, and Wiz reports bypassing it for both. Rapid7 published a proof of concept for CVE-2026-123007. Haxset's advice: upgrade to 1.30.7 or 1.31.9, and turn off HTTP/2 until you can.
How do the two Nginx2Shell flaws work?
Both flaws corrupt the memory of an NGINX worker process during HTTP/2 handling, but each has its own trigger. F5, nginx.org and the CVE records do not use the name Nginx2Shell.12
CVE-2026-123007 is an integer underflow in HTTP/2 flow control that leads to an out-of-bounds memory copy in the TLS send path. Wiz demonstrated code execution on NGINX serving ordinary static files, with no backend application.3
CVE-2026-123633 is a use-after-free. F5 says it needs NGINX to "use HTTP/2 for client connections and proxy client requests to a backend". The worker must also be "running low on worker_connections".1 No cited source says whether an attacker can force that state. Wiz reports code execution for this CVE too, so do not rely on the condition.3
F5 lists a worker crash, memory corruption, denial of service and code execution as possible impacts. It says attackers can "execute code on systems with Address Space Layout Randomization (ASLR) disabled or when the attacker can bypass ASLR". F5 scores both CVEs 8.1 under CVSS 3.1 and 9.2 under CVSS 4.0.1
Which NGINX versions are affected?
NGINX Open Source is affected from 1.9.5 through 1.30.6 and from 1.31.0 through 1.31.8. Versions 1.30.7 (stable) and 1.31.9 (mainline) fix both CVEs, and nginx.org names no fixed release for any older branch.2 Official 1.29.x, 1.28.x and older builds back to 1.9.5 therefore stay affected, unless your distribution backports the fix.
The two CVEs differ in start version, nginx.org severity rating and preconditions:12
| CVE | Open Source affected from | nginx.org severity | Needs, besides HTTP/2 |
|---|---|---|---|
| CVE-2026-123007 | 1.9.5 | Major | Nothing else |
| CVE-2026-123633 | 1.19.7 | Medium | Proxying to a backend, and a worker low on worker_connections |
On NGINX Plus, only 37.3.0.1 and 37.0.8.1 fix both CVEs. Releases R34 to R36 have no fix in F5's tables, and the CVE records list R33 onward as affected.1
How do I check whether my servers are affected?
Check three things on every running NGINX, including those inside containers: the version, the HTTP/2 module and the configuration.
nginx -v
nginx -V 2>&1 | grep -o -- '--with-http_v2_module'
nginx -T | grep 'http2'
The first prints the version, which alone does not show whether a distribution package is fixed. On 19 November, Ubuntu's CVE tracker listed 24.04 LTS as fixed in package 1.24.0-2ubuntu7.20, which keeps upstream version 1.24.0.
The HTTP/2 module is not built by default, so if the second command prints nothing, that binary cannot serve HTTP/2. The third prints the configuration. HTTP/2 is off by default, so it is on only where you see http2 on; (from 1.25.1) or a listen line with the http2 parameter.2 The grep also matches comments and other http2_ directives, so read each line.
A product that bundles NGINX needs its own vendor's fix. F5 has fixed NGINX Ingress Controller in 5.8.0 and 2026-lts-r11, but not in 4.x or 3.x. BIG-IP and F5OS are not affected.1
How do I fix Nginx2Shell?
Upgrade, because F5's advisories list no mitigation.1 Install NGINX 1.30.7 or 1.31.9, NGINX Plus 37.3.0.1 or 37.0.8.1, or your distribution's fixed package, starting with the servers the internet can reach. A configuration reload keeps the old binary running, so restart NGINX after the update.
At about 09:45 UTC on 19 November, the Ubuntu, Alpine and Amazon Linux security trackers listed fixed packages. Debian (bookworm, trixie and forky), RHEL 8, 9 and 10, and SUSE did not. On those systems, turn off HTTP/2 until a fixed package arrives.
What can I do if I cannot patch today?
Turn off HTTP/2 on every affected server, which is the workaround Wiz recommends until you can upgrade.3 The form depends on the version:
- On 1.25.1 and later, change every
http2 on;tohttp2 off;and remove thehttp2parameter from everylistendirective. - On 1.9.5 to 1.25.0, remove the
http2parameter from everylistendirective, because thehttp2directive appeared only in 1.25.1.2
Test application compatibility first, as Wiz advises. Run nginx -t to test the configuration. Then reload NGINX. Old workers keep serving open connections until those close, so confirm that they have exited. Wiz also advises turning HTTP/2 back on after the upgrade.3
The workaround covers only these two CVEs. Only the upgrade fixes the eight others in the same releases, among them a use-after-free in the mail proxy module that nginx.org rates major.2
A CDN or WAF in front of NGINX is not a fix: Wiz says one that terminates HTTP/2 may mitigate parts of an exploit, depending on the implementation.3 Rapid7 says its proof of concept will likely fail through a proxy.4
Is Nginx2Shell being exploited?
Neither CVE was in CISA's Known Exploited Vulnerabilities catalog at 09:39 UTC on 19 November 2026. Rapid7 published a proof of concept for CVE-2026-123007 on 18 November. It achieved unauthenticated remote code execution against a Docker image of NGINX 1.31.8 with HTTP/2 and TLS.4
Rapid7 lists limits: its proof of concept sends about 128 GB of HTTP/2 data. Below about 300 Mbit/s, that takes longer than NGINX's default one-hour connection lifetime. It depends on a glibc memory-copy routine selected on CPUs with AVX-512 features. Rapid7 calls it suitable only against a freshly started local container. Where it succeeds, its code runs with the worker's permissions, and Rapid7 has not established execution as root.4
Those limits apply to Rapid7's proof of concept. Wiz says it confirmed code execution with an ASLR bypass for both CVEs. Wiz "will not be releasing these exploits at this time".3
What is still unknown?
On 19 November 2026, no cited source said whether CVE-2026-123007 can be exploited over cleartext HTTP/2. Wiz and Rapid7 both exploited it over TLS, whose send path holds the faulty memory copy.34 F5's description covers any configuration that uses HTTP/2, so treat cleartext HTTP/2 listeners as affected.1
How Haxset can help
Find your internet-facing hosts with Haxset: contact us. Those hosts are where patching starts, and Haxset's AI-Driven ASM keeps an inventory of them. It reports what changed between runs, such as a new server that appeared since the last run. Haxset does not keep the prompts its AI models process and does not train models on them. It stores only scan metadata and scan results.
Related research
- PHP2Shell (CVE-2026-109618, CVE-2026-109619): What to Patch
- Java4Shell (CVE-2026-114938): Who Is Affected and What to Do
References
-
F5, security advisories K000163926: NGINX ngx_http_v2_module vulnerability CVE-2026-123007 and K000163928: NGINX ngx_http_v2_module vulnerability CVE-2026-123633, 18 November 2026 (K000163928 updated 19 November 2026). ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8
-
nginx.org, nginx security advisories (entries for the 1.30.7 and 1.31.9 releases) and the ngx_http_v2_module documentation. ↩ ↩2 ↩3 ↩4 ↩5 ↩6
-
Nir Ohfeld and Tomer Schwartz, Wiz Research, Unauthenticated Remote Code Execution in NGINX: CVE-2026-123633 and CVE-2026-123007, Wiz blog, 18 November 2026. ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
-
Stephen Fewer, Rapid7, CVE-2026-123007: Critical NGINX HTTP/2 Integer Underflow Leads to RCE (FIXED), Rapid7 blog, 18 November 2026, and its proof-of-concept repository. ↩ ↩2 ↩3 ↩4
Interested in how this research applies to your organization?
Get in touch
