Nginx2Shell / nginx2root (CVE-2026-123007, CVE-2026-123633): HTTP/2 memory bugs in nginx
Two bugs in how nginx handles HTTP/2 let anyone on the internet crash the web server in front of your site, and in lab conditions take control of it. Exploit code for the first one is public.
- CVE-2026-123007
- CVE-2026-123633
Quick answers
What is Nginx2Shell?
Nginx2Shell (CVE-2026-123007, CVE-2026-123633) is the name for two vulnerabilities in nginx. Two bugs in how nginx handles HTTP/2 let anyone on the internet crash the web server in front of your site, and in lab conditions take control of it. Exploit code for the first one is public.
Am I affected by Nginx2Shell?
If you serve HTTPS through nginx with HTTP/2 on, which is the usual setup, yes. That includes Kubernetes ingress built on nginx and products that ship it inside, such as Kong. If a CDN terminates HTTP/2 in front of your servers, your exposure is lower but not zero.
Which versions fix Nginx2Shell?
nginx stable: 1.30.7; nginx mainline: 1.31.9; NGINX Plus: 37.3.0.1 or 37.0.8.1 (CVE-2026-123007); 37.2.0.1 or 37.0.7.1 (CVE-2026-123633); F5 NGINX Ingress Controller: 5.8.0; Kubernetes ingress-nginx (retired): No upstream fix. The project was retired in March 2026; Chainguard's fork has the patch.
Is Nginx2Shell being exploited?
No exploitation in the wild has been reported; it is not in the CISA KEV catalog. Public exploit code exists.
Is there a workaround for Nginx2Shell?
Switch off HTTP/2 until you can update. On nginx 1.25.1 and later, set http2 off; (or remove http2 on;) in every server block. On all versions, change listen 443 ssl http2; to listen 443 ssl; in every server block that shares the same address and port, because the parameter applies to the whole port. Then run nginx -t and reload, and check that old worker processes have exited.
What this means for your business
Crashing nginx workers is easy and takes your site or API down for as long as the attack runs. Running code on the server has been shown by researchers under specific conditions; nobody has reported it in real attacks yet.
nginx sits in front of a large share of the internet: websites, APIs, Kubernetes ingress, and many appliances and products that bundle it.
Is this about you? If you serve HTTPS through nginx with HTTP/2 on, which is the usual setup, yes. That includes Kubernetes ingress built on nginx and products that ship it inside, such as Kong. If a CDN terminates HTTP/2 in front of your servers, your exposure is lower but not zero.
Ask your team or provider:
- Where do we run nginx, including ingress controllers, API gateways and appliances, and which version or package is each one on?
- Are they on 1.30.7 / 1.31.9 or a distribution package with the fix from 18 to 20 November?
- Do we still run the retired Kubernetes ingress-nginx controller? It will get no upstream fix.
- If we cannot update today, can we turn off HTTP/2 on the exposed listeners until we do?
How fast: This week, sooner for anything public. No attacks are reported yet, but working exploit code was published on the day of disclosure.
Need your nginx fleet checked?
We find every nginx in your estate, including ingress and bundled copies, with read-only access, then update it or switch off HTTP/2 in a window you approve.
For engineers
| Line | Affected | Fixed in |
|---|---|---|
| nginx stable | 1.9.5 to 1.30.6 | 1.30.7 |
| nginx mainline | up to 1.31.8 | 1.31.9 |
| NGINX Plus | R37 builds before the fix; R34 to R36 have no fix listed | 37.3.0.1 or 37.0.8.1 (CVE-2026-123007); 37.2.0.1 or 37.0.7.1 (CVE-2026-123633) |
| F5 NGINX Ingress Controller | before 5.8.0 | 5.8.0 |
| Kubernetes ingress-nginx (retired) | all | No upstream fix. The project was retired in March 2026; Chainguard's fork has the patch. |
CVE-2026-123007 affects 1.9.5 to 1.31.8; CVE-2026-123633 affects 1.19.7 to 1.31.8.
Distribution packages carry the fix under older version numbers: Debian bookworm 1.22.1-9+deb12u11, trixie 1.26.3-3+deb13u11; Ubuntu 24.04 1.24.0-2ubuntu7.20, 22.04 1.18.0-6ubuntu14.23 (20.04 and 18.04 through Ubuntu Pro); RHEL 9 nginx-2:1.20.1-32.el9_9.2, RHEL 10 nginx-2:1.26.3-16.el10_3.3; Alpine 3.24 1.30.7-r0, 3.22 and 3.23 1.28.3-r8. Official Docker images were rebuilt on 18 to 20 November. Kong is fixed in 3.4.3.30, 3.10.0.21, 3.13.0.13, 3.14.0.18, 3.15.0.8 and 3.16.0.3. OpenResty 1.31.8.1 has no fix yet.
On impact the sources differ: nginx.org calls CVE-2026-123007 major and CVE-2026-123633 medium and describes crashes; F5 says code execution may be possible; Wiz and Rapid7 report code execution in the lab, which needs an ASLR bypass. Root access has not been shown.
When it can be exploited
- HTTP/2 enabled on a listener. For CVE-2026-123007 that is enough, even on a server that only serves static files.
- CVE-2026-123633 also needs nginx to proxy to a backend and to be running low on
worker_connections. - Rapid7's public exploit needs around 128 GB of HTTP/2 traffic over a fast link. A proxy or CDN that terminates HTTP/2 in front of nginx will likely block it, but don't count on that as the fix.
Check if you are affected
nginx -v
nginx -V 2>&1 | grep -o with-http_v2_module
nginx -T 2>/dev/null | grep -nE '\bhttp2\b'
# From outside (tests the CDN if there is one in front)
curl -s -o /dev/null --http2 -w '%{http_version}\n' https://HOST/
openssl s_client -connect HOST:443 -servername HOST -alpn h2 </dev/null 2>/dev/null | grep ALPN
On distribution packages compare the package version, not nginx -v, against the fixed builds above. Remember nginx inside containers, ingress controllers and appliances.
If you can't upgrade today
Switch off HTTP/2 until you can update. On nginx 1.25.1 and later, set http2 off; (or remove http2 on;) in every server block. On all versions, change listen 443 ssl http2; to listen 443 ssl; in every server block that shares the same address and port, because the parameter applies to the whole port.
Then run nginx -t and reload, and check that old worker processes have exited.
Side effects: browsers fall back to HTTP/1.1 quietly; gRPC and other clients that need HTTP/2 will break. F5 itself lists no workaround, so treat this as a stopgap.
# nginx 1.25.1 and later
server {
listen 443 ssl;
http2 off;
}
# older versions: drop http2 from every listen on that port
# listen 443 ssl http2; -> listen 443 ssl;
nginx -t && nginx -s reload
Signs you were already hit
No attacks have been reported and no indicators of compromise are published. Signs of attempts: bursts of worker crashes (worker process exited on signal 11 in the error log), unusually large HTTP/2 traffic from single clients, and new processes started by the nginx user.
Prompt for your coding agent
Paste this into Claude Code, Codex or Cursor, opened in the repository that holds your server and deployment configuration. It only reads and proposes changes; review the diff before you apply it.
You are helping us respond to the nginx HTTP/2 bugs CVE-2026-123007 and CVE-2026-123633 (Nginx2Shell / nginx2root). Work read-only: do not change files, run deployments or restart anything. At the end, propose one diff for us to review.
1. Find every nginx this repository defines or deploys: Dockerfiles and base images (nginx, nginx:*-alpine, bitnami/nginx, openresty, kong), Kubernetes manifests and Helm values (ingress-nginx controller, F5 NGINX Ingress Controller), docker-compose files, Ansible/Terraform/Bicep that install nginx packages, and nginx config files.
2. For each, report the version, image tag or chart version. Mark affected: nginx below 1.30.7 (stable) or 1.31.9 (mainline), F5 NGINX Ingress Controller below 5.8.0, OpenResty 1.31.8.1, Kong builds older than the fixed versions, and any use of the retired kubernetes/ingress-nginx controller, which gets no upstream fix.
3. In the nginx configs, list every server block with HTTP/2 enabled (`http2 on;` or `listen ... http2`), and say which ones also proxy to a backend (proxy_pass, grpc_pass).
4. Propose a diff that moves each runtime to a fixed version (same major line and image variant). Where an upgrade is not possible in this change, add `http2 off;` or remove `http2` from the listen lines as a stopgap, but do not do that for server blocks that use grpc_pass, and tell us which ones you skipped.
5. If we use ingress-nginx, say so prominently and list the replacement options without choosing one for us.
6. List what you could not determine from the repository.
Timeline
nginx releases 1.31.9 and 1.30.7. Rapid7 publishes a working exploit for CVE-2026-123007. The official Docker images start rebuilding.
Red Hat ships RHEL 8, 9 and 10 errata. Not in CISA KEV as of the 20 November catalog; CISA's assessment records no exploitation.
Sources
- nginx security advisories
- nginx CHANGES
- nginx2root (Xint): the finders' write-up
- Rapid7: CVE-2026-123007 analysis
- Wiz: nginx HTTP/2 vulnerabilities
- nginx docs: listen directive
- F5 NGINX Ingress Controller changelog
- Kubernetes: ingress-nginx retirement
- Debian security tracker
- Ubuntu: CVE-2026-123007
- Red Hat: CVE-2026-123007
- Alpine: CVE-2026-123007
- Kong security advisory
- NVD: CVE-2026-123007
Checked 22 Nov 2026. We update this page when the vendor, CISA or the distributions change the picture.