Two critical NGINX vulnerabilities, CVE-2026-123007 and CVE-2026-123633, disclosed on 18 November 2026, can let an unauthenticated attacker run code on a server with HTTP/2 enabled. The fix is NGINX 1.30.7 (stable) or 1.31.9 (mainline), or a distribution package that lists both CVE IDs. Until you can patch, turn HTTP/2 off.
The flaws are in NGINX itself, so a perfectly secure website or API behind it is still exposed. This guide is what we'd tell any client running NGINX in production: how to tell whether you're affected, how to patch properly, what to do if you can't patch today, and how to check nobody got in first.
The short version
- What: CVE-2026-123007, a memory-corruption bug in HTTP/2 flow control (nicknamed "nginx2root"), and CVE-2026-123633, a use-after-free in HTTP/2 connection handling. Both are scored CVSS v4.0 9.2 (Critical) by F5, the company behind NGINX.
- Who: NGINX Open Source 1.9.5 to 1.31.8 for CVE-2026-123007, and 1.19.7 to 1.31.8 for CVE-2026-123633, but only where HTTP/2 is enabled. NGINX Plus is affected too.
- Fixed in: NGINX Open Source 1.30.7 (stable) and 1.31.9 (mainline), both released on 18 November 2026.
- Exploitation: as of 20 November, no source we read reports attacks in the wild, and the bug isn't in CISA's Known Exploited Vulnerabilities list. Working proof-of-concept code exists, though, so treat it as urgent but not as a panic.
- If you can't patch today: turn HTTP/2 off. That blocks both bugs, but not the other flaws fixed in the same release.
What actually went wrong
You don't need this section to patch, but it explains why "we only serve static files" isn't a defence.
CVE-2026-123007 (flow-control memory corruption). In HTTP/2, the client tells the server how much response data it's willing to receive. NGINX can miscalculate that allowance. According to Rapid7, one of the teams that found the bug, a remote client can cancel queued response data and then make NGINX use a wrong length when it copies a later response. The result is memory corruption that can leak data, crash a worker or run code with the permissions of the NGINX worker process. The flaw has been in NGINX since version 1.9.5 in 2015. It needs no backend application: Wiz demonstrated code execution against NGINX serving ordinary static files over HTTPS.
CVE-2026-123633 (use-after-free). NGINX keeps a list of idle connections it can close when it runs short of room. An HTTP/2 connection can end up on that list while a request is still arriving, and its memory can then be freed while it's still in use. NGINX's release notes say it happens "if worker_connections were not enough", and Wiz says it's exploitable when HTTP/2 requests are passed on to a backend server. NGINX's own advisory rates it medium, while F5 and Wiz score it 9.2, so sources disagree on how bad it is. Our reading: the lower rating reflects its preconditions, not a smaller impact once they're met.
How worried should you be?
Take it seriously, because a working exploit exists. Keep the practical limits in mind too:
- Rapid7's exploit sent about 128 GB of HTTP/2 traffic. That took two and a half minutes in their demo, and it needs a very fast link: NGINX's default one-hour connection limit rules out connections slower than about 300 Mbit/s.
- Their exploit depends on a specific x86-64 glibc memory-copy routine that's chosen at runtime based on the CPU's AVX-512 features. Rapid7 says other exploitation strategies may work, but none are known.
- If an HTTP/2 connection is proxied by a CDN or load balancer that talks to NGINX over HTTP/1.1, the attacker can't send NGINX those exact frames.
- Code runs as the NGINX worker, not root. Getting root on the host needs a second bug. Xint, one of the finders, showed such a chain using a separate Linux kernel flaw, even from inside a Docker container.
Public proof-of-concept code is on GitHub, and its own notes say it only suits a demo against a freshly started Docker container on the same machine. That's a demo, not a polished attack tool. Attackers improve demos quickly, though, which is why we'd patch in days, not weeks.
Step 1: Find out whether you're exposed
You're in scope if NGINX serves HTTPS with HTTP/2 enabled and runs a version below 1.30.7 (or below 1.31.9 on mainline). There are two checks, and the second one catches more.
Is HTTP/2 switched on?
On the server, look for the http2 parameter on a listen line, or the newer http2 on; directive:
sudo nginx -T 2>/dev/null | grep -nE "listen .*http2|http2 on"
From outside, ask the server what it negotiates. If the output says h2, HTTP/2 is on:
echo | openssl s_client -alpn h2 -connect example.com:443 2>/dev/null | grep "ALPN protocol"
Behind a CDN or load balancer? Test your NGINX origin directly, not the public hostname. An origin that only accepts HTTP/1.1 can't be attacked through HTTP/2, but the public site might still show h2 because the CDN answers for it.
Which version is really running?
nginx -v
Then remember the catch: on Ubuntu, Debian and Red Hat-family systems, a patched package often keeps the old version number, because the distribution backports the fix. So 1.24.0 can be patched and 1.30.6 can't. The reliable check is the package changelog:
# Debian / Ubuntu
apt changelog nginx 2>/dev/null | grep -E "CVE-2026-(123007|123633)"
# RHEL / Rocky / Alma / Amazon Linux
rpm -q --changelog nginx | grep -E "CVE-2026-(123007|123633)"
If both IDs show up, that package carries the fix. If nothing comes back, assume you're exposed. And don't forget the machines nobody thinks about: staging servers, an old marketing site, an internal admin panel, a Docker image built last year and never touched.
Step 2: Patch NGINX
Ubuntu and Debian
Fixed packages are out for both. On 20 November, Ubuntu's security tracker listed fixes for every supported release, for example nginx 1.24.0-2ubuntu7.20 on 24.04 LTS and 1.18.0-6ubuntu14.23 on 22.04 LTS. Debian's tracker lists 1.26.3-3+deb13u11 for Debian 13 (trixie) and 1.22.1-9+deb12u11 for Debian 12 (bookworm). Older Ubuntu releases need Ubuntu Pro for the fix.
sudo apt update
sudo apt install --only-upgrade nginx
sudo systemctl restart nginx
Red Hat-family systems, Alpine and other distributions
We couldn't confirm fixed packages for these on 20 November. Check your vendor's advisory page for the two CVE IDs before you assume anything. If you installed NGINX from nginx.org's own package repository, check that it has published 1.30.7 or 1.31.9 for your operating system, then upgrade from there.
Restart, don't just reload
This is the step people forget. A reload keeps the old binary running, and existing connections can stay on old workers. Restart the service, then confirm that the running process is the new one:
nginx -v
ps -o pid,lstart,cmd -C nginx
sudo ls -l /proc/$(cat /run/nginx.pid)/exe
If that last line ends in (deleted), the master process is still running the old binary that was replaced on disk, and you need to restart.
Docker and Kubernetes
Patching the host does nothing for NGINX inside a container. The official image has had 1.30.7 and 1.31.9 tags since 19 November, including Alpine variants. Rebuild, check the version inside, and redeploy:
docker build --pull --no-cache -t myapp:nginx-patched .
docker run --rm myapp:nginx-patched nginx -v
On Kubernetes, check that old pods are really gone. A rolling deploy that stalls halfway leaves vulnerable replicas serving traffic, and a floating tag such as stable can quietly point at an old image on a node that cached it. Compare image digests, not labels:
kubectl get pods -A -o jsonpath='{range .items[*]}{.metadata.name}{" "}{range .status.containerStatuses[*]}{.imageID}{"
"}{end}{end}' | grep -i nginx
Ingress controllers, Helm charts and appliance images that bundle NGINX follow their own release schedule. Check each vendor's notes.
DigitalOcean and other hosts
DigitalOcean emailed customers about these two CVEs on 20 November. If you run NGINX on a Droplet, in DOKS or in an App Platform container, or you created a Droplet from a Marketplace 1-Click image that includes NGINX, treat it as in scope until you've upgraded and checked the build yourself. DigitalOcean also says it may temporarily restrict traffic to resources showing signs of compromise, so an unpatched server risks being cut off as well as attacked.
NGINX Plus
The fixed builds are 37.0.7.1 or 37.2.0.1 for CVE-2026-123633, and 37.0.8.1 or 37.3.0.1 for CVE-2026-123007. Reports differ on whether the R34 to R36 releases get a fix, so confirm with F5 before you rely on either answer.
Step 3: If you can't patch today
Turn HTTP/2 off. Browsers fall back to HTTP/1.1, which is slower for pages with many assets but works. On NGINX 1.25.1 or later, add http2 off; to each affected server block and remove http2 from the listen lines:
server {
listen 443 ssl;
http2 off;
# ...
}
On 1.9.5 to 1.25.0, remove http2 from the listen directive, so listen 443 ssl http2; becomes listen 443 ssl;. Then test and reload, and confirm that the old workers have exited:
sudo nginx -t && sudo systemctl reload nginx
ps -ef | grep "nginx: worker"
Workers marked "shutting down" are still running the old configuration. Re-enable HTTP/2 only after you've upgraded.
This is a stopgap, not a fix. The same release fixes seven other CVEs, and turning HTTP/2 off doesn't cover them. The ones worth knowing about are a use-after-free in HTTP/3 (CVE-2026-121810, only if you've enabled HTTP/3), one in the DNS resolver (CVE-2026-123634) and one in the mail proxy module (CVE-2026-113425). The upgrade closes all of them.
Step 4: Check whether someone got in first
Patching closes the hole. It doesn't tell you whether anyone used it. A clean access log proves little, because HTTP/2 control frames don't normally show up there as requests. Look for these instead:
- Worker crashes. Memory-corruption exploits tend to crash workers while they're being tuned. Search the error log for
exited on signal, especially signal 11. - Child processes of NGINX. A worker should never launch a shell. Anything unexpected under
nginx: workeris a red flag. - Unusual outbound connections or DNS lookups from the NGINX host.
- New cron jobs, SSH keys or admin accounts you didn't create.
sudo grep -E "exited on signal" /var/log/nginx/error.log*
ps -eo pid,ppid,user,cmd --forest | grep -A3 "nginx: worker"
These are warning signs, not proof. If something looks wrong, treat the server as compromised: rebuild it from a known-good image and rotate any secrets it held. Be careful with "proof of concept" code from GitHub too. Don't run exploit code you can't fully read on a machine you care about.
A checklist you can hand to your team
- List every server, container image and hosting account that runs NGINX, including staging and legacy sites.
- Check whether HTTP/2 is on, and test the origin directly if you use a CDN.
- Check the version, and the package changelog for both CVE IDs where the version string looks old.
- Upgrade to 1.30.7 or 1.31.9, or a vendor package that lists both CVEs.
- Restart NGINX (a reload is not enough) and confirm the running binary is the new one.
- Rebuild Docker images with
--pull --no-cache, then check image digests after the rollout. - Turn HTTP/2 off anywhere patching has to wait, and confirm the old workers exited.
- Review error logs and process lists for the warning signs above.
If this month felt familiar, it was. PHP2Shell in October was the same pattern: a flaw in the layer under your application, where updating the app changes nothing.
Need a second pair of eyes?
At NotJuzApp we've spent 13 years building and running production backends, web apps and cloud infrastructure for clients on AWS, Docker and Cloudflare, and keeping the layers underneath patched is part of the job.
If you aren't sure whether your NGINX serves HTTP/2, which version it really runs, or whether your Docker images were rebuilt, email milan@notjuzapp.com with your domain and hosting setup. We'll tell you whether you're exposed and what to do next. No charge for that first look.
Sources
- nginx security advisories and the nginx 1.30.7 release notes
- Wiz: Unauthenticated Remote Code Execution in NGINX
- Rapid7: CVE-2026-123007, Critical NGINX HTTP/2 Integer Underflow Leads to RCE
- The Hacker News: 10-Year-Old NGINX HTTP/2 Flaw Lets Unauthenticated Attackers Execute Code
- Ubuntu security tracker: CVE-2026-123007 and Debian security tracker: CVE-2026-123007
- Computing for Geeks: nginx CVE-2026-123007, check, disable HTTP/2, patch
