NGINX’s stream module gained SNI-selected virtual servers in 1.25.5, and with them a gap: when a stream virtual server other than the default requires client certificates with ssl_verify_client on, “an attacker who is able to complete the SSL handshake synchronously might cause client SSL certificates to be verified using the configuration of the default server rather than the virtual server selected by SNI”, in the words of the 1.31.9 changelog. If the default server does not require a client certificate, the attacker reaches the protected upstream without one. F5 calls it a client-certificate verification bypass on the data plane and scores it 4.8 under CVSS 3.1 and 6.3 under 4.0; it is one of the ten flaws fixed in the 18 November 2026 NGINX set. Upgrade to NGINX 1.31.9 or 1.30.7 (NGINX Plus R37.3.0.1 or R37.0.8.1), and until then require client certificates in the default stream server as well as the named ones.
CVE-2026-120967 at a glance.
| Component | NGINX Open Source and NGINX Plus, ngx_stream_ssl_module: client-certificate verification in a stream {} virtual server selected by server_name (SNI); the F5 CNA record names the module, Red Hat files it as CWE-295 and F5 as CWE-1289 |
| Affected versions | NGINX Open Source 1.25.5 up to 1.31.8 (F5 lists 1.31.0 before 1.31.9 and 1.25.5 before 1.30.7; nginx.org says “1.25.5-1.31.8”); NGINX Plus R37.1.0 before R37.3.0.1, R37.0.0 before R37.0.8.1, and R33. Builds before 1.25.5 have no server_name in stream and are not affected; end-of-support branches were not evaluated |
| Fixed in | NGINX Open Source 1.31.9 (mainline, 18 November 2026) and 1.30.7 (stable); NGINX Plus R37.3.0.1 and R37.0.8.1; upstream commit 77f90f1 per the Debian and Ubuntu trackers. Debian trixie 1.26.3-3+deb13u11, forky 1.30.6-4; Ubuntu 26.10 1.30.4-7ubuntu1.2, 26.04 1.28.3-2ubuntu1.13; Red Hat Hardened Images nginx-main-1.30.7 |
| Severity | F5 (CNA) CVSS 3.1 4.8 Medium (AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N) and CVSS 4.0 6.3 Medium (AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N), CWE-1289; NVD Awaiting Analysis with both vectors and a CISA SSVC of exploitation none, not automatable, technical impact partial. Red Hat Moderate, 4.8, CWE-295; Ubuntu Medium; Debian DSA-6642-1 |
| Exploited in the wild | Not on CISA’s Known Exploited Vulnerabilities list as of 1 December 2026 (catalogue 2026.11.30). EPSS 0.47% (32nd percentile) on 30 November 2026 |
| Who is exposed | NGINX deployments that use the stream module as a TLS-terminating TCP proxy with more than one server {} selected by server_name, and that require client certificates on one of the non-default ones: mutual-TLS front doors for databases, message brokers, Kubernetes API endpoints and internal services that are multiplexed on one port by SNI. The attacker needs to reach the port and send the right SNI; AC:H covers the “complete the handshake synchronously” condition. Deployments with a single stream server, with ssl_verify_client on the default server, or that only use the HTTP module are outside the described flaw; so is every NGINX before 1.25.5 |
| Published | F5 advisory K000163934, nginx.org advisory, CHANGES 1.31.9 and the CVE record, all 18 November 2026; this page built 1 December 2026, last updated 1 December 2026 |
What it is
NGINX’s stream module proxies raw TCP and UDP, and since 1.25.5 it can hold several server {} blocks on one listening port and pick between them by the SNI name a TLS client sends, exactly as the HTTP module has always done. Each virtual server has its own TLS settings, including whether it demands a client certificate and which CA must have issued it. The handshake, though, starts before the SNI name has been read: the listening socket’s default server owns the connection until the ClientHello arrives and the virtual server is chosen, and at that point the SSL object has to be switched to the chosen server’s configuration. The changelog’s phrase “complete the SSL handshake synchronously” describes a timing in which that switch does not happen before the client-certificate check is made, so the check runs with the default server’s settings. The F5 record says it in product terms: “a remote attacker could bypass verification of client certificates” when ssl_verify_client on is set “in a non-default stream virtual server”, and adds that “there is no control plane exposure; this is a data plane issue only”.
The consequence depends entirely on what the default server asks for. If it does not require a client certificate, the attacker’s connection to the SNI-selected server is proxied upstream without one, which for a mutual-TLS front door is the whole access control gone. If the default server requires a certificate from the same CA, nothing is bypassed. Ubuntu’s analyst traced the bug to the commit that introduced stream virtual servers in 1.25.5 (d21675228), which is why every release before that is not affected and why the Debian bookworm package, at 1.22, is marked not affected. The report is credited by the changelog to CERT.PL. F5’s advisory page for K000163934 renders only as an application shell to automated readers; the facts above are from the CVE record F5 filed, nginx.org’s advisory list and CHANGES, and the distribution trackers.
The fix is in 1.31.9 and 1.30.7, released on 18 November 2026 together with nine other advisories (the PROXY protocol v2 NULL dereference CVE-2026-120993, the ssl_preread ClientHello divergence CVE-2026-123640, the HTTP/2 and HTTP/3 use-after-frees and the rest of that day’s set), as upstream commit 77f90f1 on the stable branch with 6f9fcee alongside it per Ubuntu. A host patched for any of the 18 November set is patched for this one.
Who is affected on Linux
Each row is what the distribution’s own security tracker said on 1 December 2026; the link in the row is the tracker page, which will be newer than this one. The dividing line is 1.25.5: a distribution whose NGINX is older has no stream virtual servers and nothing to fix.
| Distribution | Status | Fixed package |
|---|---|---|
| Alpine | Tracker unreachable on 1 December 2026 (client error); nothing inferred. Alpine’s nginx tracks upstream stable, so look for 1.30.7 | — |
| Debian | bookworm not affected (“vulnerable code introduced later”, 1.22); trixie fixed by DSA-6642-1; forky and sid fixed | trixie nginx 1.26.3-3+deb13u11; forky 1.30.6-4, sid 1.30.6-6 |
| Ubuntu | Medium; 26.10 and 26.04 fixed by USN-9159-1 (19 November); 24.04 and older not affected (no server_name in stream before 1.25.5; 14.04 has no stream module) | 26.10 nginx 1.30.4-7ubuntu1.2; 26.04 nginx 1.28.3-2ubuntu1.13 |
| RHEL, Rocky, Alma, CentOS Stream | Moderate, 4.8, CWE-295; RHEL 8 and 9 nginx:1.24 and RHEL 9 nginx not affected; RHEL 9 nginx:1.26 and RHEL 10 nginx fix deferred; Hardened Images fixed (RHSA-2026:100838, 21 November) | Hardened Images nginx-main-1.30.7-1.hum1; nothing yet for RHEL 9’s 1.26 stream or RHEL 10 |
| openSUSE/SLE | Not consulted for this page; Tumbleweed carried 1.31.9 for the sibling advisories on 30 November | — |
nginx.org packages, Docker nginx image, NGINX Plus, Arch, Fedora | The upstream release applies | 1.31.9 mainline, 1.30.7 stable; Plus R37.3.0.1 / R37.0.8.1 |
How to check
Three questions, in order: is this an affected build, does the configuration have more than one stream server with server_name, and does a non-default one require client certificates while the default does not. The third is the precondition; most NGINX installations fail the second and are done.
# 1. version and whether the stream module is even built in (1.25.5-1.31.8 affected; 1.31.9 / 1.30.7 fixed)
nginx -v 2>&1
nginx -V 2>&1 | tr ' ' '\n' | grep -E 'with-stream(_ssl_module)?$' || echo "no stream module: not affected"
dpkg -l nginx 2>/dev/null | awk '/^ii/{print $2, $3}'; rpm -q nginx 2>/dev/null
# 2. stream virtual servers: more than one server block, with server_name, on a shared listen
nginx -T 2>/dev/null | awk '/^stream *{/,/^}/' | grep -nE '^\s*(server\s*\{|listen|server_name|ssl_verify_client|ssl_client_certificate)'
# 3. the precondition in one line: a server_name block with ssl_verify_client on, and a default (first, or default_server) block without it
nginx -T 2>/dev/null | awk '/^stream *{/,/^}/' | awk '/server *\{/{n++; v[n]=""} /ssl_verify_client +on/{v[n]="on"} /server_name/{s[n]=1} END{for(i=1;i<=n;i++) printf "server %d: server_name=%s verify=%s\n", i, (i in s)?"yes":"no", (v[i]==""?"off":"on")}'A fixed version, or no stream module, or a single stream server, ends the check. On an affected build, the output of step 3 is the finding: a server with server_name=yes verify=on alongside a default server with verify=off is the configuration the advisory describes, and any client that can reach the port and name the protected SNI can be proxied to that server’s upstream without presenting a certificate. If every server, the default included, shows verify=on against the same CA, the bypass has nowhere to go, and the upgrade is a scheduling matter.
How to fix it
Upgrade the package and reload or restart NGINX; a reload starts new workers on the new binary only if the binary on disk changed and the master was re-executed, so on a package upgrade use the service’s restart or the binary-upgrade signal rather than a plain reload. Check the running version afterwards, not the package list.
# nginx.org repository, Debian trixie/forky, Ubuntu 26.04/26.10
apt update && apt install --only-upgrade nginx && systemctl restart nginx
# RHEL family (the nginx.org repository, or Red Hat's stream when its fix ships)
dnf upgrade nginx && systemctl restart nginx
# Docker
docker pull nginx:1.30.7 && docker compose up -d nginx
# confirm the workers run the new binary
nginx -v 2>&1; for p in $(pgrep -f 'nginx: worker'); do readlink /proc/$p/exe; done | sort -uF5’s advisory page could not be read, so no vendor mitigation is quoted here. The configuration change that removes the condition follows from the changelog’s description: if the default stream server requires a client certificate from the same CA as the named servers, a check that runs with the default server’s settings still demands a certificate. That is a change to the default server only and costs nothing on a port where every virtual server was mutual-TLS anyway. What not to do: do not set ssl_verify_client optional on the default server as a halfway measure, because optional verification lets the handshake complete without a certificate, which is the bypass; and do not move the protected service to its own port “temporarily” and leave the shared port’s default server unprotected, since the shared port is where the attack lands.
# in the stream block: the default server (first on the listen, or default_server) requires the same client CA
stream {
server {
listen 8443 ssl default_server;
ssl_certificate /etc/nginx/tls/default.crt;
ssl_certificate_key /etc/nginx/tls/default.key;
ssl_client_certificate /etc/nginx/tls/client-ca.pem;
ssl_verify_client on;
proxy_pass 127.0.0.1:9; # nothing useful behind the default
}
server {
listen 8443 ssl;
server_name db.internal.example.com;
ssl_client_certificate /etc/nginx/tls/client-ca.pem;
ssl_verify_client on;
proxy_pass db-backend:5432;
}
}
# then
nginx -t && systemctl reload nginxSources
- CVE-2026-120967 at CVE.org — the F5 CNA record (18 November 2026): the description, the Open Source and Plus affected ranges, CVSS 3.1 4.8 and 4.0 6.3, CWE-1289, the data-plane note
- nginx.org security advisories — “SNI bypass when using client certificate validation in stream”, vulnerable 1.25.5-1.31.8, not vulnerable 1.31.9+ and 1.30.7+, with the nine sibling entries of the same release
- nginx CHANGES — the 1.31.9 entry of 18 November 2026 describing the synchronous-handshake condition and crediting CERT.PL
- F5 advisory K000163934 — the vendor advisory named in the record; renders as an application shell to automated readers on 1 December, so its status table and mitigation are not quoted
- Red Hat CVE page and its security data record — Moderate 4.8, CWE-295, the non-default-configuration statement, not affected / fix deferred per stream, RHSA-2026:100838 for the Hardened Images
- NVD entry — Awaiting Analysis; published 18 November, modified 23 November; both F5 vectors, CWE-1289, the CISA SSVC
- Distribution trackers: Debian (DSA-6642-1; bookworm not affected; commits d21675228 and 77f90f1) · Ubuntu (Medium, USN-9159-1; noble and older not affected) · Alpine (unreachable on 1 December)
- CISA KEV catalogue 2026.11.30, not listed · EPSS 0.00466, percentile 0.324, dated 30 November 2026
Related reading
- CVE-2026-123640: NGINX ssl_preread reads a malformed ClientHello differently from the backend and routes to the wrong server — the other stream-module SNI flaw of the 18 November set
- CVE-2026-120993: NGINX stream worker crashes on an abbreviated TLS handshake with PROXY protocol v2 and dynamic certificates — same module, same release, the crash rather than the bypass
- CVE-2026-125283: NGINX worker overflows a buffer when try_files and alias share a map’s regex captures — the most serious of the same set
- CVE-2026-132779: NGINX worker spins at 100% CPU retrying a send on a crafted TLS 1.3 early-data connection — the follow-up fix of 23 November, 1.31.10 and 1.30.8
- TLS certificates — what client-certificate verification actually checks, and why “optional” is not a middle ground
- Security advisories — every Linux-relevant CVE we track, newest first, with the component index
This advisory page was assembled from the primary sources listed above on 1 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.
