{"id":"CVE-2026-123640","title":"NGINX ngx_stream_ssl_preread_module vulnerability","summary":"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_mod…","severity":"medium","cvss":5.3,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","cvssSource":"cna","cwe":["CWE-1289"],"vendor":"F5","product":"NGINX Plus","affected":["nginx_plus >= 37.1.0 < 37.2.0.1","nginx_plus >= 37.0.0 < 37.0.7.1","nginx_plus >= R33 < *","nginx_open_source >= 1.31.0 < 1.31.9","nginx_open_source >= 1.30.0 < 1.30.7","nginx_open_source >= 1.15.2 < *"],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-11-18T16:35:38.347306Z"},"published":"2026-11-18","updated":"2026-11-18","sourceUpdated":"2026-11-18T16:51:01.723Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-123640","references":[{"url":"https://my.f5.com/manage/s/article/K000163935"}],"tags":["cve.org","exploit-available"],"ingestedAt":"2026-11-18T16:12:34.639Z","exploits":{"github":1,"githubRepos":["https://github.com/cveForge/CVE-2026-123640"],"checkedAt":"2026-11-24T11:29:17.702Z"},"exploitAvailable":true,"epss":0.00647,"epssPercentile":0.51966,"slug":"CVE-2026-123640","body":"## Overview\n\nDescription\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.\n\n## Affected\n\n- `nginx_plus >= 37.1.0 < 37.2.0.1`\n- `nginx_plus >= 37.0.0 < 37.0.7.1`\n- `nginx_plus >= R33 < *`\n- `nginx_open_source >= 1.31.0 < 1.31.9`\n- `nginx_open_source >= 1.30.0 < 1.30.7`\n- `nginx_open_source >= 1.15.2 < *`\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.\n\n### Workarounds\n\nDisable 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 \n\nFor example, the following configuration includes the ssl_preread on; directive:\n\n\n\nstream {\n    log_format sni \"PREREAD_SNI=[$ssl_preread_server_name] -> [$backend]\";\n    access_log /var/log/nginx/stream.log sni;\n    map $ssl_preread_server_name $backend {\n        internal.test   127.0.0.1:9002;   # privileged backend\n        default           127.0.0.1:9001;   # public backend\n    }\n    server {\n        listen 9443;\n        ssl_preread on;\n        proxy_pass $backend;\n    }\n}\n\nTo mitigate the issue for this configuration, make the following changes:\n\n  *  Remove the ssl_preread directive.\n  *  Terminate TLS on NGINX by adding the following:  *  Change the listener to ssl.\n  *  Configure a certificate and key.\n  *  Replacing $ssl_preread_server_name with $ssl_server_name to use SNI-based routing.\n\n\n\n\n\nstream {\n    log_format sni \"TLS_SNI=[$ssl_server_name] -> [$backend]\";\n    access_log /var/log/nginx/stream.log sni;\n    map $ssl_server_name $backend {\n        internal.test   127.0.0.1:9002;   # privileged backend\n        default           127.0.0.1:9001;   # public backend\n    }\n    server {\n        listen 9443 ssl;\n        ssl_certificate     /etc/nginx/ssl/fullchain.pem;\n        ssl_certificate_key /etc/nginx/ssl/privkey.pem;\n        ssl_protocols       TLSv1.2 TLSv1.3;\n        # ssl_preread removed; NGINX terminates client TLS.\n        proxy_pass $backend;\n        # Use these if the backends still expect TLS.\n        proxy_ssl on;\n        proxy_ssl_server_name on;\n        proxy_ssl_name $ssl_server_name;\n    }\n}\n\nAfter making the configuration changes, validate the configuration and reload, using the following commands:\n\nnginx -t\nnginx -s reload","depth":"twilight","depthScore":41,"depthScoreParts":{"impact":29.2,"likelihood":0.1,"exploitation":12,"ransomware":0},"changes":[{"seq":241328,"id":"CVE-2026-123640","ts":1795068508462,"field":"exploit_available","old":"false","new":"true"}]}