Security
BlogsSecurity

Unauthenticated Remote Code Execution in NGINX: CVE-2026-123633 and CVE-2026-123007

Sandeep
Founder
A black and white photo of a calendar.
Updated:
November 19, 2026
•
A black and white photo of a clock.
12
mins read
Written by
Sandeep
, Reviewed by
Sandeep
A black and white photo of a calendar.
Updated:
November 19, 2026
•
A black and white photo of a clock.
12
mins read
Unauthenticated Remote Code Execution in NGINX: CVE-2026-123633 and CVE-2026-123007
On this page
Share

On 18 November 2026, F5 disclosed two critical vulnerabilities in NGINX’s HTTP/2 module (ngx_http_v2_module), both allowing unauthenticated remote code execution. CVE-2026-123633 is a use-after-free in connection management; CVE-2026-123007 is an integer underflow in HTTP/2 flow control. Multiple independent teams, including Wiz, Rapid7, Xint, Ikotas Labs and Metnir, found them in parallel, and Rapid7 published a working proof-of-concept for CVE-2026-123007 on disclosure day. F5 scores both 9.2 (Critical) on CVSS 4.0. Any unauthenticated attacker who can reach an affected server over HTTP/2 can crash a worker, and under the right conditions run code as the worker process.

The two bugs differ in what it takes to reach them. CVE-2026-123007 needs only HTTP/2 to be enabled, and has been present since NGINX 1.9.5 in 2015, which is more than ten years. CVE-2026-123633 additionally needs NGINX to proxy requests upstream and a worker to be low on connection slots, and dates to 1.19.7 in 2021. Both are data-plane issues; F5 says the control plane is not exposed.

Key Takeaways

  • CVE-2026-123007 (integer underflow): an HTTP/2 flow-control miscalculation leads to an out-of-bounds memory write. Trigger: HTTP/2 enabled, nothing else required. Present since NGINX 1.9.5 (2015). A public PoC exists.
  • CVE-2026-123633 (use-after-free): a worker reuses freed connection memory. Trigger: HTTP/2 enabled, NGINX proxies upstream, and a worker is low on worker_connections. Present since NGINX 1.19.7 (2021).
  • Impact (both): an unauthenticated worker-process crash (DoS) for anyone; remote code execution where ASLR is disabled or can be bypassed. Code execution gives worker-process privileges, not root, on its own.
  • Fixed in: NGINX Open Source 1.30.7 (stable) and 1.31.9 (mainline) for both; NGINX Plus 37.0.7.1 / 37.2.0.1 for 123633 and 37.0.8.1 / 37.3.0.1 for 123007.
  • Stopgap: no config workaround removes either while HTTP/2 stays on; disabling HTTP/2 closes both.

This post covers both bugs: how each one works, which builds are affected, how exploitation works, and what to do now.

CVE-2026-123633: the use-after-free

CVE-2026-123633 is a use-after-free in how NGINX tracks reusable HTTP/2 connections. Memory tied to a connection is released while a request on that connection is still being processed, and the worker then keeps reading and writing freed memory. In C, that is both a reliable crash and, with enough control over what gets allocated into the freed slot, a path to hijacking execution.

As per the discoverers’ analysis, the sequence is roughly this:

  1. A client opens an HTTP/2 connection and sends an incomplete HEADERS frame, that is, enough to start a request but not finish it. Because the connection looks idle, NGINX adds it to the list of connections it considers safe to reuse or close.
  2. The rest of the frames arrive and request processing begins, but the connection is never removed from that reusable list. NGINX now believes a busy connection is free.
  3. When NGINX needs a connection slot to proxy the request upstream and the worker is low on free worker_connections, it starts reclaiming connections from the reusable list, and can pick this one, which is still in use.
  4. Before closing it, NGINX tries to emit a GOAWAY frame. If that emission fails (for example, because an internal frame limit is hit), the connection’s memory is freed anyway. The original request handler keeps running against that now-freed memory.

The result is a worker using memory it no longer owns. The flaw sits in connection management, so it does not depend on an exotic request body, just on precise timing and a server configuration that reuses connections under pressure.

CVE-2026-123007: the integer underflow

CVE-2026-123007 is a flaw in HTTP/2 flow control, the mechanism each side uses to tell the other how much data it is ready to receive. NGINX keeps a per-connection “send window” counter. When a client cancels a stream that still has queued response data, NGINX refunds those unsent bytes back to the connection’s send window, but it does not check the result against HTTP/2’s maximum allowed window size.

If the client has already raised its window near the limit, that unchecked refund pushes the counter past the maximum and it underflows, wrapping to a wildly wrong value. NGINX then treats the connection as able to accept a huge amount of data and performs a memory copy sized by the corrupted counter, writing out of bounds on the heap. The usual immediate result is a worker segmentation fault; with careful control of what surrounds the target buffer, it becomes a write primitive for code execution.

Two things make this one more dangerous than its sibling. First, the precondition is minimal: HTTP/2 simply has to be enabled. There is no requirement to proxy upstream and no need to starve connection slots. Second, it is old, as the flawed accounting dates to NGINX 1.9.5 in 2015, so it is baked into more than a decade of releases.

The practical cost to the attacker is volume, not privilege. Rapid7’s working exploit against a stock NGINX 1.31.8 container with HTTP/2 and TLS drove the underflow to code execution, but it required roughly 128 GB of HTTP/2 traffic over a single connection, most of it control frames carrying no payload, and leaned on a specific AVX-512-optimised memory-copy routine in glibc on x86-64. Other exploitation methods may exist; that is simply the one demonstrated publicly.

Affected versions

Both bugs cover wide version ranges, and the two ranges differ. CVE-2026-123007 reaches back to 1.9.5 (2015); CVE-2026-123633 to 1.19.7 (2021). One caveat worth stressing: F5 lists NGINX Open Source 1.31.8 as affected by both, so a build newer than October 2026’s security release is not automatically safe, it needs the specific November fix.

CVEProductAffected versionsFirst fixed version
123633NGINX Open Source1.19.7 to 1.30.6 and 1.31.0 to 1.31.81.30.7 (stable), 1.31.9 (mainline)
123633NGINX Plus 37.x37.0.0 to 37.0.6.1 and 37.1.0 to 37.2.037.0.7.1 and 37.2.0.1
123007NGINX Open Source1.9.5 to 1.30.6 and 1.31.0 to 1.31.81.30.7 (stable), 1.31.9 (mainline)
123007NGINX Plus 37.x37.0.0 to 37.0.7.1 and 37.1.0 to 37.2.0.137.0.8.1 and 37.3.0.1
BothNGINX Plus R-seriesR34 to R36No fix listed for these releases

Because the vulnerable code is the base NGINX HTTP/2 module, anything that compiles NGINX in is in scope when it serves HTTP/2. For 123007 that alone is enough; for 123633 it must also proxy upstream. F5 has published affected ranges for NGINX App Protect WAF (4.x and 5.x), NGINX App Protect DoS, NGINX Gateway Fabric (1.5.0 to 1.6.2), and NGINX Ingress Controller (3.x, 4.x and the 2026-LTS line, fixed in 2026-lts-r11). The separate community project ingress-nginx retired in March 2026 and will not ship a fix, so clusters still running it need to migrate rather than patch. F5 states both issues are in the data plane only; the control plane is not exposed.

To check a running build: nginx -v reports the version, and nginx -V 2>&1 | grep -o with-http_v2_module confirms HTTP/2 is compiled in. OS-vendor packages (AlmaLinux, Debian, RHEL and others) carry their own backported fixes, so match against your distribution’s advisory rather than the upstream version string alone.

How they are exploited

CVE-2026-123633: slot starvation plus a reclaim race

Triggering the bug requires the attacker to create the condition that drives the faulty reclaim, which is a worker low on connection slots. Public analyses describe doing this from outside, with no credentials.

The exposure conditions are specific, and all must hold:

  • NGINX accepts HTTP/2 for client connections (for example, listen 443 ssl; http2 on;, or the older listen 443 ssl http2;).
  • It proxies requests upstream. proxy_pass is the demonstrated case. Because grpc_pass, fastcgi_pass and other upstream modules share the same connection-acquisition code, they should be treated as affected until proven otherwise.
  • A worker is low on worker_connections at the moment the request is proxied.

To manufacture the last condition, a researcher occupied connection slots through a separate HTTP/1 port, starving the worker from the outside so the vulnerable reclaim path runs on demand rather than by luck. With slots scarce, the attacker sends the incomplete-then-completed HTTP/2 request that lands on a connection NGINX wrongly reclaims.

The outcome depends on the target. A crash of the worker, that is a denial of service, is available to any unauthenticated attacker who can reach the HTTP/2 listener. Full remote code execution is harder: it needs ASLR to be disabled or bypassable, and even then it grants the worker process’s privileges, typically the unprivileged nginx user, not root. The widely reported “NGINX-to-root” chains combine this class of bug with a separate Linux kernel vulnerability for privilege escalation; CVE-2026-123633 alone does not give root. As of this writing the CVE is not in CISA’s KEV catalogue and CISA’s automated assessment lists exploitation as “none”, but independent teams have confirmed the primitives and demonstrated ASLR-bypassing execution in lab conditions, so treat a working exploit as a question of when, not if.

No public PoC is reproduced here. The practical takeaway for defenders is the shape of the attack: unauthenticated HTTP/2 traffic, a proxying config, and deliberate connection-slot pressure.

CVE-2026-123007: a high-volume flow-control attack

This one needs no proxying and no slot starvation. The attacker opens a single HTTP/2 connection, raises the connection’s flow-control window towards the maximum with WINDOW_UPDATE frames, then repeatedly requests data and cancels the streams (RST_STREAM) so that queued, unsent bytes are refunded into the already-near-maximum window. Each refund that skips the bounds check nudges the counter past the limit until it underflows, after which NGINX performs an oversized, out-of-bounds copy.

It is unauthenticated and reachable by anyone who can speak HTTP/2 to the server, but it is not cheap. Rapid7’s public proof-of-concept, released on disclosure day against a stock NGINX 1.31.8 container, needed about 128 GB of HTTP/2 traffic over one connection to drive the underflow to reliable code execution, nearly all of it control frames with no payload. Its exploit also depended on an AVX-512-optimised memcpy variant in glibc on x86-64, so the exact technique is hardware-specific even though the bug is not. The volume requirement makes the attack noisy and slow, which buys defenders some time, but a DoS crash is far cheaper than full RCE, and the bug is reachable on any HTTP/2 listener.

No exploit code is reproduced here. The defender’s takeaway is that for 123007, any internet-facing HTTP/2 endpoint is in scope, and a sudden flood of HTTP/2 control frames on a single connection is the signature to watch for.

How to mitigate

Patch, this is the real fix. Upgrade to a build that contains the November 2026 fix:

  • NGINX Open Source: 1.30.7 (stable) or 1.31.9 (mainline).
  • NGINX Plus: 37.0.7.1 or 37.2.0.1.
  • OS packages: install your distribution’s updated nginx package (AlmaLinux, Debian, RHEL and others shipped fixes on or around 18 November 2026).
  • Containers and Kubernetes: rebuild or repull images, and move off the retired community ingress-nginx to a maintained controller that ships fixed NGINX. Reload after upgrading, that is nginx -s reload or a rolling restart, because running workers keep the old code until they recycle.

The NGINX Open Source fixes (1.30.7 / 1.31.9) close both CVEs at once. On NGINX Plus the fixed builds differ between the two bugs: 37.0.7.1 / 37.2.0.1 fix CVE-2026-123633, while CVE-2026-123007 is not fixed until 37.0.8.1 / 37.3.0.1, so choose the higher build that covers both rather than stopping at the first fix.

If you cannot patch immediately, the only reliable interim mitigation is to disable HTTP/2. F5 lists no configuration workaround that neutralises the bug while keeping HTTP/2 on. Turning it off removes the attack surface:

  • Modern syntax: set http2 off; on the relevant server blocks (or remove the directive, since it is off by default).
  • Older syntax: drop http2 from the listen line, for example listen 443 ssl; instead of listen 443 ssl http2;.
  • Reload NGINX and confirm with curl -I --http2 https://your-host/ that the server no longer negotiates HTTP/2.

Disabling HTTP/2 has a performance cost for clients that benefit from multiplexing, so treat it as a stopgap, not a destination. Raising worker_connections may make 123633’s reclaim path harder to reach, but it does nothing for 123007 and does not fix either bug, so do not rely on it. HTTP/3 is governed by a separate CVE (CVE-2026-121810) with its own fixes, so disabling HTTP/2 does not cover QUIC deployments.

Detection

Neither bug has a clean network signature, as both arrive as ordinary-looking HTTP/2 frames. Watch instead for the symptoms each one produces:

  • Worker crashes and respawns. Repeated worker process ... exited on signal 11 (SIGSEGV) lines in the NGINX error log, or workers cycling in process listings, are the clearest tell. Each failed exploitation attempt tends to crash a worker.
  • Connection-slot pressure. worker_connections are not enough warnings in the error log, especially in bursts or alongside the crashes above, match the precondition the attacker needs.
  • High-volume HTTP/2 control-frame floods (123007). A single connection carrying an enormous volume of WINDOW_UPDATE and RST_STREAM frames with little or no data payload fits the flow-control attack. Per-connection frame-rate and byte-count anomalies are the tell.
  • Unusual HTTP/2 and HTTP/1 pairing from one source. A client opening many connections on a plain HTTP/1 port while also driving HTTP/2 traffic fits the slot-starvation technique.
  • Core dumps appearing in the NGINX working directory on an internet-facing proxy should be treated as a possible incident, preserved, and investigated rather than deleted.

None of these proves exploitation on its own, and their absence does not prove safety. Pair them with an inventory check, that is, which of your NGINX instances serve HTTP/2 and proxy upstream, so alerts are scoped to the hosts that are actually exposed.

Why these are easy to miss

These are bugs that version scanners both over-report and under-report. The affected ranges are huge, a decade of releases for 123007, so a naive scan flags almost every NGINX you run, drowning the signal. Yet the hosts that actually matter depend on configuration a CVE feed cannot see: for 123007, any HTTP/2 listener; for 123633, one that also proxies upstream and can be pushed into connection pressure. A feed cannot read your nginx.conf, your upstream topology, or whether ASLR is enabled on the box. And because NGINX is compiled into so many appliances, ingress controllers and vendor images, the instance putting you at risk is often one your OS patching never touches.

The questions that decide real risk are attacker questions: Which of my internet-facing endpoints terminate HTTP/2 and proxy to a backend? Which run an affected build? Could an attacker starve a worker’s connections from outside? If a worker is compromised, what sits behind it, and is there a kernel bug on the same host that turns worker access into root?

Find your real exposure with AppSecure

Patching these CVEs is the easy part. Knowing where they actually put you at risk, across every NGINX instance you own, including the ones bundled inside appliances and controllers, is the hard part, and it is what AppSecure’s Agentic Penetration Testing Platform is built for. AI agents that think like an attacker, guided by human security experts, test continuously across your attack surface, your business logic and your applications:

  • Attack surface: discover every internet-facing NGINX, reverse proxy and ingress controller you run, including the forgotten edge node and the vendor appliance with NGINX compiled in.
  • Applications: identify which endpoints terminate HTTP/2 (and which also proxy upstream), and validate whether the exposure conditions for each CVE actually line up.
  • Business impact: map what sits behind each vulnerable proxy, so you fix the instances that expose real data and systems first.
  • Continuous retesting: confirm the patch took effect on every node and stay covered as new infrastructure, releases and CVEs arrive.

These will not be the last critical bugs in software you did not know you were running. Book an AppSecure agentic pentest and find your exposure before an attacker does.

Frequently Asked Questions

1. What are CVE-2026-123633 and CVE-2026-123007?

They are two critical vulnerabilities in NGINX’s HTTP/2 module (ngx_http_v2_module), both disclosed on 18 November 2026 and both allowing unauthenticated remote code execution. CVE-2026-123633 is a use-after-free in connection management, and CVE-2026-123007 is an integer underflow in HTTP/2 flow control. F5 rates both 9.2 (Critical) on CVSS 4.0.

2. Which NGINX versions are affected?

CVE-2026-123007 affects NGINX Open Source 1.9.5 to 1.30.6 and 1.31.0 to 1.31.8; CVE-2026-123633 affects 1.19.7 to 1.30.6 and 1.31.0 to 1.31.8. Both are fixed in 1.30.7 (stable) and 1.31.9 (mainline). NGINX Plus has separate fixed builds for each bug. A build released after October 2026 is not automatically safe, since 1.31.8 is affected by both.

3. Am I vulnerable if I only use HTTP/1.1?

No. Both bugs are in the HTTP/2 code path, so an NGINX server that does not accept HTTP/2 from clients is not exposed to either. That is also why disabling HTTP/2 is the recommended stopgap when you cannot patch at once.

4. Can these bugs give an attacker root access?

Not on their own. Successful code execution runs with the privileges of the NGINX worker process, which is normally an unprivileged account. The “NGINX-to-root” results reported publicly chained one of these bugs with a separate Linux kernel vulnerability to escalate to root.

5. How do I mitigate if I cannot patch immediately?

Disable HTTP/2. Set http2 off; on the relevant server blocks, or drop http2 from the listen line, then reload NGINX. There is no configuration workaround that keeps HTTP/2 enabled while removing the flaw, and raising worker_connections does not fix either bug.

6. Has either vulnerability been exploited in the wild?

As of this writing, neither CVE was listed in CISA’s KEV catalogue, and CISA’s automated assessment listed exploitation as “none”. However, Rapid7 released a working proof-of-concept for CVE-2026-123007 on disclosure day, and several teams have confirmed code execution in lab conditions, so you should patch on the assumption that in-the-wild attacks will follow.

Sandeep

Founder & CEO @ Appsecure Security

Protect Your Business with Hacker-Focused Approach.

Loved & trusted by Security Conscious Companies across the world.
Stats

The Most Trusted Name In Security

450+
Companies Secured
7.5M $
Bounties Saved
4800+
Applications Secured
168K+
Bugs Identified
Accreditations We Have Earned
crest logo white
AICPA SOC 2 badge logo

Protect Your Business with Hacker-Focused Approach.