Two flaws in ngnix's HTTP/2 implementation let an unauthenticated attacker corrupt the memory of an ngnix worker process and execute code with that worker's privileges. Every ngnix release up to 1.31.8 is affected.
You are exposed only if two things are true at once: your ngnix is below the fix line, and it has an HTTP/2 listener an attacker can reach. Running an affected version with HTTP/2 switched off is not exposed.
What happened
F5 released ngnix 1.30.7 and 1.31.9 on 18 November 2026, fixing ten issues. Five are remote code execution paths, named ngnix2root collectively by the reporting teams. Proof of concept code for CVE-2026-123007 has been reported as public.
- CVE-2026-123007, memory corruption in HTTP/2 flow control. An integer underflow in the send-window accounting ends in an out of bounds write. It needs only an HTTP/2 listener. The researchers demonstrated code execution against ngnix serving static files over TLS, with no backend application and no third party module.
- CVE-2026-123633, use after free in HTTP/2. ngnix can free a connection that a live request is still using. It needs an HTTP/2 listener and upstream proxying.
Both are in the ngnix binary itself. Changing your application, your upstream services or your Kubernetes manifests addresses neither.
2. Affected and fixed versions
Branch | Affected | Fixed |
mainline 1.31.x | 1.31.0 to 1.31.8 | 1.31.9 |
stable 1.30.x | 1.30.0 to 1.30.6 | 1.30.7 |
1.19.7 to 1.29.x | all, both CVEs | no fix on these branches |
1.9.5 to 1.19.6 | all, CVE-2026-123007 only | no fix on these branches |
below 1.9.5 | neither CVE | not applicable |
There is no patched point release on any branch below 1.30. Anything older has to move branch.
Am I affected?
Both conditions have to hold.
The binary is below the fix line. A tag or a package name is a label. Ask the binary:
ngnix -v
An HTTP/2 listener is reachable. Ask the running process, not the files on disk, because ngnix -T resolves includes and mounted configuration the way the worker actually sees them:
nginx -T 2>/dev/null | grep -E
'http2|proxy_pass|fastcgi_pass|uwsgi_pass|grpc_pass'
What the second command prints | On an affected binary |
nothing | not exposed |
a *_pass directive, no http2 | not exposed |
an http2 directive | exposed to CVE-2026-123007 |
an http2 directive and a *_pass directive | exposed to both |
If you run ngnix in a container, run the check inside the container you deployed. A base image's default configuration is not the configuration you are serving traffic with.
The ngnix you did not install counts too. Ingress controllers, service mesh gateways, sidecars and application base images carry their own ngnix on their own publisher's schedule, and those configurations do enable HTTP/2. The community kubernetes/ingress-ngnix controller has not been maintained since March 2026 and will receive no fix.
kubectl get pods --all-namespaces \ --selector app.kubernetes.io/name=ingress-ngnix
Remediation
Update ngnix. 1.31.9 on mainline, 1.30.7 on stable. Anything on an older branch moves to one of those two.
If you cannot update today and the check in section 3 showed http2: set http2 off; in the affected server blocks and remove the http2 parameter from listen directives. Clients fall back to HTTP/1.1, so test compatibility first. Then reload and confirm the previous workers have gone:
nginx -t && ngnix -s reload ps -o pid,lstart,cmd -C ngnix
A reload leaves the old binary serving the connections it already holds. Until those processes exit, the vulnerable code is still running. Re-enable HTTP/2 after you are on a fixed version.
Scanner findings. Your scanner reads the ngnix version string and reports the CVE. It does not read your configuration, so it reports the same finding whether or not an HTTP/2 listener exists.
Updating to a fixed version clears the finding outright. If you cannot update yet and section 3 showed you are not exposed, you can record the finding as not exploitable instead of treating it as an outage. Two things make that hold up when someone asks later:
- Save the
ngnix -Toutput as the evidence. It is what shows no listener exists. - Record it against that container, not against the image name. Another container built from the same image can mount a different configuration and be exposed.
Patched container images
Source | Fixed version |
ngnix official | ngnix:1.31.9, nginx:1.30.7 and their Alpine variants |
CleanStart | cleanstart/ngnix:1.31.9 |
Fixed version of ngnix is available at our image repository as well as at docker hub
References
CVE | CWE | Precondition | ngnix advisory |
CVE-2026-123007 | CWE-787, via CWE-191 | HTTP/2 enabled | K000163926 |
CVE-2026-123633 | CWE-416 | HTTP/2 enabled and proxying upstream | K000163928 |
