Post

nginx CVE-2026-123007: Upgrade Now If HTTP/2 Is On

nginx fixed the HTTP/2 flaw CVE-2026-123007 on 2026-11-18. I explain how to check the version and HTTP/2 settings, why an upgrade needs a restart instead of only a reload, and the correct way to turn off HTTP/2 for now.

nginx CVE-2026-123007: Upgrade Now If HTTP/2 Is On

nginx fixed the HTTP/2 flaw CVE-2026-123007 on November 18. If an affected nginx instance has HTTP/2 enabled, an unauthenticated remote attacker may corrupt nginx memory and execute code.

I collected the commands that check the version and settings. I also used the official Docker image to confirm a step that is easy to miss. If an upgrade only replaces the binary on disk, the old program keeps serving after a reload.

Based on the official nginx security advisories, F5’s notes in the CVE record, CERT-EU, and articles from three research teams, checked on 2026-11-22 (Taipei time). Exploitation status and fixed versions may change, so use the latest official information.

Use this chart to set your patching priorities. “Patched” refers to the version installed on disk and includes distribution packages that carry the fix.

flowchart TD
  A[This nginx] --> B{"Already patched?"}
  B -->|Yes| C[Confirm new program runs]
  B -->|"No or unsure"| D{"HTTP/2 on?"}
  D -->|"Yes or unsure"| E[Upgrade at top priority]
  D -->|No| F[Upgrade for other flaws]

If you find old processes still running, follow the upgrade steps below to replace them. If you do not manage the server, share this post with your operations team.

Check three things first: version, HTTP/2 settings, and the running program

Check the version and configuration on the host or inside the container running nginx. If you are already root, omit sudo from the examples.

1. For distribution packages, check the package version

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

The first line shows the binary’s upstream version. If nginx -V runs successfully and the second line prints nothing, that binary lacks the HTTP/2 module. The nginx.org and Debian packages include it, while source builds need to enable it explicitly.

Check the release branch if you build nginx yourself or use its official packages or Docker images. On stable 1.30.x, the first fixed release is 1.30.7. On mainline 1.31.x, it is 1.31.9.

For distribution packages, use the full package version. Distributions often backport fixes, meaning they apply them to older packages while keeping the upstream version number. For example, Debian unstable’s 1.30.6-4 contains the fix for upstream 1.30.6, which the nginx advisory lists as affected.

In a Debian 12 container, I installed the patched 1.22.1-9+deb12u11, and nginx -v only showed 1.22.1.

Check the package version first. Run the one line that fits your system:

1
2
3
dpkg -l | grep nginx
rpm -qa | grep nginx
apk info -v | grep nginx

The first line is for Debian and Ubuntu, the second for the RHEL family, and the third for Alpine. Then compare against your distribution’s advisory. This table lists the first fixed package for several common releases:

DistributionFixed package versionAdvisory
Debian 12 bookworm1.22.1-9+deb12u11DLA-4918-1
Debian 13 trixie1.26.3-3+deb13u11DSA-6642-1
Ubuntu 22.04 jammy1.18.0-6ubuntu14.23USN-9159-1
Ubuntu 24.04 noble1.24.0-2ubuntu7.20USN-9159-1
RHEL 9nginx-1.20.1-32.el9_9.2RHSA-2026:100748
RHEL 10nginx-1.26.3-16.el10_3.3RHSA-2026:100744
Alpine 3.22 and 3.231.28.3-r8Alpine secdb
Alpine 3.241.30.7-r0Alpine secdb

The nginx module streams for RHEL 9 and RHEL 8 have their own advisories. If you installed with dnf module, check Red Hat’s full list. On Ubuntu 16.04, 18.04, and 20.04, the fix requires Ubuntu Pro.

2. Check HTTP/2 settings in every server block

1
sudo nginx -T

nginx -T checks the configuration on disk and prints the main file and all included files. Use the service’s executable and startup options, including any custom -c, -p, and -g options. Resolve any configuration errors before interpreting the output.

Check these two forms for each listening address, port, and virtual host.

  • listen 443 ssl http2; is the old form. It has been deprecated since 1.25.1 but still works.
  • http2 on; is the new form since 1.25.1. A setting in the http block applies to servers without their own setting.

The two forms apply to different scopes. I tested four setups with the official Docker image:

SetupResult
On a shared address and port, A has http2 on; and B has http2 off;Connections to A use HTTP/2, and connections to B use HTTP/1.1
On a shared address and port, A has listen ... http2 and B has http2 off;Both A and B use HTTP/2
One server has listen ... http2 and also http2 off;Still uses HTTP/2
Plaintext port 80 has http2 on;Accepts a client that sends HTTP/2 directly

Check the old form by listening address and port, then check the new form for each virtual host. TLS clients use SNI to tell nginx the hostname, so different names on the same address and port can give different results. Check the default virtual host too, as it handles TLS connections with a missing or unmatched hostname.

Changes on disk may still be waiting for a reload, so test each listening address, port, and hostname from a network that can reach your nginx directly. A test against a public hostname behind a CDN or load balancer may show the intermediary’s protocol. --resolve keeps the original hostname while directing the request to the nginx address you specify.

1
2
3
4
curl -sS --noproxy '*' --http2 --resolve example.com:443:192.0.2.10 \
  -o /dev/null -w '%{http_version}\n' https://example.com/
curl -sS --noproxy '*' --http2-prior-knowledge --resolve example.com:80:192.0.2.10 \
  -o /dev/null -w '%{http_version}\n' http://example.com/

Replace the hostname, address, and port with your own values. The first command checks HTTPS, and the second checks cleartext HTTP/2.

On a completed request, 2 means that connection used HTTP/2, and 1.1 means it used HTTP/1.1. If curl prints 0 or exits with an error, the result is inconclusive.

If the cleartext HTTP/2 test fails, try --http1.1 at the same address and port to verify the listener responds. Then check the cleartext listener configuration.

3. Identify the binaries nginx processes are running

nginx -v reports the version of the binary you just invoked. Find the master and worker PIDs in the process list. The master reads the configuration and manages processes, while the workers handle connections.

1
ps -e -o pid,ppid,args | grep -E '[n]ginx: (master|worker) process'

On Linux, replace 1234 with the PID to check and /usr/sbin/nginx with the binary you verified is patched. Repeat for the master and each worker in this instance.

1
2
3
4
pid=1234
patched_binary=/usr/sbin/nginx
sudo readlink "/proc/$pid/exe"
sudo stat -Lc '%d:%i %n' "/proc/$pid/exe" "$patched_binary"

(deleted) means the process still references a file removed from its original path. Use stat to compare the device and inode numbers that identify the file. Both numbers must match to confirm that the process runs the specified patched binary.

Both November 18 releases fix the flaw, and HTTP/2 takes priority

nginx fixed CVE-2026-123007 in both mainline 1.31.9 and stable 1.30.7 on 2026-11-18. Mainline, the branch with newer features, fixed 10 security issues, and stable, the branch that only takes fixes, fixed nine. The tenth issue only affects versions 1.31.4 through 1.31.8.

CVE-2026-123007 affects nginx Open Source 1.9.5 through 1.30.6 and 1.31.0 through 1.31.8 when HTTP/2 is enabled. Version 1.9.5 added HTTP/2 in September 2015.

nginx uses its own severity scale. F5, which assigned the CVE ID, uses two versions of the Common Vulnerability Scoring System (CVSS).

SourceRating
nginx official advisorymajor (nginx’s own scale of major, medium, and minor)
F5’s CVE recordCVSS 3.1 gives 8.1 (High)
CVSS 4.0 gives 9.2 (Critical)

As of 2026-11-22, both scores listed by the National Vulnerability Database (NVD) came from F5.

A proof of concept (PoC) is sample code that shows a flaw can be exploited. Reports from real deployments and the KEV catalog track evidence of exploitation in the wild.

ItemStatusSource
Public proof-of-concept codeYes, released 2026-11-18Rapid7
Reports of exploitation in the wildNone yet (as of 2026-11-18)CERT-EU
CISA’s catalog of known exploited vulnerabilities (KEV)Not listed (2026-11-20 version)CISA KEV

Research demonstrations vary, so prioritize exposed HTTP/2

Rapid7 describes a demonstration with specific network and deployment conditions.

ASLR is a defense that loads a program at different memory addresses each time. F5 says running code requires ASLR to be off or bypassed. Wiz demonstrated remote code execution on an ordinary server serving only static files and found ASLR alone insufficient.

I think successful exploitation still depends on the deployment. With a public demonstration, I would prioritize patching affected hosts that accept HTTP/2 from outside the network.

An HTTP/2 flow control miscalculation corrupts worker memory

HTTP/2 uses flow control to limit how much data each connection can carry. The receiver tells the sender how much more it can accept, and that allowance is called the window.

According to Rapid7, an attacker can make nginx miscalculate how much response data the client still allows it to send. F5 says the window can exceed its allowed maximum and cause a heap buffer overflow, which means writing past the memory that was allocated.

The flaw affects the workers that handle connections. The master usually runs as root, and workers typically run as an ordinary account such as nginx or www-data.

According to Xint, a successful attack runs commands with the worker’s privileges. Xint also chained it with a Linux kernel flaw and got root from nginx inside a Docker container. So I would not treat “the worker is not root” as a reason to wait.

Replace the running binary after upgrading

Choose a fixed release based on how you installed nginx. If your older open-source branch lacks a fix, move to one of the open-source branches below or use your distribution’s patched package.

Your versionUpgrade to
nginx stable (1.30.x)1.30.7 or later
nginx mainline (1.31.x)1.31.9 or later
NGINX Plus 37.0.x37.0.8.1 or later
NGINX Plus 37.1.0 up to but excluding 37.3.0.137.3.0.1 or later
Distribution packagesThe package versions under “Check three things first”

The NGINX Plus versions come from F5’s CVE record. It lists affected R-series releases starting at R33, including R34 through R36, which CERT-EU names. The record lists no fixed release for the R series, so follow F5’s advisory to move to a patched branch.

Version 1.31.9 also starts rejecting header lines without a colon, and chunked request bodies with excessive framing overhead. Version 1.30.7 has only security fixes, so stable users will not hit these behavior changes when they upgrade.

A reload does not replace the binary

In the official 1.30.6 image, I replaced the binary on disk with 1.30.7 to simulate a package upgrade. Then I checked which version actually answered connections after each step:

Stepnginx -vVersion in response header/proc/<pid>/exe
After replacing the binary1.30.71.30.6(deleted)
Then nginx -s reload1.30.71.30.6(deleted)
After a restart1.30.71.30.7Normal

A reload only makes the master reread the configuration and start a new set of workers. The master itself is still the old binary, and the new workers are forked from it. Xint’s article also states that reloading the configuration does not replace the running program.

Some packages attempt to replace the running binary during an upgrade. The nginx.org deb and rpm packages try to do this without downtime, but the package upgrade can still report success if the swap fails. I use the /proc check above to see if any old processes are still running.

For nginx installed directly on a host, a restart can replace old processes that are still running. If your service can tolerate a brief interruption, restart once the configuration test passes. Use the service’s custom configuration file or startup options for the test, where applicable.

1
sudo nginx -t && sudo systemctl restart nginx

On systems that use OpenRC, such as Alpine, use this command.

1
sudo nginx -t && sudo rc-service nginx restart

A restart can interrupt existing connections. If your service cannot tolerate an interruption, follow the nginx docs to replace the binary without downtime.

During a live upgrade, the original PID file may already point to the new master. The old master’s PID goes into the file with an .oldbin suffix, and both sets of workers can still serve traffic. After the upgrade, use the process list and /proc to verify that every serving worker runs the patched binary and the old workers have exited.

If you run nginx in containers, switch to a new image such as nginx:1.30.7 and redeploy. Restarting a container from the same old image does not update it.

F5 products have their own fixed releases. The F5 advisory lists 2.9.0 for NGINX Gateway Fabric 2.x. It lists 5.8.0 for NGINX Ingress Controller 5.x and 2026-lts-r11 for its LTS branch.

Check the same advisory for other branches.

The Kubernetes community’s ingress-nginx stopped being maintained in March 2026. If you use it, check the advisories for your branch or from your cloud provider.

Turn off exposed HTTP/2 on nginx if you cannot upgrade yet

CERT-EU, Xint, and Wiz recommend turning off exposed HTTP/2 if you cannot upgrade right away. This reduces the risk from CVE-2026-123007 and CVE-2026-123633. F5’s CVE record lists no mitigation, and the other flaws fixed in these releases still require an upgrade.

Before turning off HTTP/2, check whether your clients depend on it. gRPC runs on HTTP/2, so clients will lose access to a gRPC service served through grpc_pass if you turn HTTP/2 off for that service. Browsers can fall back to HTTP/1.1 or use HTTP/3 where available.

If HTTP/3 is enabled, you still need to patch CVE-2026-121810.

CERT-EU describes two ways to disable HTTP/2. Which one you need depends on how your configuration enables it.

Current configurationWhat to change
Only the old listen ... http2 formRemove http2 from every server’s listen directive on that address and port
Only http2 on;Make sure http2 off; applies to each server, accounting for settings inherited from the http block
Both formsChange both settings. An old listen ... http2 still enables HTTP/2 even if you set http2 off;

When both forms are present, the edited server block can look like this.

1
2
3
4
5
server {
    listen 443 ssl;    # removed the original http2
    http2 off;         # was http2 on;
    # other settings unchanged
}

The http2 directive first appeared in 1.25.1. Check the default virtual host and cleartext listeners such as port 80 as well.

flowchart TD
  A[Back up config] --> B[Check each listener]
  B --> C[Disable active settings]
  C --> D["Check with nginx -t"]
  D -->|Errors| C
  D -->|OK| E[Reload]
  E --> F[Wait for old workers]
  F --> G[Verify each listener]

If you only changed the configuration, reload after the test passes.

1
sudo nginx -t && sudo nginx -s reload

After the reload, check the error log for configuration errors. Open HTTP/2 connections may still be on the old workers. Check whether any workers are still shutting down.

1
ps -eo pid,args | grep '[w]orker process is shutting down'

After the old workers exit, use the earlier curl commands to verify each listener. Endpoints that should still serve HTTPS should respond over HTTP/1.1. For cleartext listeners, use the earlier tests and check their configuration.

If you need to close existing connections immediately, use the restart commands above and plan for a service interruption.

Once you confirm that the patched binary is serving, restore the HTTP/2 settings you need.

Upgrade even without HTTP/2, because the same release fixes other flaws

CVE-2026-123007 affects deployments with HTTP/2 enabled. The same updates fix flaws in other features, including HTTP/3 and mail proxying. According to CERT-EU, five of these flaws, including CVE-2026-123007, may allow an unauthenticated remote attacker to execute code.

This table is based on the official nginx advisories. The “Feature involved” column comes from the advisory titles:

CVEIssuenginx ratingFeature involved
CVE-2026-123633use-after-freemediumHTTP/2 reverse proxy
CVE-2026-121810use-after-freemediumHTTP/3
CVE-2026-123634use-after-freemediumresolver
CVE-2026-113425use-after-freemajormail proxy
CVE-2026-118899infinite loopmajorreading the request body over TLS 1.3
CVE-2026-125283buffer overflowminoralias with try_files
CVE-2026-120967SNI bypassmediumclient certificate verification in the stream module
CVE-2026-123640insufficient validationminorssl_preread in the stream module
CVE-2026-120993NULL pointerminorPROXY protocol v2, only 1.31.4 through 1.31.8

Use-after-free means a program keeps using memory it has already freed.

Watch the first row closely. nginx rates it medium, but F5 gives it the same CVSS scores as CVE-2026-123007, 8.1 and 9.2. According to F5, it triggers when nginx reverse-proxies to a backend and the worker is close to running out of connections.

The official nginx advisory page currently shows CVE-2026-121810 as “CVE-CVE-2026-121810”, which breaks its link. Use the correct ID when you look it up.

This update includes fixes for the five issues announced on October 14. Those fixes first shipped in mainline 1.31.7 and stable 1.30.6. I would upgrade to apply the fixes relevant to my deployment in one go.

A worker crash in the logs does not mean you were compromised

CERT-EU recommends monitoring for worker crashes, which leave records like these in the error log:

1
sudo grep 'exited on signal' /var/log/nginx/error.log

A matching line looks like worker process 165 exited on signal 11. CERT-EU treats such crashes as a possible sign of an attempt. Xint points out that workers also crash for unrelated reasons, so check for unusual process activity.

According to Xint, a worker starting an unexpected program is a stronger sign. The example finds the master using its PID file and checks whether any of its child processes started other processes. Adjust the path to match the service’s pid setting. Alpine packages use /run/nginx/nginx.pid.

1
ps --ppid "$(pgrep -d, -P "$(cat /run/nginx.pid)")" -o pid,user,args

This command needs a version of ps that supports --ppid and only shows processes that are still running. For past activity, check the process creation logs from auditd or your endpoint protection tool. Xint also warns that this kind of attack may leave very little trace in the access log.

If a host exposed HTTP/2, ran an affected version, and shows a suspicious child process, I would treat it as compromised:

  1. Restrict its external network access, and keep the logs and disk snapshots.
  2. Rebuild the host from a trusted clean image.
  3. From a clean environment, rotate the credentials, API tokens, and passwords the worker could read.

If nginx handles TLS and its workers can access the private keys, I would replace those keys too. I infer that code running with worker privileges could read keys available to the worker. Rebuilding the host and rotating credentials address a compromise that may already have happened before patching.

Even with the right version, confirm the new program is running

After upgrading, I use the process list and /proc to verify that the patched binary is serving and the old workers have exited.

I ran into the same “package updated, old service still running” problem in CVE-2026-123158: OpenSSH Password Bypass on Alpine (musl). That time, sshd had not been restarted.

If PHP-FPM sits behind nginx, PHP has its own exploited flaw to fix: php2shell. Restarting nginx does not replace PHP processes, so restart PHP-FPM separately. See PHP CVE-2026-109618: How to Fix Exploited php2shell Flaws.

Main sources

This post is licensed under CC BY 4.0 by the author.