The connection was marked reusable, and then the request started: inside two unauthenticated RCEs in nginx HTTP/2

Start with the only line that matters: if your nginx speaks HTTP/2, this patch is due today. If it does not, the two CVSS 9.2 unauthenticated RCEs cannot reach you, but something else in the same batch can.

My own box is the example. devtools.help runs nginx/1.28.3 with TLS 1.3, and ALPN comes back as HTTP/1.1, so neither RCE applies. The second vhost on the same machine, game.devtools.help, carries a single line, http2 on;, negotiates h2 on the handshake, and serves nothing but static files. That is precisely the path Wiz demonstrated: no backend application, no third-party module.

Sources: the Wiz Research disclosure from 2026-11-18 (with Ikotas Labs, Metnir, Rapid7 and Xint reporting independently), the nginx.org advisory page from the same day, and Hacker News where it took first place with 1411 points.

1. What actually shipped

Wiz reported the HTTP/2 use-after-free to F5 on October 21 with a working RCE that bypassed ASLR, plus a suggested patch. F5 replied honestly: another team had reported the same bug earlier. A patch for review arrived on November 10. On November 16 Wiz reported a second flaw, an integer underflow in the flow-control counter. It was confirmed for the November 18 release the next day, and everything went public together.

That release carried ten advisories, not two. The ones a normal operator has to care about:

CVEIssueAffectedTrigger
CVE-2026-123007HTTP/2 flow-control memory corruption1.9.5 to 1.31.8HTTP/2 enabled, static sites included
CVE-2026-123633HTTP/2 use-after-free1.19.7 to 1.31.8HTTP/2 plus reverse proxy
CVE-2026-121810HTTP/3 use-after-free1.25.0 to 1.31.8QUIC enabled
CVE-2026-123634use-after-free in resolver responses0.6.18 to 1.31.8resolver used, upstream name attacker controlled
CVE-2026-118899infinite loop reading a body over TLS 1.31.13.0 to 1.31.8TLS 1.3 supported
CVE-2026-125283buffer overflow with alias and try_files0.9.6 to 1.31.8both in the same location

Fixed releases are only two: 1.30.7 on stable and 1.31.9 on mainline. Everything from 1.30.0 through 1.30.6 sits inside the blast radius. As for the 1.9.5 starting point of CVE-2026-123007, that branch dates to 2015. The bug is eleven years old.

2. The first one: a connection marked reusable while it is busy

nginx keeps a list of connections it may close when it needs free slots. ngx_drain_connections() picks victims from that list. An HTTP/2 connection joins the list when it has no active stream, and it has to leave the list when a request begins. The second half is where it breaks.

Send a partial HEADERS frame. There is no active stream yet, so ngx_http_v2_handle_connection() reaches this:

ngx_reusable_connection(c, 1);

if (h2c->state.incomplete) {
    return;
}

Send the rest of the frame. ngx_http_v2_create_stream() creates the stream and increments h2c->processing, but nothing removes the connection from the reusable list. nginx now believes a connection that is actively serving a request can be closed at any moment.

All it takes next is pressure on free connection slots. Proxying the request upstream calls ngx_get_connection(), which triggers the drain when slots run low, and the drain can pick this very connection. Before closing it nginx wants to send a GOAWAY frame. If the connection has exhausted its frame pool and cannot allocate one, the error path closes the connection and frees its memory, then returns to the original request, which keeps using that memory. That is the use-after-free.

One detail worth repeating: no multiplexing, no load test. A single client, one proxied request, plus pool pressure is enough. That is also why nginx.org labels it medium while Wiz scores 9.2 under CVSS 4.0. The upstream rating reflects how hard it is to reach in a default configuration; the CVSS score reflects what happens once it is reached. Both are defensible. Using medium as an excuse to defer the patch is not.

3. The second one: refunding credit that was never spent

HTTP/2 flow control tracks remaining send allowance in h2c->send_window, decremented as response data is queued. When a stream is cancelled, ngx_http_v2_filter_cleanup() returns the allowance for data that never left:

h2c->send_window += window;

The refund never checks the maximum window. If the client has raised the allowance in the meantime, the refund pushes the counter past the protocol maximum, into a state the rest of the code assumes is impossible.

The next piece is the bounds check:

if (window > NGX_HTTP_V2_MAX_WINDOW - h2c->send_window)

It computes headroom by subtracting the current value from the maximum. Since the counter already exceeds the maximum, the unsigned subtraction wraps into a huge positive number, the check concludes there is plenty of room, and further increases are allowed. The invalid counter reaches ngx_http_v2_send_chain(), gets converted to signed off_t, and goes negative. A response buffer is then described with its end pointer before its start pointer. ngx_ssl_send_chain() converts again, and a negative length becomes an out-of-bounds copy that both leaks memory and corrupts the heap.

Wiz confirmed RCE with an ASLR bypass on official 1.31.7 and 1.31.8 builds, over HTTP/2 with TLS on 64-bit systems, with response data served from memory. Ordinary static files reach that path through standard TLS processing. No backend, no module.

4. Detection: look at ALPN, not at the version string

Version decides what happens if you are hit. ALPN decides whether you can be hit at all. Thirty lines of standard library are enough:

import socket, ssl, sys

def probe(host, port=443):
    ctx = ssl.create_default_context()
    ctx.set_alpn_protocols(["h2", "http/1.1"])
    with socket.create_connection((host, port), timeout=8) as raw:
        with ctx.wrap_socket(raw, server_hostname=host) as s:
            proto = s.selected_alpn_protocol()
            cert = s.getpeercert()
            print("host      :", host)
            print("tls       :", s.version())
            print("alpn      :", proto or "(none)")
            print("cert until:", cert.get("notAfter"))
            print("attention :", "h2 negotiated, patch or disable" if proto == "h2" else "no h2, not reachable by the HTTP/2 bugs")

probe(sys.argv[1] if len(sys.argv) > 1 else "devtools.help")

Run it against both hostnames:

python alpn_probe.py devtools.help
python alpn_probe.py game.devtools.help

Output, measured on 2026-11-19, before containment:

host      : devtools.help
tls       : TLSv1.3
alpn      : http/1.1
cert until: Jan  8 11:20:15 2027 GMT
attention : no h2, not reachable by the HTTP/2 bugs

host      : game.devtools.help
tls       : TLSv1.3
alpn      : h2
cert until: Jan 21 15:25:15 2027 GMT
attention : h2 negotiated, patch or disable

The second condition lives in the config: proxy_pass, alias, resolver, quic. This audit runs on the server with nothing installed:

import os, subprocess

CONF = ["/etc/nginx/nginx.conf"]
for d in ("/etc/nginx/sites-enabled", "/etc/nginx/conf.d"):
    for name in sorted(os.listdir(d)):
        CONF.append(os.path.join(d, name))
KEYS = ("http2", "proxy_pass", "alias", "try_files", "resolver", "ssl_preread", "quic", "proxy_protocol")


def nginx_version():
    r = subprocess.run(["nginx", "-v"], capture_output=True, text=True)
    tag = ((r.stderr or "") + (r.stdout or "")).split("nginx/")[1].split()[0]
    return tuple(int(x) for x in tag.split("."))


def directives():
    seen = {k: [] for k in KEYS}
    for path in CONF:
        try:
            lines = open(path, encoding="utf-8", errors="replace").read().splitlines()
        except OSError:
            continue
        for no, line in enumerate(lines, 1):
            s = line.strip()
            if not s or s.startswith("#"):
                continue
            words = s.replace(";", " ").replace("{", " ").replace("}", " ").split()
            for key in KEYS:
                if key in words:
                    seen[key].append(path + ":" + str(no))
    return seen


def inside(ver, lo, hi):
    return lo <= ver <= hi


def main():
    ver = nginx_version()
    d = directives()
    h2 = bool(d["http2"])
    print("version   :", ".".join(str(x) for x in ver))
    print("conf files:", len(CONF))
    for key in KEYS:
        print("  %-14s %d" % (key, len(d[key])))
    print()
    rows = [
        ("CVE-2026-123007", (1, 9, 5), (1, 31, 8), h2, "HTTP/2 flow control, needs h2"),
        ("CVE-2026-123633", (1, 19, 7), (1, 31, 8), h2 and bool(d["proxy_pass"]), "HTTP/2 UAF, needs h2 + proxy"),
        ("CVE-2026-121810", (1, 25, 0), (1, 31, 8), bool(d["quic"]), "HTTP/3 UAF, needs quic"),
        ("CVE-2026-123634", (0, 6, 18), (1, 31, 8), bool(d["resolver"]), "resolver UAF, needs resolver"),
        ("CVE-2026-125283", (0, 9, 6), (1, 31, 8), bool(d["alias"]) and bool(d["try_files"]), "alias + try_files"),
        ("CVE-2026-123640", (1, 15, 2), (1, 31, 8), bool(d["ssl_preread"]), "stream ssl_preread"),
        ("CVE-2026-120993", (1, 31, 4), (1, 31, 8), bool(d["proxy_protocol"]), "PROXY v2 null deref"),
        ("CVE-2026-118899", (1, 13, 0), (1, 31, 8), True, "TLS 1.3 body read, always on"),
    ]
    for cve, lo, hi, cond, note in rows:
        if not inside(ver, lo, hi):
            state = "safe by version"
        elif cond:
            state = "AFFECTED"
        else:
            state = "gated off"
        print("%-16s %-22s %s" % (cve, state, note))


main()

Measured output from the same server:

version   : 1.28.3
conf files: 3
  http2          1
  proxy_pass     0
  alias          0
  try_files      8
  resolver       0
  ssl_preread    0
  quic           0
  proxy_protocol 0

CVE-2026-123007  AFFECTED               HTTP/2 flow control, needs h2
CVE-2026-123633  gated off              HTTP/2 UAF, needs h2 + proxy
CVE-2026-121810  gated off              HTTP/3 UAF, needs quic
CVE-2026-123634  gated off              resolver UAF, needs resolver
CVE-2026-125283  gated off              alias + try_files
CVE-2026-123640  gated off              stream ssl_preread
CVE-2026-120993  safe by version        PROXY v2 null deref
CVE-2026-118899  AFFECTED               TLS 1.3 body read, always on

Two lines deserve attention. The first row: exactly one http2 token in the whole config, and it belongs to the game vhost. One subdomain opened the attack surface for the machine. The last row: CVE-2026-118899 does not care about HTTP/2. TLS 1.3 is enough, and both hostnames here have it. It is a denial of service rather than RCE, but a static site gets no exemption while the patch is pending.

5. What I changed

Upgrading is the right answer and, as it happens, not available yet. Ubuntu ships nginx 1.28.3-2ubuntu1.12 as both installed and candidate, and the newest batch in /usr/share/doc/nginx/changelog.Debian.gz is dated October 24. The November 18 fixes have not been backported. Distro lag is normal, so do not wait on apt upgrade.

Containment instead: turn off HTTP/2 on the one vhost that has it.

sudo -n mkdir -p /etc/nginx/backup-20261119
sudo -n cp /etc/nginx/sites-enabled/game.devtools.help /etc/nginx/backup-20261119/game.devtools.help.orig
sudo -n sed -i 's/^    http2 on;/    http2 off;  # CVE-2026-123007 mitigation 2026-11-19/' /etc/nginx/sites-enabled/game.devtools.help
sudo -n nginx -t
sudo -n systemctl reload nginx
ps -o pid,etime,cmd -C nginx

That last line is not decoration. A reload only asks the master to start fresh workers. Old workers finish the connections they hold before exiting, so until you watch them go, "disabled" may still mean a window of minutes. After a successful reload the worker ETIME should read single-digit seconds.

Then probe ALPN again: h2 becomes http/1.1 and the site still returns 200. When the distro backports the fix, restore http2 on; and reload. The original file sits in /etc/nginx/backup-20261119/.

One note on the older listen 443 ssl http2; syntax: since 1.25.1, http2 is a separate directive. Mixed configs are where people change one place and forget the other. Check both when you contain.

6. Traps worth avoiding

  • A CDN is not a shield. Wiz is explicit that CDNs or WAFs terminating HTTP/2 may mitigate part of the exploit by not replaying the exact payload to the origin, but that this depends on the implementation. If HTTP/2 ends at the edge and the origin still speaks it, the origin still needs the patch.
  • "I only serve static files" is false comfort. The CVE-2026-123007 proof of concept ran against a static server. Sites with a backend and a WAF sometimes carry an extra check; the static ones do not.
  • Do not stop at nginx -v. It reports the compiled version and says nothing about whether h2 is on, or whether proxy, resolver or alias appear in the config. All three conditions have to be checked together.
  • Container tags do not patch themselves. nginx:1.28 drifts, nginx:1.28.3 does not. Verify with docker run --rm nginx:tag nginx -v before trusting the tag.
  • Logs offer hints. Long-lived HTTP/2 connections that suddenly emit a flood of WINDOW_UPDATE frames, or workers that crash and respawn without explanation, are worth reading. Neither is proof, both are leads.

What makes this batch uncomfortable is not the severity. It is the entry cost: one partial HEADERS frame, one refund without a bounds check. Both live in decade-old code that everyone has read and nobody flagged. Reported October 21, public November 18, with a second team saying they had found it earlier. Bugs like these are invisible until somebody reproduces them.

Go run the two ALPN probes. It is worth more than the rest of this page.

Further reading

Feedback

This site is front-end only — no backend, no accounts — so feedback goes to GitHub Issues, Discussions, or email.

Paste it into the issue or email to help track it down — it never includes anything you typed

Also:Browse existing issues · Email feedback (no GitHub account needed):278975598@qq.com