Dexaloop › Tech › Security and privacy

Security and privacy · How-to

nginx2root: how to check if your NGINX is affected, and how to patch it

Five NGINX flaws, led by an HTTP/2 memory corruption bug, are fixed in 1.30.7 and 1.31.9, and the fix only works once the old binary stops running.

By DexaloopPublished 23 November 202610 min readSources listed below

Key takeaways

  • nginx.org says NGINX 1.31.9 (mainline) and 1.30.7 (stable) fix CVE-2026-123007, the HTTP/2 flow control bug at the centre of nginx2root. Versions 1.9.5 to 1.31.8 are vulnerable.
  • If you use your distribution's package, the version number can stay old and still be fixed. Check the full package version against your distribution's security tracker.
  • After updating, restart NGINX. nginx.org's docs show that a reload only re-reads the configuration and keeps the old program running.
  • Turning HTTP/2 off is a stopgap for the two HTTP/2 bugs only. It does not cover the HTTP/3, resolver or mail proxy bugs.
  • Rapid7 and Censys have published proofs of concept. How hard full code execution is remains disputed, and no exploitation in the wild had been publicly confirmed in the sources we checked.
On this page
  1. What nginx2root is, in plain words
  2. The five flaws, and which versions are affected
  3. What you need before you start
  4. Step 1: Check your NGINX version
  5. Step 2: Check whether HTTP/2 is built in and turned on
  6. Step 3: Check what the internet can reach
  7. Step 4: Update, then restart, not reload
  8. Docker and Kubernetes
  9. If you cannot update yet: turn off HTTP/2
  10. How serious is it? What is confirmed and what is disputed
  11. Troubleshooting

nginx2root is the name for a group of NGINX vulnerabilities fixed on 18 November 2026, led by CVE-2026-123007, a memory corruption bug in HTTP/2 flow control. To be safe, update to NGINX 1.30.7 or 1.31.9 (or a distribution package that contains the fix), then restart NGINX. A reload does not swap the running program. If you cannot update today, turning HTTP/2 off blocks the two HTTP/2 bugs, but not the others.

This guide walks through four checks: which version you run, whether HTTP/2 is on, whether the internet can reach it, and whether the patched binary is actually running. It covers plain servers, distribution packages, Docker and Kubernetes.

What nginx2root is, in plain words

NGINX is the web server and reverse proxy in front of a large share of websites and apps. HTTP/2 is a newer way for browsers to talk to it, where many requests share one connection. To stop one side flooding the other, HTTP/2 uses "flow control": each side tracks how much data the other is allowed to send.

Qualys describes the main bug this way: NGINX can miscount a client's data allowance when the client cancels requests at the right moment, which leads to out of bounds memory copies. In most cases that crashes an NGINX worker. Where memory layout protection (ASLR) is defeated, it can lead to code execution as the worker process.

The "2root" part comes from a second step. According to BleepingComputer, the researchers at Xint say a separate Linux kernel flaw in the SCTP subsystem can be used to escape an NGINX Docker container and gain root on the host. Qualys reported on 18 November that this kernel flaw had no CVE and no patch yet. Patching NGINX removes the remote way in; it does not fix the kernel bug.

The five flaws, and which versions are affected

Qualys groups five bugs under the nginx2root name. The affected and fixed versions below are from nginx.org's security advisories. The last column is from Qualys.

CVEnginx.org title (severity)VulnerableFixed inDoes turning off HTTP/2 help?
CVE-2026-123007Memory corruption in HTTP/2 flow control (major)1.9.5 to 1.31.81.31.9+, 1.30.7+Yes
CVE-2026-123633Use-after-free in HTTP/2 (medium)1.19.7 to 1.31.81.31.9+, 1.30.7+Yes
CVE-2026-121810Use-after-free in HTTP/3 (medium)1.25.0 to 1.31.81.31.9+, 1.30.7+No
CVE-2026-123634Use-after-free during response processing in resolver (medium)0.6.18 to 1.31.81.31.9+, 1.30.7+No
CVE-2026-113425Use-after-free in mail proxy module (major)0.5.33 to 1.31.81.31.9+, 1.30.7+No

The same 18 November release fixed five more bugs that are not part of the nginx2root group, so updating is worth it even if you do not use HTTP/2. nginx.org rates CVE-2026-123007 "major". Qualys reports F5's scores for it as 9.2 under CVSS v4.0 and 8.1 under CVSS v3.1.

A quick note on branches: 1.31.x is NGINX's mainline branch and 1.30.x is the stable branch. Both got a fix. The idea is similar to the release lines explained in our guide to Node.js LTS vs Current.

What you need before you start

  • Shell access to the server, with sudo for the commands below.
  • Knowing where your NGINX came from: nginx.org packages, a source build, your Linux distribution, Docker or Kubernetes. The answer changes how you read the version number.
  • A machine outside your network for the HTTP/2 test in Step 3.
  • A way to restart NGINX, such as systemd, and your distribution's security tracker if you use its package.
Run nginx -v nginx.org, source or official Docker Stable 1.30.7+ or mainline 1.31.9+ is fixed Distribution package Compare the full package version with your distribution's tracker Not fixed? Update to 1.30.7 or 1.31.9, or the distribution's fixed package Then restart NGINX A reload keeps the old program running Cannot update today? Turn HTTP/2 off: covers only CVE-2026-123007 and CVE-2026-123633
Which fix applies to you: check the version, update if it is not fixed, then restart. HTTP/2 off is only a stopgap.

Step 1: Check your NGINX version

On the server, run:

nginx -v

This prints the upstream version, such as nginx/1.31.8. What it means depends on where your NGINX came from.

  • From nginx.org packages, a source build or the official Docker image: the version number is the answer. 1.30.7 or later on stable, or 1.31.9 or later on mainline, is fixed.
  • From your Linux distribution (apt, dnf and so on): the version number alone does not tell you. Distributions backport fixes into older versions. Check the full package version instead:
# Debian and Ubuntu
dpkg -l nginx

# Fedora, RHEL and similar
rpm -q nginx

Then compare it with your distribution's tracker. Our worked example below shows how.

Worked example: an Ubuntu 24.04 server

Say nginx -v prints nginx/1.24.0. That looks far older than 1.30.7, but it is not the full story. On 23 November 2026, Ubuntu's page for CVE-2026-123007 listed 24.04 LTS as "Fixed in 1.24.0-2ubuntu7.20". So if dpkg -l nginx shows 1.24.0-2ubuntu7.20 or later, the fix is installed. If it shows an earlier build, run sudo apt update && sudo apt install --only-upgrade nginx, then go to Step 4.

Debian works the same way. On 23 November, the Debian security tracker listed bookworm (security) as fixed in 1.22.1-9+deb12u11 and trixie (security) as fixed in 1.26.3-3+deb13u11. Package status changes quickly, so read the tracker for your release rather than relying on these lines. Our guide on checking an Android security patch level explains the same idea from the phone side: the patch date matters more than the version name.

Step 2: Check whether HTTP/2 is built in and turned on

The two HTTP/2 bugs only matter if HTTP/2 is compiled in and enabled. Qualys suggests two checks. First, is the module built in?

nginx -V 2>&1 | grep -o with-http_v2_module

If this prints nothing, your build has no HTTP/2 module. The nginx.org module docs say it "is not built by default" and needs --with-http_v2_module. Do not assume either way: the command above tells you for sure.

Second, is it turned on anywhere in your configuration? This prints the full loaded configuration, removes comments and looks for both ways of enabling HTTP/2:

sudo nginx -T 2>/dev/null | sed 's/#.*//' | grep -nE 'listen[[:space:]].*http2|^[[:space:]]*http2[[:space:]]+on[[:space:]]*;'

Any line printed means HTTP/2 is enabled somewhere. The http2 on; form appeared in NGINX 1.25.1, according to nginx.org. Older configurations enable it with http2 on the listen line.

Step 3: Check what the internet can reach

From a machine outside your network, Qualys suggests testing whether the server offers HTTP/2 during the TLS handshake (replace example.com with your host):

openssl s_client -connect example.com:443 -servername example.com -alpn h2 </dev/null 2>&1 | grep -E 'ALPN protocol:|No ALPN negotiated'

"ALPN protocol: h2" means HTTP/2 is accepted. Qualys notes that a CDN or load balancer in front may answer this itself, so test the NGINX port directly where you can. Rapid7's Stephen Fewer also said a proxy between the attacker and the server could make the attack less likely to work, according to BankInfoSecurity. Even so, patch the NGINX behind it.

The ALPN test only sees HTTP/2 over TLS. NGINX can also accept cleartext HTTP/2 (for example listen 80 http2;), and "No ALPN negotiated" does not rule that out. Test port 80 too:

curl -s -o /dev/null -w "%{http_version}\n" --http2-prior-knowledge http://example.com/

If it prints 2, cleartext HTTP/2 is accepted. The nginx -T check in Step 2 already catches listen ... http2 lines on any port, including this case.

Step 4: Update, then restart, not reload

  1. Install the fixed build. Use your package manager, the nginx.org repository, or rebuild from source with 1.30.7 or 1.31.9.
  2. Test the configuration. Run sudo nginx -t before you restart, so a typo does not take the site down.
  3. Restart NGINX. On most systemd servers: sudo systemctl restart nginx.
  4. Confirm the new process. Run ps -o pid,lstart,cmd -C nginx. The master process start time should be after your update.

Why not a reload? nginx.org's guide to controlling NGINX says a reload (the HUP signal) makes the master process re-read the configuration and start new workers with it. The program in memory stays the same. Replacing the program without a restart is a separate, documented procedure ("Upgrading Executable on the Fly") that uses the USR2 signal. If you are not sure which you did, a full restart is the simple answer.

Docker and Kubernetes

On 18 November, the official docker-nginx repository updated mainline to 1.31.9 and stable to 1.30.7. A running container does not change by itself. If your compose file or manifest pins a version tag such as nginx:1.31.8, change it to 1.31.9 or 1.30.7 first, or pulling fetches the same vulnerable image again. Then pull the new image and recreate the container:

docker exec <container> nginx -v      # check what is running now
docker compose pull && docker compose up -d

If you build your own image on top of nginx, rebuild it too. Qualys adds that machine images, Helm charts and autoscaling templates need updating, or the next scale out brings the old build back.

On Kubernetes, check which controller you run. Qualys says F5's NGINX Ingress Controller 5.8.0 and NGINX Gateway Fabric 2.9.0 move to NGINX 1.31.9. The community ingress-nginx project is different. The Kubernetes blog said that after best effort maintenance ended in March 2026 there would be no further releases or security fixes. The same post gives this command to find it in a cluster:

kubectl get pods --all-namespaces --selector app.kubernetes.io/name=ingress-nginx

If that returns pods, plan a move to a maintained controller rather than waiting for a patch.

If you cannot update yet: turn off HTTP/2

As a short term stopgap, remove http2 from your listen lines and set http2 off; (or delete http2 on;, since nginx.org lists the default as off). Then run sudo nginx -t and reload. A reload is fine here, because you are only changing configuration.

Know the limits, which Qualys spells out:

  • It covers only CVE-2026-123007 and CVE-2026-123633. The HTTP/3, resolver and mail proxy bugs remain.
  • Clients fall back to HTTP/1.1. Anything that needs HTTP/2, such as gRPC, stops working, so test first.
  • A later configuration change can quietly turn it back on. Write down who owns the change and when it ends.

How serious is it? What is confirmed and what is disputed

Researchers do not agree on how practical the attack is, so here is who says what.

  • Confirmed by nginx.org: the CVEs, the vulnerable ranges and the fixed versions 1.30.7 and 1.31.9, released 18 November 2026.
  • Rapid7: its write-up says code execution "requires a significant amount of network traffic to be transmitted, approximately 128 GB of HTTP/2 data", which it estimates at about two minutes on a 10 Gbit/s link and about seventeen minutes on 1 Gbit/s. It says its method depends on a specific x86-64 glibc memcpy routine. Rapid7 has released a proof of concept, demonstrated against NGINX 1.31.8 in a Docker image.
  • Xint (as reported by Qualys): says its own exploit works over public IPs on AWS, GCP and Azure, and it is holding back the final steps.
  • Censys: SecurityWeek reports that Censys reproduced the CVE-2026-123007 behaviour in its lab over cleartext HTTP/2 without generating the large traffic volume Rapid7 reported, and published its own proof of concept on GitHub. BleepingComputer reports that Censys reproduced the underlying memory corruption conditions in four of the five flaws in lab testing, but did not achieve remote code execution. Its exposure tracker estimated about 8.8 million NGINX services potentially exposed to CVE-2026-123007 as of 19 November, based on version numbers and HTTP/2 support.
  • Exploitation in the wild: Qualys said on 18 November there was no public confirmation, and Rapid7's post does not report any. We have not seen F5 say it is exploited in the wild. Check F5's advisory K000163926 for changes.

The practical reading: full code execution is hard today, but two public proofs of concept exist, one of them without the large traffic volume, and the fix is a routine update. Patch and restart now rather than waiting.

Troubleshooting

nginx -v still shows the old version after updating

If you use a distribution package, that can be normal; check the full package version from Step 1. If you use nginx.org packages or source, the new binary may not be the one on your path, or the package did not install. Run which nginx and update again.

The site went down after the restart

Run sudo nginx -t to see the configuration error, fix it, and start NGINX again. Testing before every restart avoids this.

The ALPN test still shows h2 after you turned HTTP/2 off

Something in front of NGINX, such as a CDN or load balancer, may be answering. Or another server block on the same port still enables HTTP/2. Re-run the nginx -T check from Step 2.

Running other self-hosted software on the same box? The same habits (update, verify the running version, cut needless internet exposure) apply. Our Plex2Shell guide shows them for a home media server.

Questions

What is nginx2root?

It is the public name for a group of NGINX vulnerabilities disclosed on 18 November 2026, led by CVE-2026-123007, a memory corruption bug in HTTP/2 flow control. Researchers chained it with a separate Linux kernel flaw to reach root, which is where the "2root" comes from.

Which NGINX version fixes nginx2root?

nginx.org lists 1.31.9 and later (mainline) and 1.30.7 and later (stable) as not vulnerable to CVE-2026-123007 and the other bugs fixed the same day. If you use a distribution package, a fixed build can carry an older version number, so check your distribution's tracker.

Is nginx2root being exploited in the wild?

Qualys said on 18 November that there was no public confirmation of exploitation in the wild, and Rapid7's post does not report any. SecurityWeek reported on 19 November that F5 makes no mention of exploitation in the wild. Rapid7 and Censys have published proofs of concept. Check F5's advisory K000163926 for the current status.

Does turning off HTTP/2 protect me?

Only partly. Qualys says disabling HTTP/2 covers CVE-2026-123007 and CVE-2026-123633, the two HTTP/2 bugs. It does not cover the HTTP/3, resolver or mail proxy bugs, and it can break services that need HTTP/2, such as gRPC. Use it only until you can update.

My Ubuntu server says nginx 1.24.0. Is it vulnerable?

Not necessarily. Ubuntu backports fixes. Its tracker lists 24.04 LTS as fixed in package 1.24.0-2ubuntu7.20, so nginx -v still says 1.24.0. Compare your full package version with that row.

Is reloading NGINX enough after the update?

No. nginx.org's documentation says a reload makes the master process re-read the configuration and start new workers. The running program is not replaced. Restart NGINX, or use the documented USR2 binary upgrade, so the patched binary runs.

Sources

Written from the sources above and checked against them before publishing. Found a mistake? Email support@dexaloop.com and we will correct it.

More in Security and privacy