ngx_stream_ssl_preread_module lets a stream server read the start of a TLS ClientHello, set $ssl_preread_server_name, $ssl_preread_alpn_protocols and $ssl_preread_protocol, and choose an upstream from them, all without holding the certificate or terminating TLS. F5’s record says that “a specially crafted ClientHello message from an unauthenticated attacker causes forged values of the ngx_stream_ssl_preread_module variables, affecting virtual server selection”, and that it may also produce “a disagreement with a proxied server terminating the SSL/TLS connection without Transport Layer Security (TLS) 1.3 support”. The consequence is that routing by server name stops being a security boundary: the attacker “may be able to route the connection to a privileged or internal backend that should be unreachable”. Every release since 1.15.2 carries the module’s parser; F5 scores it 6.9 on CVSS 4.0 and 5.3 on 3.1, Red Hat and SUSE rate it Moderate. Upgrade to 1.31.9 or 1.30.7, or the distribution package that backports the fix, and restart; where that must wait, stop treating ssl_preread as access control, by terminating TLS on NGINX instead or by restricting who can reach the stream port.
CVE-2026-123640 at a glance.
| Component | NGINX, ngx_stream_ssl_preread_module (the ssl_preread on; directive in a stream server) and the map on its variables that picks an upstream; the data plane only, no control-plane exposure per F5 |
| Affected versions | NGINX Open Source 1.15.2 up to 1.31.8, including 1.30.0 to 1.30.6 and every distribution build that enables the stream module; NGINX Plus 37.0.0 up to 37.0.7.1, 37.1.0 up to 37.2.0.1, and the R33 line as F5 lists it. NVD’s CPE list also names NGINX Ingress Controller, Gateway Fabric, Instance Manager and WAF builds |
| Fixed in | NGINX Open Source 1.31.9 (18 November 2026) and 1.30.7; NGINX Plus 37.3.0.1 and 37.0.7.1; the CHANGES entry says the module “might interpret malformed ClientHello messages differently than other TLS implementations”, credited to Vivek Parikh of BreachX Zero Day Labs; Ubuntu names four upstream commits (63d74d5, 1e668b7, 30b8bf6, d9fd14e) and Debian cites the release-1.30.7 fix. Distribution backports: Debian 1.22.1-9+deb12u11 and 1.26.3-3+deb13u11, Ubuntu 1.30.4-7ubuntu1.2 / 1.28.3-2ubuntu1.13 / 1.24.0-2ubuntu7.21 / 1.18.0-6ubuntu14.24, SUSE 1.21.5-150600.10.30.1 and 1.27.2-160100.3.1, Red Hat Hardened Images 1.30.7-1.hum1 |
| Severity | F5 CVSS 4.0 6.9 Medium (AV:N/AC:L/AT:N/PR:N/UI:N/VI:L) and CVSS 3.1 5.3 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N), CWE-1289 (improper validation of unsafe equivalence in input); NVD Analyzed on 19 November with F5’s metrics. Red Hat Moderate, 5.3, CWE-1286; Ubuntu Medium; SUSE moderate, 5.3 and 6.9. The scores say integrity-low; the record’s own impact text, reaching an internal backend, is why this page treats it as a routing bypass rather than a nuisance. Alpine’s tracker refused our reader |
| Exploited in the wild | Not on CISA’s Known Exploited Vulnerabilities list as of 1 December 2026 (catalogue 2026.11.27). EPSS 0.0038 (33rd percentile) on 19 November 2026; CISA’s SSVC record marks it automatable |
| Who is exposed | any stream server with ssl_preread on; whose map $ssl_preread_server_name (or ALPN or protocol) decides between backends with different trust levels: a public and an internal service behind one port, a per-tenant backend, or a “default” upstream that is meant to be unreachable by name. The attacker needs only to reach the stream port (PR:N). A stream server that prereads only to log, or that routes between equally exposed backends, loses less. The TLS 1.3 clause in the record concerns backends that do not support 1.3 and may parse the same hello differently again |
| Published | CVE record 18 November 2026 (F5); this page built 1 December 2026, last updated 1 December 2026 |
What it is
SNI-based routing without termination is a common pattern: one public port, a map from $ssl_preread_server_name to an upstream, and the TLS session passed through untouched so each backend holds its own certificate. It works because NGINX reads the ClientHello the same way the backend will. The record describes a ClientHello crafted so that the two readings differ: the preread parser extracts forged values for the server name, ALPN list or protocol version, NGINX routes on the forged values, and the backend, parsing the same bytes by its own rules, sees a different hello and completes the handshake. The name NGINX routed on and the name the backend served are no longer the same, which is the “routing segmentation” F5 says can be bypassed. CWE-1289, the weakness both NVD and the record cite, is exactly this: two parties treating different inputs as equivalent.
The record adds a second effect for backends without TLS 1.3 support, a “disagreement with a proxied server terminating the SSL/TLS connection”, which reads as the same parsing gap in the other direction, and it does not describe the malformation itself. The fix in 1.31.9 and 1.30.7 is described only as stricter interpretation of malformed ClientHello messages; Ubuntu lists four upstream commits and Debian cites the release-1.30.7 fix, and F5’s K000163935 rendered only a script shell for our reader, so the exact checks are not reproduced here. Red Hat’s rating note is that exploitation needs a non-default configuration using the stream SSL preread module, which is true and is also the configuration the module exists for.
F5’s workaround is to disable ssl_preread in favour of terminating TLS on NGINX, which removes the second parser from the picture; Red Hat adds restricting the stream port to trusted networks, with the caveat that turning preread off breaks $ssl_preread_server_name routing. This is one of the NGINX advisories of 18 November 2026, written up one CVE per page on this site; the siblings linked below share the 1.31.9 release, and this one, unlike its stream-module sibling CVE-2026-120993, reaches every stable line and every distribution package back to 1.15.2.
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.
| Distribution | Status | Fixed package |
|---|---|---|
| Alpine | Tracker page refused our reader on 1 December 2026 | — |
| Debian | Fixed in bookworm’s security update (DLA-4918-1) and trixie’s (DSA-6642-1); the plain bookworm (1.22.1-9+deb12u9) and trixie (1.26.3-3+deb13u10) rows vulnerable; forky and sid are marked fixed at 1.30.6-4 and 1.30.6-6, which predate the upstream 1.30.7 fix the tracker’s own note cites, so this page does not count them as fixed | bookworm 1.22.1-9+deb12u11; trixie 1.26.3-3+deb13u11 |
| Ubuntu | Medium; fixed on 22.04 to 26.10 (USN-9159-1 of 19 November, USN-9182-1 of 20 November) and on 20.04 and 18.04 for Ubuntu Pro; 16.04 and 14.04 not affected | 26.10 1.30.4-7ubuntu1.2; 26.04 1.28.3-2ubuntu1.13; 24.04 1.24.0-2ubuntu7.21; 22.04 1.18.0-6ubuntu14.24; 20.04 1.18.0-0ubuntu1.7+esm6; 18.04 1.14.0-0ubuntu1.11+esm7 |
| RHEL, Rocky, Alma, CentOS Stream | Moderate, 5.3, CWE-1286 (bug 2576465); nginx fix deferred on RHEL 8 (nginx:1.24), 9 (base, nginx:1.24, nginx:1.26) and 10; the Hardened Images nginx-main build fixed (RHSA-2026:100838, 21 November); the mitigation given is ssl_preread off or restricting the port | Hardened Images nginx-main-1.30.7-1.hum1; nothing for RHEL on 1 December 2026 |
| openSUSE/SLE | moderate, 5.3 / 6.9, Pending (bug 1290878); released for SLES 15 SP4 to SP7 (and LTSS, HPC, SAP), SLES 16.0 and 16.1, Leap 15.4 and 15.6 and Tumbleweed (SUSE-SU-2026:5414-1, 5415-1, 24902-1, 24927-1, 24956-1, 23–26 November); Leap 16.0 and 16.1 still affected | SLE 15 1.21.5-150600.10.30.1 / 150400.3.28.1; SLES 16.0 1.27.2-160000.8.1; SLES 16.1 1.27.2-160100.3.1; Tumbleweed 1.31.9-1.1 |
| nginx.org packages, Docker images, NGINX Plus, source builds | The upstream releases apply | 1.31.9 (mainline) / 1.30.7 (stable); NGINX Plus 37.3.0.1 or 37.0.7.1 |
How to check
Three questions, in order: which build is running and is it below the fix, does the configuration use ssl_preread, and does the map on its variables separate backends that should not see each other’s traffic. The third is what turns a parser quirk into an access-control problem.
# 1. the running build and how it was configured (fixed: 1.31.9 / 1.30.7, or the distribution backport in the table)
nginx -v 2>&1
nginx -V 2>&1 | tr ' ' '\n' | grep -E '^--with-(stream|http_v2|http_v3|http_ssl)' | sort
pgrep -a nginx | head -3; readlink /proc/$(pgrep -o -x nginx)/exe
# 2. is ssl_preread on anywhere, and which variables are routed on?
nginx -T 2>/dev/null | grep -nE '^\s*ssl_preread\s+on'
nginx -T 2>/dev/null | grep -nE 'map\s+\$ssl_preread_(server_name|alpn_protocols|protocol)'
# 3. what the map can reach: list the upstreams it names, and which of them are internal
nginx -T 2>/dev/null | awk '/map +\$ssl_preread/,/\}/'
nginx -T 2>/dev/null | grep -nE '^\s*upstream\s+'A build at or above the fixed version for its line, or a distribution package at the backported version, is done after a restart. A configuration with no ssl_preread on is not on the path at all. A configuration that prereads and maps the server name to backends of equal exposure loses little; one whose map includes an internal, admin or per-tenant upstream, or a default that was meant never to be chosen by an outsider, is the case this page is about, and the fix or the restriction should come before the next change window.
How to fix it
Upgrade and restart; Debian, Ubuntu, SUSE’s SLE lines and Tumbleweed and Red Hat’s Hardened Images all shipped before 1 December 2026, while RHEL’s own packages were still deferred and Leap 16 still affected. A configuration reload does not pick up a new binary.
# Debian (DLA-4918-1 / DSA-6642-1) / Ubuntu (USN-9159-1, USN-9182-1)
apt update && apt install --only-upgrade nginx && systemctl restart nginx
# SUSE
zypper patch && systemctl restart nginx
# nginx.org packages: 1.31.9 mainline or 1.30.7 stable
dnf upgrade nginx && systemctl restart nginx
nginx -v 2>&1; readlink /proc/$(pgrep -o -x nginx)/exeWhere the package has to wait, F5’s and Red Hat’s mitigations are the two honest options: terminate TLS on NGINX and route on $ssl_server_name after a real handshake, which needs the certificates on the proxy; or keep preread but restrict the stream port to the networks that should reach it. What not to do: do not add a second map that “validates” the server name against an allow-list and call it fixed, since the value being validated is the forged one; and do not rely on the backend’s own SNI check as the backstop unless you have confirmed the backend parses the same hello the same way, which is the gap the record describes.
# mitigation A: terminate TLS on nginx and route on the real handshake's name (certificates needed here)
# listen 443 ssl; ssl_certificate ...; map $ssl_server_name $backend { ... } — and remove ssl_preread on;
# mitigation B: keep preread, but only trusted networks may reach the stream port
nft add table inet streamguard 2>/dev/null
nft add chain inet streamguard in '{ type filter hook input priority -10; }'
nft add rule inet streamguard in tcp dport 443 ip saddr { 192.0.2.0/24, 198.51.100.0/24 } accept
nft add rule inet streamguard in tcp dport 443 drop
nginx -t && nginx -s reloadSources
- CVE-2026-123640 at CVE.org — the F5 record (18 November 2026): the description, the impact text, the workaround, the affected ranges, CVSS 4.0 6.9 and 3.1 5.3, CWE-1289
- nginx.org security advisories — “Insufficient validation in stream ssl_preread module”, vulnerable 1.15.2–1.31.8, not vulnerable 1.31.9+ and 1.30.7+ · nginx CHANGES — the 1.31.9 entry of 18 November 2026 with the credit · F5 K000163935, which rendered only a script shell for our reader
- NVD entry — Analyzed, F5’s two vectors, CWE-1289 and the CPE ranges for Open Source, Plus and the F5 NGINX products
- Distribution trackers: Debian (DLA-4918-1, DSA-6642-1) · Ubuntu (USN-9159-1, USN-9182-1) · Red Hat (Moderate, fix deferred on RHEL, Hardened Images RHSA-2026:100838, the
ssl_preread offmitigation) · SUSE (moderate, released for SLE 15 and 16) - CISA KEV catalogue 2026.11.27, not listed · EPSS score for this CVE, 19 November 2026
Related reading
- CVE-2026-120993: NGINX stream worker crashes on an abbreviated TLS handshake with PROXY protocol v2 and dynamic certificates — the other stream-module item of the same set, which only mainline builds carry
- CVE-2026-125283: NGINX worker overflows a buffer when try_files and alias share a map’s regex captures — the HTTP-side crash from the same 18 November set, in the same distribution updates
- CVE-2026-132779: NGINX worker spins at 100% CPU retrying a send on a crafted TLS 1.3 early-data connection — the TLS 1.3 follow-up of 23 November, fixed in 1.31.10 and 1.30.8
- CVE-2026-118899: NGINX infinite loop reading a request body over TLS 1.3 — the first NGINX page on this site from the 18 November set, with the shared release notes
- Security advisories on Linuxtastic — every CVE page on this site, 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.
