{"id":"CVE-2026-123640","published":"2026-11-18T15:23:27Z","modified":"2026-11-18T16:51:01Z","title":"NGINX ngx_stream_ssl_preread_module vulnerability","vendor":"F5","product":"NGINX Plus","tier":"tail","description":{"text":"Description\nWhen NGINX Plus or NGINX Open Source is configured with the ngx_stream_ssl_preread_module module, a specially crafted ClientHello message from an unauthenticated attacker causes forged values of the ngx_stream_ssl_preread_module variables, affecting virtual server selection. In addition, it may also cause a disagreement with a proxied server terminating the SSL/TLS connection without Transport Layer Security (TLS) 1.3 support.\n\nImpact\nThis vulnerability may allow an attacker to forge values of the ngx_stream_ssl_preread_module variables and bypass the NGINX systems stream routing segmentation. As a result, the attacker may be able to route the connection to a privileged or internal backend that should be unreachable and gain access to sensitive information. There is no control plane exposure; this is a data plane issue only.\n\n\n\n\n\n\nNote: Software versions which have reached End of Technical Support (EoTS) are not evaluated.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00684,"percentile":0.53311,"provenance":"source"},"cwes":[{"id":"CWE-1289","name":"Improper Validation of Unsafe Equivalence in Input"}],"references":[{"url":"https://my.f5.com/manage/s/article/K000163935","tags":["vendor-advisory","patch"]}],"priority":{"score":19.4,"factors":[{"name":"EPSS percentile","points":10.66},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":3.71}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-11-23","earliestUrl":"https://github.com/cveForge/CVE-2026-123640","repos":[{"name":"cveForge/CVE-2026-123640","url":"https://github.com/cveForge/CVE-2026-123640","stars":0,"created":"2026-11-23"}]},"first":{"date":"2026-11-23","source":"PoC-in-GitHub","url":"https://github.com/cveForge/CVE-2026-123640"},"provenance":"source"},"vendorSlug":"f5","affectedVersions":[{"vendor":"F5","product":"NGINX Plus","versions":[">= 37.1.0, < 37.2.0.1",">= 37.0.0, < 37.0.7.1",">= R33"]},{"vendor":"F5","product":"NGINX Open Source","versions":[">= 1.31.0, < 1.31.9",">= 1.30.0, < 1.30.7",">= 1.15.2"]}],"workarounds":{"items":["Disable the ssl_preread directive in favor of SSL/TLS termination on NGINX. For more information, refer to https://nginx.org/en/docs/stream/ngx_stream_ssl_preread_module.html For example, the following configuration includes the ssl_preread on; directive: stream { log_format sni \"PREREAD_SNI=[$ssl_preread_server_name] -> [$backend]\"; access_log /var/log/nginx/stream.log sni; map $ssl_preread_server_name $backend { internal.test   127.0.0.1:9002;   # privileged backend default          127.0.0.1:9001;   # public backend } server { listen 9443; ssl_preread on; proxy_pass $backend; } } To mitigate the issue for this configuration, make the following changes: * Remove the ssl_preread directive. * Terminate TLS on NGINX by adding the following: * Change the listener to ssl. * Configure a certificate and key. * Replacing $ssl_preread_server_name with $ssl_server_name to use SNI-based routing. stream { log_format sni \"TLS_SNI=[$ssl_server_name] -> [$backend]\"; access_log /var/log/nginx/stream.log sni; map $ssl_server_name $backend { internal.test   127.0.0.1:9002;   # privileged backend default          127.0.0.1:9001;   # public backend } server { listen 9443 ssl; ssl_certificate    …"],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-11-18T16:35:38.347306Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-128945","exploited":false,"provenance":"source"}}