Skip to content
Exploit for CVE-2026

Exploit for CVE-2026

Sploitus • November 18, 2026

![CVE](

![Component](

![CVSS](

![Disclosed](

![Shell](

![License](

![Version](

[![CI](

Read-only audit for two NGINX HTTP/2 memory-safety flaws, **CVE-2026-123633**

(use-after-free) and **CVE-2026-123007** (integer underflow in flow control).

Both need HTTP/2 to be enabled and are described by the researchers as

unauthenticated remote code execution class bugs.

Written in **POSIX sh**, so it runs as is on busybox `ash` (Alpine, Synology),

on dash and on bash. It never sends a request, never runs an exploit and never

It finds every nginx on the machine (running and merely installed, containers

included when their processes are visible), reads the version of the binary that

really runs, reads the effective configuration, decides whether HTTP/2 is

reachable, and looks for signs of attempts.

| Type | use-after-free in an HTTP/2 connection | integer underflow in `send_window` (CWE-191) |

| nginx OSS affected | 1.19.7 to 1.31.8 | 1.9.5 to 1.31.8 |

| Fixed in | **1.30.7** (stable), **1.31.9** (mainline) | the same |

| NGINX Plus fixed in | 37.0.7.1, 37.2.0.1 | 37.0.8.1, 37.3.0.1 (R34 to R36: no fix listed) |

| Precondition | HTTP/2 on. More likely when nginx is a reverse proxy | HTTP/2 on. Works against plain static file serving over TLS |

**123633:** an HTTP/2 connection is kept on the reusable list while a request

runs. When connection slots run low, nginx closes it, and a failed allocation of

the GOAWAY frame frees memory that the request still uses.

**123007:** when cancelled stream data is removed, the refunded window is added

to `send_window` without a bound check. A later `WINDOW_UPDATE` check wraps

around, the counter becomes a negative length, and `ngx_ssl_send_chain()` copies

**How serious.** Wiz scores both CVSS 4.0 9.2 (critical). The nginx.org advisory

list rates them lower ("medium" for 123633, "major" for 123007). Wiz says a

working exploit needs a memory disclosure first and heap grooming; Rapid7 says

123007 needs 128 GB of HTTP/2 traffic on one connection (minutes on a fast

link). Treat it as a demanding but realistic attack, and patch.

# review it first, then run as root (nginx -T and the error logs need root)

sh cve-2026-123633-123007-nginx-audit.sh --json

sh cve-2026-123633-123007-nginx-audit.sh --quiet # verdict only

sh cve-2026-123633-123007-nginx-audit.sh --no-hunt # skip logs and process hunt

sh cve-2026-123633-123007-nginx-audit.sh --no-banner # text report without the banner

On a remote host, nothing is copied to disk:

ssh host 'sh -s' < cve-2026-123633-123007-nginx-audit.sh

ssh host 'sh -s -- --json' < cve-2026-123633-123007-nginx-audit.sh

Without root the script still runs, but it cannot read other users' `/proc`

entries, run `nginx -T` or read the error logs. The result is then `UNKNOWN`

unless the build is already fixed. The banner is printed only in the text report;

| 0 | `PATCHED` | every instance runs a fixed build |

| 0 | `NOT_APPLICABLE` | no nginx, OpenResty, Angie or Tengine here, or the version predates HTTP/2 (below 1.9.5) |

| 1 | `MITIGATED` | unfixed code, but HTTP/2 is not reachable right now. Still patch |

| 2 | `VULNERABLE` | unfixed code and HTTP/2 is reachable, or **indicators of compromise** found |

| 3 | `UNKNOWN` | cannot decide (not root, a distribution build, an unreadable process). Treat as suspect |

| 4 | | usage error or missing basic tools |

With several instances the **worst one wins**. A running process whose binary

path cannot be read (no root) lowers the result to at least `UNKNOWN`.

1. **Instances.** Running processes found through `/proc` (masters first, so a

worker is never counted twice), plus installed binaries in the usual places

(`/usr/sbin`, `/usr/local/nginx`, `/opt/*/sbin`, OpenResty, Angie). A process

in another mount namespace is marked as a container.

2. **Version of the binary that runs.** From `nginx -V` when it is safe to run

it, otherwise from the version string inside the file. A binary replaced by a

package upgrade while nginx keeps running (`/proc/PID/exe (deleted)`) is

detected and reported as "restart needed" (a reload does not swap the binary).

3. **Package judgment.** Upstream version thresholds, then the owning package

(dpkg, rpm, apk) and its changelog. See "How the verdict is decided".

4. **HTTP/2 exposure.** The effective config (`nginx -T`, or the files on disk

with includes followed): `listen ... http2`, `http2 on|off` at http and server

level, loopback and unix-socket listeners, and whether the binary was built

5. **Hunt for attempts.** Worker deaths on signal 6, 7 or 11 in the error logs

(taken from `error_log` directives and the default paths), and shells,

netcat, curl, script interpreters or compilers running as **children of

nginx**. A worker never starts these by itself.

apt-get update && apt-get install --only-upgrade nginx

# then restart (a reload keeps the old binary)

Upstream fixed releases are 1.30.7 and 1.31.9. A distribution may carry the fix

under an older version number, so read the changelog or the vendor tracker.

**If you cannot patch yet,** turn HTTP/2 off: in every affected `server` block

set `http2 off;` (nginx 1.25.1 and later) **and** remove the `http2` parameter

from every `listen` line, then run `nginx -t`, restart, and confirm the old

workers are gone. Re-enable HTTP/2 after the upgrade.

Per instance, using the running binary when there is one:

| version below 1.9.5 | not affected (`NOT_APPLICABLE`) |

| 1.30.x with patch 7 or more, 1.31.x with patch 9 or more, or anything newer | patched |

| below that, package changelog names the fix (both CVEs; only 123007 below 1.19.7) | patched (backport) |

| below that, upstream-built package (nginx.org `1.28.0-1~bookworm`, `.ngx` rpm) | unpatched |

| below that, no package manager owns the binary | unpatched |

| below that, distribution package without a changelog mention | **unknown** |

| below that, container image | **unknown** (provenance not known) |

| OpenResty, Angie, Tengine | **unknown** (own fix schedule) |

| NGINX Plus R33 to R36 | unpatched; newer Plus builds are not recognised, so **unknown** |

Then the verdict: a patched state is `PATCHED`. Otherwise, if nginx is not

running, HTTP/2 is not enabled in any server, only loopback or unix-socket

listeners have it, or the binary has no HTTP/2 module, the result is

`MITIGATED`. If HTTP/2 is reachable and the state is unpatched, `VULNERABLE`; if

the state is unknown, `UNKNOWN`. Children of nginx that look like a shell or a

network tool force `VULNERABLE` whatever else was found.

A version such as `1.31.5` is **unpatched** although it is numerically higher

than 1.30.7: the two branches have separate fixed releases.

- **No distribution fix table yet.** The Debian, Ubuntu and Red Hat trackers had

no entry for these CVEs on the day of the disclosure (`MATRIX_DATE`

2026-11-18). Until builds are published, a distribution package below the

upstream fix reads `UNKNOWN` unless its changelog names both CVE ids. Ubuntu

keeps only the last ten changelog entries in a binary package, so a changelog

- **The config is read from disk.** A daemon started before a config change may

still run the old one (reload pending). The report says so.

- **`http2 off` is not trusted on its own.** A `listen ... http2` parameter still

counts as enabled even when the server says `http2 off`, following the

researchers' advice to change both. The report warns such blocks.

- **Plain `listen ... http2` over cleartext** counts as HTTP/2 enabled. The

demonstrated 123007 path is TLS, but the script does not relax the verdict for

- **Containers are never executed.** The version comes from the strings in the

binary and the config from the container's root. Package databases inside

- **The hunt gives hints, not proof.** Neither Wiz nor Rapid7 published

indicators. A crash line can be an ordinary crash; rotated logs and remote

- **A binary is run only when it is trusted:** owned by root (or by the user who

runs the audit) and neither the file nor its directory is group or world

writable. Otherwise the script reads the version from the file and the config

- Local firewall rules, CDNs and WAFs in front of nginx are not evaluated.

sh tests/run_tests.sh # 146 regression tests on a fake root; run as a normal user

sh tests/docker_tests.sh # the same suite under ash, dash, bash 4.2 and 4.3 in

# containers, plus an end-to-end test on real Alpine

The unit tests run the audit against a fake root with a fake `nginx`, fake

`/proc`, `dpkg-query`, `rpm` and `apk`; the test hooks are ignored when the

script runs as root. The end-to-end test installs nginx on Alpine 3.22, starts

it with a real HTTP/2 listener and checks detection through the real `/proc`,

`nginx -T`, a binary replaced under a running master, and the `--json`, `--quiet`

and banner behaviour. The suite needs docker or podman.

It was also run read-only on a Synology SRM router (busybox without the

`command` builtin): the router serves its panel with Apache and has no nginx, so

- Wiz Research: [Unauthenticated Remote Code Execution in NGINX: CVE-2026-123633 and CVE-2026-123007](

- Rapid7: [CVE-2026-123007, critical NGINX HTTP/2 integer underflow leads to RCE](

- nginx.org: [security advisories](

- F5 advisories K000163926 (123007) and K000163928 (123633)

Extracted Entities