> ## Content Index
> Fetch the complete content index at: https://f4n6.co.uk/llms.txt
> Use this file to discover other available public pages before exploring further.

# nginx HTTP/2 integer underflow CVE-2026-123007 enables RCE
- URL: https://f4n6.co.uk/security-feed/nginx-http-2-integer-underflow-cve-2026-123007-enables-rce/
- Published: 2026-11-20T01:05:40.000Z
- Updated: 2026-11-20T01:05:40.000Z
- Author: Jeff Davies
- Tags: CVE-2026-123007, CVE-2026-123633

## 1\. Executive summary

nginx released 1.31.9 (mainline) and 1.30.7 (stable) on 2026-11-18, closing ten vulnerabilities, five of which were disclosed together as nginx2root. The headline flaw, CVE-2026-123007, is an integer underflow in HTTP/2 flow-control accounting (CWE-191, with CWE-787 out-of-bounds write) that has been present since nginx 1.9.5 shipped HTTP/2 support in September 2015\. NVD scores it CVSS 9.2 critical; it is not in CISA KEV and EPSS stands at 6%, and no source reports exploitation in the wild as of 2026-11-19\. A public exploit achieves unauthenticated command execution as the nginx worker user, but only against a directly reachable server with HTTP/2 enabled, an idle worker, an x86-64 CPU exposing AVX-512, and roughly 119 GiB of traffic delivered inside nginx's one-hour connection lifetime. EMEA financial services exposure is concentrated in internet-facing nginx and ingress-nginx estates where HTTP/2 is on by default and where a reverse proxy does not already terminate HTTP/2 in front of the vulnerable tier.

## 2\. Regulatory framing

| Article      | Trigger (the fact in this item)                                                                                                                                                                                                               | Practical impact                                                                                                                                                                                      |
| ------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| DORA Art. 24 | A public exploit exists for a component in the production web tier, and Censys published a 5.69 MB cleartext HTTP/2 test that distinguishes vulnerable 1.31.8 from patched 1.31.9 without generating the 60 to 119 GiB the full exploit needs | Firms can run the Censys test and the ALPN check against internet-facing nginx as part of resilience testing, and record the result as evidence the patch was validated rather than assumed           |
| DORA Art. 28 | NGINX Plus branches R34 to R36 have no fix per F5 K000163926, and Kubernetes ended maintenance of ingress-nginx in March 2026 with no further releases                                                                                        | Third-party risk review must cover upstream vendors that will not ship a patch: those branches and ingress-nginx deployments need a migration or compensating-control decision, not a patching ticket |

## 3\. Technical analysis & attack chain

CVE-2026-123007 is a double refund in nginx's HTTP/2 connection send window. The connection window lives in `h2c->send_window`. nginx subtracts from it when it queues response DATA and adds the bytes back if a stream is cancelled before that DATA is sent. The sequence that breaks it:

1. The client lets the server queue response DATA.
2. The client grants fresh connection credit with a WINDOW\_UPDATE frame.
3. The client cancels the streams. Cleanup refunds the queued DATA on top of the credit just granted and never checks the result against `NGX_HTTP_V2_MAX_WINDOW` (2³¹−1).
4. With the window above the maximum, the check for later WINDOW\_UPDATE frames computes MAX − window in unsigned arithmetic. The subtraction wraps to a huge value, so nginx accepts enough extra credit to push the 64-bit counter past 2⁶³.
5. Read as signed, the window is negative. That value reaches a buffer-length calculation and then a `memcpy` with a length close to 2⁶⁴.
6. glibc's x86-64 `memcpy` copies large buffers backwards in vector-sized chunks. With a length of 2⁶⁴−d the computed end address wraps to dest − d, so the copy overwrites a limited stretch of memory and stops rather than faulting immediately. The full exploit builds on that limited overwrite to run a command; a smaller proof of concept only crashes the worker.

The fix in 1.31.9, committed to nginx's public GitHub repository on 2026-11-11 as commit e27f5fa ("HTTP/2: account for queued frames when validating WINDOW\_UPDATE"), changes three things in `src/http/v2/`. A new counter `h2c->send_queued` tracks bytes queued but not yet sent. Cleanup refunds only DATA frames, not every queued frame. The WINDOW\_UPDATE check becomes `window > NGX_HTTP_V2_MAX_WINDOW - h2c->send_window - h2c->send_queued`, so bytes still waiting to be sent count against the limit. At info log level the patched server records the rejection as `client violated connection flow control: received WINDOW_UPDATE frame with window increment 4194304 not allowed for window 2144509996`.

Preconditions for the public exploit, each tested by StepSecurity against 1.31.8:

- HTTP/2 reachable on a port the attacker can reach. TLS is not required; the bug reproduces over cleartext h2c.
- Bandwidth. The crash PoC sends about 60 GiB and the full exploit about 119 GiB (roughly 128 GB), all inside nginx's default one-hour `keepalive_time`. A connection slower than about 300 Mbit/s cannot finish. Rapid7 gives the same figure and notes 17 minutes at 1 Gbit/s, two minutes at 10 Gbit/s.
- A direct connection. A reverse proxy that handles HTTP/2 itself caused the exploit to give up within half a second, because it expects each response as a single HTTP/2 DATA frame and the proxy builds its own. The server behind the proxy still needs the patch.
- An idle server. The exploit failed to leak the memory addresses it needs with 4 or 16 clients fetching a static page, and its instructions report failures after heavy earlier traffic.
- AVX-512 (`avx512f`, `avx512vl`) on the server CPU for the published exploit, which is tuned for the AVX-512 glibc `memcpy`. The bug itself does not need it: StepSecurity crashed a worker on an emulated CPU without AVX-512.

StepSecurity ran the full exploit three times against 1.31.8 on an AWS c6i.xlarge running Debian 13\. The command ran as the nginx worker's user after 178.55, 179.68 and 176.41 seconds, each run sending 119 GiB and opening 16 extra connections. All three runs leaked the same memory addresses, because nginx starts each new worker as a copy of its master and a replacement worker inherits the memory layout of the one that crashed. After the command ran the worker exited with signal 6 (abort); the crash PoC ends with signal 11 (segmentation fault). Against 1.31.9 the crash PoC could not push the window past the maximum and nothing crashed. With `http2 off` on 1.31.8 the PoC could not connect at all: it asks only for HTTP/2 via ALPN, and since 1.21.4 nginx refuses the handshake when the two sides cannot agree a protocol.

CrowdStrike reports that the nginx2root set was demonstrated chaining CVE-2026-123007 with a Linux kernel SCTP flaw to escalate from the worker account to root and escape a Docker container to the host. Censys states it has not verified the kernel flaw or that chain. Treat the root escalation as single-sourced and unverified.

CVE-2026-123633, the second HTTP/2 bug in the set, is a use-after-free (CWE-416) triggered when nginx is configured to use HTTP/2 for client connections and proxy client requests to a back end. NVD scores it CVSS 9.2 critical; it is not in CISA KEV and EPSS stands at 7%. Censys reproduced a use-after-free and worker crash on the unmodified official 1.31.8 image, with 1.31.9 not crashing. Cybersecurity Dive reports it can lead to denial of service or remote code execution. The other three nginx2root CVEs (CVE-2026-123634, CVE-2026-121810, CVE-2026-113425) require different configurations and are outside this advisory's scope; disabling HTTP/2 addresses only the two HTTP/2 bugs.

Affected and fixed versions, per the sources:

| Product           | Affected                                                                                                       | Fixed                                     |
| ----------------- | -------------------------------------------------------------------------------------------------------------- | ----------------------------------------- |
| nginx Open Source | 1.9.5 to 1.31.8 (CrowdStrike, citing the nginx advisory, splits this as >1.31.0 to 1.31.8 and 1.9.5 to 1.30.6) | 1.31.9 mainline, 1.30.7 stable            |
| NGINX Plus        | 37.1.0 to 37.2.0.1, 37.0.0 to 37.0.7.1, R34 to R36                                                             | 37.0.8.1, 37.3.0.1; no fix for R34 to R36 |
| Ubuntu 22.04 LTS  | earlier package versions                                                                                       | 1.18.0-6ubuntu14.23 (USN-9159-1)          |
| Ubuntu 24.04 LTS  | earlier package versions                                                                                       | 1.24.0-2ubuntu7.20                        |
| Ubuntu 26.04 LTS  | earlier package versions                                                                                       | 1.28.3-2ubuntu1.13                        |
| Ubuntu 26.10      | earlier package versions                                                                                       | 1.30.4-7ubuntu1.2                         |

Exposure, from a Shodan count StepSecurity ran at 22:22 UTC on 2026-11-19: 9,691 services reported `product:nginx version:"1.31.8" ssl.alpn:h2`, 97.5% hosted on AWS, with the next largest host Tencent at 79 services. By country the order was United States, Ireland, Germany, Japan, the United Kingdom, Australia. Across all versions Shodan recorded 754,642 nginx services offering HTTP/2\. These counts rely on self-reported version strings, so servers that hide the banner are not counted and distribution backports that keep the upstream version number look vulnerable when patched.

No source attributes this activity to a named threat actor, and no source reports a victim. F5's advisory credits four research teams for reporting the bug; Cybersecurity Dive names researchers from Wiz, Rapid7, Ikotas Labs, Metnir and Xint, and says the discoveries were made with the help of frontier AI. Rapid7 credits Stephen Fewer, Senior Principal Security Researcher, with the discovery and published the proof of concept. Censys attributes the five-CVE disclosure to Xint.

## 4\. Mitigation & containment

### P1, within 24 hours

Inventory every nginx instance and confirm whether HTTP/2 is reachable. On each server, as root because `nginx -T` reads TLS keys:

```
sudo nginx -T | grep -nE '^\s*http2\s+on|listen\s.*\bhttp2\b'

```

Confirm from outside, and repeat against the nginx server directly if a CDN or load balancer sits in front, because the external test only reaches the CDN:

```
openssl s_client -connect example.com:443 -servername example.com -alpn h2,http/1.1 </dev/null 2>/dev/null | grep 'ALPN protocol'

```

`ALPN protocol: h2` means HTTP/2 is reachable. For Kubernetes, ingress-nginx enables HTTP/2 by default (`use-http2: "true"` in its ConfigMap) and Kubernetes ended maintenance of ingress-nginx in March 2026 with no further releases or security fixes, so set `use-http2: "false"` or move to another ingress controller.

Where a patch cannot land inside 24 hours, turn HTTP/2 off. Remove every `http2 on;` line and every `listen` directive carrying the `http2` parameter, or change `http2 on;` to `http2 off;` (on 1.25.1 and later HTTP/2 is off unless enabled), reload, and re-run the openssl check expecting `ALPN protocol: http/1.1`. This blocks both HTTP/2 bugs and breaks gRPC through nginx, because the gRPC module requires HTTP/2\. The other nginx2root bugs need the patch or their own mitigations.

### P2, within 72 hours

Upgrade to nginx 1.31.9 or 1.30.7, or the distribution package: Ubuntu 22.04 to 1.18.0-6ubuntu14.23, 24.04 to 1.24.0-2ubuntu7.20, 26.04 to 1.28.3-2ubuntu1.13, 26.10 to 1.30.4-7ubuntu1.2, all in USN-9159-1\. NGINX Plus users need 37.0.8.1 or 37.3.0.1; F5 lists no fix for R34 to R36, so those branches need an upgrade to a fixed branch. Then restart:

```
sudo systemctl restart nginx

```

A reload (`nginx -s reload`) does not load a new binary: the master keeps running the old code and starts new workers from it. Only a restart, or the USR2 on-the-fly binary upgrade, replaces the running code. For containers, rebuild from a fixed base image and redeploy; a running container keeps the binary it started with.

Confirm the fix by package version, not by banner, because distributions backport without changing the upstream version number:

```
dpkg -l 'nginx*' | grep ^ii    # Debian, Ubuntu
rpm -qa 'nginx*'               # RHEL, Fedora, Amazon Linux

```

### P3, within 7 days

Add a per-IP connection limit as a speed bump, not a fix. StepSecurity found the exploit opens 16 extra connections from one address and failed against `limit_conn` of 4 or 8; a limit of 24 also failed but at a later step, which one run cannot attribute to the limit. For HTTP/2 nginx counts each concurrent request as a separate connection, so a low cap also throttles ordinary clients that send many requests at once and users behind a shared IP.

Audit for processes started by the nginx worker, which should not happen. Debian and Ubuntu packages run the worker as `www-data`, nginx.org packages as `nginx`; substitute the real UID from `id -u www-data` or `id -u nginx` for 101:

```
sudo auditctl -a always,exit -F arch=b64 -S execve,execveat -F euid=101 -k nginx_worker_exec
sudo ausearch -k nginx_worker_exec -i

```

Test the rule before relying on it. On StepSecurity's AWS server auditd logged nothing for this rule during a successful exploit run or when commands were run as the worker's user by hand, and a rule with no filters also logged nothing, which points to that server's audit setup rather than the rule.

Sweep developer machines and build hosts for nginx installed via Homebrew or apt, which a server patch cycle does not reach. Compare Homebrew installs against 1.31.9 or 1.30.7 and Linux packages against the full distribution version string.

## 5\. Indicators of compromise

No atomic indicators (hashes, domains, IP addresses, file paths) are published in the sources for this vulnerability. The sources describe observable behaviours only.

| Behaviour                                                                                                                                                                                                           | Where to observe                                                                                                                                                                                                  | Confidence                               |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------- |
| Worker exits with signal 11, typically after heavy HTTP/2 traffic (crash PoC)                                                                                                                                       | nginx error log: grep -E 'exited on signal (6\\\|11)' /var/log/nginx/error.log; line form worker process 2281 exited on signal 11 (core dumped). The log may say (core dumped) even when no core file was written | High, reproduced by StepSecurity         |
| Worker exits with signal 6 after a burst of heavy traffic, indicating the command ran (full exploit)                                                                                                                | Same error log grep                                                                                                                                                                                               | High, reproduced by StepSecurity         |
| A single client connection carrying 60 GiB or more, plus 16 extra connections from the same address. WINDOW\_UPDATE frames are not requests and never appear in access logs                                         | ss -tin state established '( sport = :443 )', watching bytes\_received on one connection                                                                                                                          | High, reproduced by StepSecurity         |
| Burst of HEAD requests against a static site. One crash PoC run and two exploit runs produced 1,894 logged requests: 1,160 HEAD and 734 GET, up to 350 in a single minute, 13 with status 400 and 2 with status 408 | nginx access log                                                                                                                                                                                                  | Medium, single test series               |
| Patched server logs the new flow-control rejection at info level: client violated connection flow control: received WINDOW\_UPDATE frame with window increment 4194304 not allowed for window 2144509996            | nginx error log at info level                                                                                                                                                                                     | High, reproduced by StepSecurity         |
| Process execution under the nginx worker UID                                                                                                                                                                        | auditd rule above, if the host's audit configuration records it                                                                                                                                                   | Low, did not fire in StepSecurity's test |

## 6\. Detection

The sources give no file artefacts, command-line strings, mutexes or registry keys for this exploit, so no YARA rule is emitted. Detection rests on nginx error-log and connection behaviour, which a Sigma rule can express.

```yaml
title: nginx worker crash or abort consistent with CVE-2026-123007 exploitation
id: 7f3c2a91-4d18-4b6e-9a02-nginx2root01
status: experimental
description: Detects nginx worker termination by SIGSEGV or SIGABRT, the end states StepSecurity observed for the crash PoC and the full CVE-2026-123007 exploit respectively.
author: Adverse Trace
date: 2026/11/20
references:

  - https://www.stepsecurity.io/blog/cve-2026-123007-nginx-http2-rce
logsource:
  product: nginx
  service: error
detection:
  selection:
    message|contains:

      - 'exited on signal 11'
      - 'exited on signal 6'
  condition: selection
falsepositives:

  - Worker crashes from unrelated memory faults or OOM handling; correlate with a preceding burst of HTTP/2 traffic on one connection
level: high

```

A second rule for the patched-server rejection, useful to confirm the fix is active and to spot clients still attempting the sequence:

```yaml
title: nginx HTTP/2 flow-control violation logged after CVE-2026-123007 patch
id: 1b8e6c40-2a77-4f31-8c5d-nginx2root02
status: experimental
description: Matches the nginx info-level message emitted when the patched WINDOW_UPDATE check rejects an increment that would exceed NGX_HTTP_V2_MAX_WINDOW.
author: Adverse Trace
date: 2026/11/20
references:

  - https://www.stepsecurity.io/blog/cve-2026-123007-nginx-http2-rce
logsource:
  product: nginx
  service: error
detection:
  selection:
    message|contains: 'client violated connection flow control'
  condition: selection
falsepositives:

  - Non-malicious HTTP/2 clients with faulty flow-control accounting
level: medium

```

Censys developed candidate Suricata rules; signature ID 9007015 fired exactly once on a real vulnerable h2c capture and produced zero alerts on the patched control on Suricata 8.0.1\. Censys states this validates the rule against that traffic pair, not as a general exploit detector, and that its remaining rules are experimental, with single-byte TCP segmentation revealing a gap in the raw-stream PCRE signatures. Network detection requires cleartext h2c or decrypted telemetry, because TLS hides the control frames; encrypted traffic shows only volume and timing, which are not specific to these CVEs.

## CVE assessment

2 referenced CVEs — 2 critical (CVSS ≥ 9.0)

| CVE                                                                                | CVSS         | Exploited | EPSS | Summary                                                                                                                           |
| ---------------------------------------------------------------------------------- | ------------ | --------- | ---- | --------------------------------------------------------------------------------------------------------------------------------- |
| [CVE-2026-123007](https://nvd.nist.gov/vuln/detail/CVE-2026-123007?ref=f4n6.co.uk) | 9.2 Critical | —         | 6%   | This issue affects NGINX Plus or NGINX Open Source configurations that use HTTP/2\. When NGINX processes undisclosed traffic, th… |
| [CVE-2026-123633](https://nvd.nist.gov/vuln/detail/CVE-2026-123633?ref=f4n6.co.uk) | 9.2 Critical | —         | 7%   | When NGINX Plus or NGINX Open Source is configured to use HTTP/2 for client connections and proxy client requests to a backend,…  |

## 7\. Sources

- StepSecurity, "nginx2root (CVE-2026-123007): HTTP/2 Flaw Lets Attackers Run Code on Unpatched nginx Servers", https://www.stepsecurity.io/blog/cve-2026-123007-nginx-http2-rce, 2026-11-19
- Rapid7, "CVE-2026-123007: Critical NGINX HTTP/2 Integer Underflow Leads to RCE (FIXED)", https://www.rapid7.com/blog/post/ve-cve-2026-123007-critical-nginx-http-2-integer-underflow-leads-to-rce-fixed
- Cybersecurity Dive, "Critical remote code execution flaws found in Nginx web server", https://www.cybersecuritydive.com/news/critical-remote-code-execution-flaws-nginx-web-server/875196/
- CrowdStrike, "NGINX2Root: Identify and Protect with the CrowdStrike Falcon Platform", https://www.crowdstrike.com/en-us/blog/crowdstrike-helps-protect-against-nginx2root-cve-2026-123007/
- The Hacker News, "10-Year-Old NGINX HTTP/2 Flaw Lets Unauthenticated Attackers Execute Code on Servers", https://thehackernews.com/2026/11/10-year-old-nginx-http2-flaw-lets.html
- Censys, "nginx2root: A simple test for the HTTP/2 flaw and three use-after-free reproductions", https://censys.com/blog/nginx2root-a-simple-test-for-the-http-2-flaw-and-three-use-after-free-reproductions/
- Censys, "nginx2root: A simple test for the HTTP/2 flaw and three use-after-free reproductions" (duplicate copy), https://censys.com/blog/nginx2root-simple-test/
- F5, K000164058 Out-of-band Security Notification and K000163926, referenced at https://www.stepsecurity.io/blog/cve-2026-123007-nginx-http2-rce
- nginx fix commit e27f5fa, "HTTP/2: account for queued frames when validating WINDOW\_UPDATE", referenced at https://www.stepsecurity.io/blog/cve-2026-123007-nginx-http2-rce

## 8\. Adverse Trace position

Adverse Trace assesses CVE-2026-123007 as CVSS 9.2 critical, not in CISA KEV, EPSS 6%, with no exploitation in the wild reported as of 2026-11-19\. The public exploit is real and reproduced by two independent teams, but its preconditions (direct reachability, an idle worker, AVX-512, roughly 119 GiB inside one hour) mean opportunistic mass scanning is unlikely to succeed today; targeted use against a known-exposed host, or exploitation from inside a network, is the case that matters. The root-escalation chain via a Linux kernel SCTP flaw is single-sourced to CrowdStrike and unverified by Censys, so we do not treat worker compromise as automatic host compromise. For EMEA financial services the exposure sits in internet-facing nginx and ingress-nginx estates, and the ingress-nginx case is the harder one because no patched controller is coming. We will track F5 and nginx advisories for the remaining nginx2root CVEs and for any change in KEV or exploitation status, and we will reissue this advisory if either changes. Clients should treat the ALPN and package-version checks in §4 as the evidence trail for DORA Art. 24 testing and DORA Art. 28 third-party review, and report back any worker signal 6 or signal 11 event correlated with a high-volume HTTP/2 connection so we can assess it against this advisory.

---

[Read the original source →](https://www.stepsecurity.io/blog/cve-2026-123007-nginx-http2-rce?ref=f4n6.co.uk)

*Published via PulseTrace — Adverse Trace threat intelligence.*