
Docker-based proof-of-concept for CVE-2026-123633, an nginx HTTP/2 use-after-free triggered by connection exhaustion and RST_STREAM races, with a Python flood script and detection notes.
A use-after-free in nginx's HTTP/2 connection-management code allows an attacker to crash worker processes by exhausting the worker connection pool and immediately resetting (RST_STREAM) in-flight requests. When all worker_connections slots are occupied and a new HTTP/2 stream is opened then cancelled with an RST before the upstream proxy response arrives, nginx may reference a connection object that has already been freed during the pool-exhaustion cleanup path.
| Field | Value |
|---|---|
| CVE | CVE-2026-123633 |
| CVSS 3.1 | 8.1 High — AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CVSS 4.0 | 9.2 Critical — CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H |
| CWE | CWE-416 (Use After Free) |
| Affected | nginx 1.19.7 – 1.31.8 |
| Fixed | nginx 1.30.7 / 1.31.9 |
| Auth Required | None |
| Disclosed | 2026-11-18 |
nginx maintains a fixed-size connection pool governed by worker_connections. When the pool is saturated under HTTP/2 load, the cleanup path frees connection objects while upstream proxy callbacks may still hold raw pointers to them. The lab deliberately sets worker_connections: 24 to make pool exhaustion deterministic. The HTTP/2 sibling of CVE-2026-121810 (HTTP/3 UAF under identical conditions).
flowchart LR
A([Attacker]) -->|Flood: HTTP/2 streams\nto /slow endpoint\nworker_connections=24| B[nginx 1.31.8\nHTTP/2 proxy]
B -->|Pool saturated| C{Cleanup path\nfrees conn objects}
A -->|RST_STREAM + TCP RST\nSO_LINGER=0 on each conn| C
C -->|RST handler races\nproxy finalization| D[Freed conn\ndeferenced]
D --> E([Worker SIGSEGV\nDoS / heap RCE])
style A fill:#3d1a1a,stroke:#f85149,color:#f85149
style E fill:#1a1f2e,stroke:#f85149,color:#f85149
Warning: Lab environment only.
worker_connectionsis set to 24 to reliably hit exhaustion.
docker compose up -d --build
The lab includes:
worker_connections: 24/slow → proxy_pass backend with 3-second delay, 64 KB body/health on :8080 for liveness checkspython3 poc.py
Expected output — vulnerable nginx:
[*] flooding with HTTP/2 streams to /slow (worker_connections=24)
[*] wave 1: opened 30 streams, sending RST+TCP RST...
[*] wave 2: opened 30 streams, sending RST+TCP RST...
[+] worker crash detected (health check failed)
[!] VULNERABLE — HTTP/2 UAF under connection exhaustion confirmed
docker compose logs nginx | grep -iE 'signal 11|segfault'
# More aggressive — more streams per wave
python3 poc.py --streams 50 --waves 5
# Slower host — fewer concurrent streams
python3 poc.py --streams 20 --waves 10
# Verbose output with timing details
python3 poc.py --verbose
| Flag | Description |
|---|---|
--streams N | HTTP/2 streams per connection wave (default: 30) |
--waves N | Number of flood waves (default: 5) |
--host HOST | nginx host (default: 127.0.0.1) |
--port PORT | HTTPS port (default: 443) |
--verbose | Verbose output |
sed -i 's/nginx:1.31.8/nginx:1.31.9/' nginx/Dockerfile
docker compose build --no-cache nginx && docker compose up -d
python3 poc.py
# Worker survives all waves — health checks pass
| Indicator | Notes |
|---|---|
| nginx worker crash signal 11 | nginx error.log: "worker process exited on signal 11" |
| RST_STREAM flood on HTTP/2 | Network capture: many RST_STREAM frames from single client |
worker_connections exhaustion events | nginx status: active connections near configured maximum |
Unauthenticated remote Denial of Service. With ASLR disabled or bypassed, the heap layout created by connection exhaustion may allow remote code execution. The HTTP/2 sibling of CVE-2026-121810.
Upgrade to nginx 1.30.7 or 1.31.9.
| Action | Detail |
|---|---|
| Upgrade nginx | 1.30.7 (stable) or 1.31.9 (mainline) |
Increase worker_connections | Raise limit to make exhaustion harder to trigger |
| Rate-limit RST_STREAM | Limit HTTP/2 RST rate per client at firewall/WAF |
| Monitor worker crashes | Alert on nginx workers exiting with signal 11 |
Disclaimer: For authorized security research and controlled lab use only. MIT License.