{"api_version":"1","generated_at":"2026-11-24T14:24:17+00:00","cve":"CVE-2026-123640","urls":{"html":"https://cve.report/CVE-2026-123640","api":"https://cve.report/api/cve/CVE-2026-123640.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-123640","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-123640"},"summary":{"title":"NGINX ngx_stream_ssl_preread_module vulnerability","description":"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.","state":"PUBLISHED","assigner":"f5","published_at":"2026-11-18 16:18:04","updated_at":"2026-11-19 19:43:50"},"problem_types":["CWE-1289","CWE-1289 CWE-1289 Improper Validation of Unsafe Equivalence in Input"],"metrics":[{"version":"4.0","source":"f5sirt@f5.com","type":"Secondary","score":"6.9","severity":"MEDIUM","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","data":{"version":"4.0","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","baseScore":6.9,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","confidentialityRequirement":"NOT_DEFINED","integrityRequirement":"NOT_DEFINED","availabilityRequirement":"NOT_DEFINED","modifiedAttackVector":"NOT_DEFINED","modifiedAttackComplexity":"NOT_DEFINED","modifiedAttackRequirements":"NOT_DEFINED","modifiedPrivilegesRequired":"NOT_DEFINED","modifiedUserInteraction":"NOT_DEFINED","modifiedVulnConfidentialityImpact":"NOT_DEFINED","modifiedVulnIntegrityImpact":"NOT_DEFINED","modifiedVulnAvailabilityImpact":"NOT_DEFINED","modifiedSubConfidentialityImpact":"NOT_DEFINED","modifiedSubIntegrityImpact":"NOT_DEFINED","modifiedSubAvailabilityImpact":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED"}},{"version":"4.0","source":"CNA","type":"CVSS","score":"6.9","severity":"MEDIUM","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","data":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":6.9,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW","vulnerabilityResponseEffort":"NOT_DEFINED"}},{"version":"3.1","source":"f5sirt@f5.com","type":"Secondary","score":"5.3","severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","baseScore":5.3,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"LOW","availabilityImpact":"NONE"}},{"version":"3.1","source":"CNA","type":"CVSS","score":"5.3","severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","data":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"}}],"references":[{"url":"https://my.f5.com/manage/s/article/K000163935","name":"https://my.f5.com/manage/s/article/K000163935","refsource":"f5sirt@f5.com","tags":["Vendor Advisory"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-123640","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-123640","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"F5","product":"NGINX Plus","version":"affected 37.1.0 37.2.0.1 custom","platforms":[]},{"source":"CNA","vendor":"F5","product":"NGINX Plus","version":"affected 37.0.0 37.0.7.1 custom","platforms":[]},{"source":"CNA","vendor":"F5","product":"NGINX Plus","version":"affected R33 * custom","platforms":[]},{"source":"CNA","vendor":"F5","product":"NGINX Open Source","version":"affected 1.31.0 1.31.9 semver","platforms":[]},{"source":"CNA","vendor":"F5","product":"NGINX Open Source","version":"affected 1.30.0 1.30.7 semver","platforms":[]},{"source":"CNA","vendor":"F5","product":"NGINX Open Source","version":"affected 1.15.2 * semver","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[{"source":"CNA","title":"","value":"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 \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","time":"","lang":"en"}],"exploits":[],"credits":[{"source":"CNA","value":"F5 acknowledges Vivek Parikh of BreachX Zero Day Labs using Typhon AI Mil v2 for bringing this issue to our attention and following the highest standards of coordinated disclosure.","lang":"en"}],"nvd_cpes":[{"cve_year":"2026","cve_id":"123640","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"f5","cpe5":"dos","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"nginx","cpe12":"*","cpe13":"*"},{"cve_year":"2026","cve_id":"123640","vulnerable":"1","versionEndIncluding":"4.7.0","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"f5","cpe5":"dos","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"nginx","cpe12":"*","cpe13":"*"},{"cve_year":"2026","cve_id":"123640","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"f5","cpe5":"nginx_gateway_fabric","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2026","cve_id":"123640","vulnerable":"1","versionEndIncluding":"1.6.2","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"f5","cpe5":"nginx_gateway_fabric","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2026","cve_id":"123640","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"f5","cpe5":"nginx_ingress_controller","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"continuous_releases","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2026","cve_id":"123640","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"f5","cpe5":"nginx_ingress_controller","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"long-term_support","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2026","cve_id":"123640","vulnerable":"1","versionEndIncluding":"3.7.2","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"f5","cpe5":"nginx_ingress_controller","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"continuous_releases","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2026","cve_id":"123640","vulnerable":"1","versionEndIncluding":"4.0.1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"f5","cpe5":"nginx_ingress_controller","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"continuous_releases","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2026","cve_id":"123640","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"f5","cpe5":"nginx_instance_manager","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2026","cve_id":"123640","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"f5","cpe5":"nginx_open_source","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"123640","cve":"CVE-2026-123640","epss":"0.003610000","percentile":"0.306280000","score_date":"2026-11-20","updated_at":"2026-11-21 00:07:09"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"metrics":[{"other":{"content":{"id":"CVE-2026-123640","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","timestamp":"2026-11-18T16:35:38.347306Z","version":"2.0.3"},"type":"ssvc"}}],"providerMetadata":{"dateUpdated":"2026-11-18T16:51:01.723Z","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP"},"title":"CISA ADP Vulnrichment"}],"cna":{"affected":[{"defaultStatus":"unknown","modules":["ngx_stream_ssl_preread_module"],"product":"NGINX Plus","vendor":"F5","versions":[{"lessThan":"37.2.0.1","status":"affected","version":"37.1.0","versionType":"custom"},{"lessThan":"37.0.7.1","status":"affected","version":"37.0.0","versionType":"custom"},{"lessThan":"*","status":"affected","version":"R33","versionType":"custom"}]},{"defaultStatus":"unknown","modules":["ngx_stream_ssl_preread_module"],"product":"NGINX Open Source","vendor":"F5","versions":[{"lessThan":"1.31.9","status":"affected","version":"1.31.0","versionType":"semver"},{"lessThan":"1.30.7","status":"affected","version":"1.30.0","versionType":"semver"},{"lessThan":"*","status":"affected","version":"1.15.2","versionType":"semver"}]}],"credits":[{"lang":"en","type":"reporter","value":"F5 acknowledges Vivek Parikh of BreachX Zero Day Labs using Typhon AI Mil v2 for bringing this issue to our attention and following the highest standards of coordinated disclosure."}],"datePublic":"2026-11-18T15:00:00.000Z","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<span style=\"background-color: rgb(255, 255, 255);\">Description<br><span style=\"background-color: rgb(255, 255, 255);\"><span style=\"background-color: rgb(255, 255, 255);\">When NGINX Plus or NGINX Open Source is configured with the <b>ngx_stream_ssl_preread_module</b> module, a specially crafted ClientHello message from an unauthenticated attacker causes forged values of the <b>ngx_stream_ssl_preread_module</b> 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.</span><br></span></span><br>Impact<br><span style=\"background-color: rgb(255, 255, 255);\">This vulnerability may allow an attacker to forge values of the <b>ngx_stream_ssl_preread_module</b> 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.</span>\n\n<br><br>\n\n\nNote: Software versions which have reached End of Technical Support (EoTS) are not evaluated."}],"value":"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."}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]},{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":6.9,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-1289","description":"CWE-1289 Improper Validation of Unsafe Equivalence in Input","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-11-18T15:23:27.556Z","orgId":"9dacffd4-cb11-413f-8451-fbbfd4ddc0ab","shortName":"f5"},"references":[{"tags":["vendor-advisory","patch"],"url":"https://my.f5.com/manage/s/article/K000163935"}],"source":{"discovery":"EXTERNAL"},"title":"NGINX ngx_stream_ssl_preread_module vulnerability","workarounds":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p></p><p>Disable the <strong>ssl_preread</strong> directive in favor of SSL/TLS termination on NGINX. For more information, refer to <a target=\"_blank\" rel=\"nofollow\" href=\"https://nginx.org/en/docs/stream/ngx_stream_ssl_preread_module.html\">https://nginx.org/en/docs/stream/ngx_stream_ssl_preread_module.html</a></p><p>For example, the following configuration includes the <strong>ssl_preread on;</strong> directive:</p><p></p><p>stream {<br>&nbsp; &nbsp; log_format sni \"PREREAD_SNI=[$ssl_preread_server_name] -&gt; [$backend]\";<br>&nbsp; &nbsp; access_log /var/log/nginx/stream.log sni;<br>&nbsp; &nbsp; map $ssl_preread_server_name $backend {<br>&nbsp; &nbsp; &nbsp; &nbsp; internal.test &nbsp; 127.0.0.1:9002; &nbsp; # privileged backend<br>&nbsp; &nbsp; &nbsp; &nbsp; default  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;127.0.0.1:9001; &nbsp; # public backend<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; server {<br>&nbsp; &nbsp; &nbsp; &nbsp; listen 9443;<br>&nbsp; &nbsp; &nbsp; &nbsp; ssl_preread on;<br>&nbsp; &nbsp; &nbsp; &nbsp; proxy_pass $backend;<br>&nbsp; &nbsp; }<br>}</p><p>To mitigate the issue for this configuration, make the following changes:</p><ul><li>Remove the <strong>ssl_preread</strong> directive.</li><li>Terminate TLS on NGINX by adding the following:<ul><li>Change the listener to ssl.</li><li>Configure a certificate and key.</li><li>Replacing <strong>$ssl_preread_server_name</strong> with <strong>$ssl_server_name</strong> to use SNI-based routing.</li></ul></li></ul><p>stream {<br>&nbsp; &nbsp; log_format sni \"TLS_SNI=[$ssl_server_name] -&gt; [$backend]\";<br>&nbsp; &nbsp; access_log /var/log/nginx/stream.log sni;<br>&nbsp; &nbsp; map $ssl_server_name $backend {<br>&nbsp; &nbsp; &nbsp; &nbsp; internal.test &nbsp; 127.0.0.1:9002; &nbsp; # privileged backend<br>&nbsp; &nbsp; &nbsp; &nbsp; default  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;127.0.0.1:9001; &nbsp; # public backend<br>&nbsp; &nbsp; }<br>&nbsp; &nbsp; server {<br>&nbsp; &nbsp; &nbsp; &nbsp; listen 9443 ssl;<br>&nbsp; &nbsp; &nbsp; &nbsp; ssl_certificate &nbsp; &nbsp; /etc/nginx/ssl/fullchain.pem;<br>&nbsp; &nbsp; &nbsp; &nbsp; ssl_certificate_key /etc/nginx/ssl/privkey.pem;<br>&nbsp; &nbsp; &nbsp; &nbsp; ssl_protocols &nbsp; &nbsp; &nbsp; TLSv1.2 TLSv1.3;<br>&nbsp; &nbsp; &nbsp; &nbsp; # ssl_preread removed; NGINX terminates client TLS.<br>&nbsp; &nbsp; &nbsp; &nbsp; proxy_pass $backend;<br>&nbsp; &nbsp; &nbsp; &nbsp; # Use these if the backends still expect TLS.<br>&nbsp; &nbsp; &nbsp; &nbsp; proxy_ssl on;<br>&nbsp; &nbsp; &nbsp; &nbsp; proxy_ssl_server_name on;<br>&nbsp; &nbsp; &nbsp; &nbsp; proxy_ssl_name $ssl_server_name;<br>&nbsp; &nbsp; }<br>}</p><p>After making the configuration changes, validate the configuration and reload, using the following commands:</p><p>nginx -t<br>nginx -s reload</p>"}],"value":"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 \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"}],"x_generator":{"engine":"F5 SIRTBot v1.0"}}},"cveMetadata":{"assignerOrgId":"9dacffd4-cb11-413f-8451-fbbfd4ddc0ab","assignerShortName":"f5","cveId":"CVE-2026-123640","datePublished":"2026-11-18T15:23:27.556Z","dateReserved":"2026-11-09T18:42:53.901Z","dateUpdated":"2026-11-18T16:51:01.723Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-18 16:18:04","lastModifiedDate":"2026-11-19 19:43:50","problem_types":["CWE-1289","CWE-1289 CWE-1289 Improper Validation of Unsafe Equivalence in Input"],"metrics":{"cvssMetricV40":[{"source":"f5sirt@f5.com","type":"Secondary","cvssData":{"version":"4.0","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","baseScore":6.9,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","confidentialityRequirement":"NOT_DEFINED","integrityRequirement":"NOT_DEFINED","availabilityRequirement":"NOT_DEFINED","modifiedAttackVector":"NOT_DEFINED","modifiedAttackComplexity":"NOT_DEFINED","modifiedAttackRequirements":"NOT_DEFINED","modifiedPrivilegesRequired":"NOT_DEFINED","modifiedUserInteraction":"NOT_DEFINED","modifiedVulnConfidentialityImpact":"NOT_DEFINED","modifiedVulnIntegrityImpact":"NOT_DEFINED","modifiedVulnAvailabilityImpact":"NOT_DEFINED","modifiedSubConfidentialityImpact":"NOT_DEFINED","modifiedSubIntegrityImpact":"NOT_DEFINED","modifiedSubAvailabilityImpact":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED"}}],"cvssMetricV31":[{"source":"f5sirt@f5.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","baseScore":5.3,"baseSeverity":"MEDIUM","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"LOW","availabilityImpact":"NONE"},"exploitabilityScore":3.9,"impactScore":1.4}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-11-18T16:35:38.347306Z","id":"CVE-2026-123640","options":[{"exploitation":"none"},{"automatable":"yes"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:f5:dos:*:*:*:*:*:nginx:*:*","versionStartIncluding":"4.5.0","versionEndIncluding":"4.7.0","matchCriteriaId":"D33633EB-8C0C-42ED-953A-EC44585A9AC4"},{"vulnerable":true,"criteria":"cpe:2.3:a:f5:dos:*:*:*:*:*:nginx:*:*","versionStartIncluding":"4.8.0","versionEndExcluding":"4.13.0","matchCriteriaId":"57CEB201-7CBD-426B-9E04-71C6BBE4AE19"},{"vulnerable":true,"criteria":"cpe:2.3:a:f5:nginx_gateway_fabric:*:*:*:*:*:*:*:*","versionStartIncluding":"1.5.0","versionEndIncluding":"1.6.2","matchCriteriaId":"1E74CFBA-DBBB-4D35-B149-953A71093ECA"},{"vulnerable":true,"criteria":"cpe:2.3:a:f5:nginx_gateway_fabric:*:*:*:*:*:*:*:*","versionStartIncluding":"2.0.0","versionEndExcluding":"2.9.0","matchCriteriaId":"7F0199FA-9AF8-49B8-B851-C57D0ABAB4BF"},{"vulnerable":true,"criteria":"cpe:2.3:a:f5:nginx_ingress_controller:*:*:*:*:continuous_releases:*:*:*","versionStartIncluding":"3.7.1","versionEndIncluding":"3.7.2","matchCriteriaId":"51E9A4A4-499E-478C-BD8F-32BE10B630C2"},{"vulnerable":true,"criteria":"cpe:2.3:a:f5:nginx_ingress_controller:*:*:*:*:continuous_releases:*:*:*","versionStartIncluding":"4.0.0","versionEndIncluding":"4.0.1","matchCriteriaId":"DB6D172C-2716-40B9-B74C-D3029EDD171F"},{"vulnerable":true,"criteria":"cpe:2.3:a:f5:nginx_ingress_controller:*:*:*:*:continuous_releases:*:*:*","versionStartIncluding":"5.0.0","versionEndExcluding":"5.8.0","matchCriteriaId":"C497E7B2-344E-4DD5-ADB0-6BF508E8CD61"},{"vulnerable":true,"criteria":"cpe:2.3:a:f5:nginx_ingress_controller:*:*:*:*:long-term_support:*:*:*","versionStartIncluding":"2026-lts-r1","versionEndExcluding":"2026-lts-r11","matchCriteriaId":"A74E95B1-B36C-4DB4-A832-7736C9E0C07F"},{"vulnerable":true,"criteria":"cpe:2.3:a:f5:nginx_instance_manager:*:*:*:*:*:*:*:*","versionStartIncluding":"2.19.0","versionEndExcluding":"2.25.0","matchCriteriaId":"E31A8E5C-547B-406F-B18D-9F7C0AAC93A5"},{"vulnerable":true,"criteria":"cpe:2.3:a:f5:nginx_open_source:*:*:*:*:*:*:*:*","versionStartIncluding":"1.15.2","versionEndExcluding":"1.30.7","matchCriteriaId":"0F83CA7D-3FF6-49B0-B7D1-20DB104EC95D"},{"vulnerable":true,"criteria":"cpe:2.3:a:f5:nginx_open_source:*:*:*:*:*:*:*:*","versionStartIncluding":"1.31.0","versionEndExcluding":"1.31.9","matchCriteriaId":"C93BF318-5674-4FFA-A961-133201234CF6"},{"vulnerable":true,"criteria":"cpe:2.3:a:f5:nginx_plus:*:*:*:*:*:*:*:*","versionStartIncluding":"37.0.0","versionEndExcluding":"37.0.7.1","matchCriteriaId":"70D17564-D2C5-4023-A719-E5D62FD95EAF"},{"vulnerable":true,"criteria":"cpe:2.3:a:f5:nginx_plus:37.1.0:*:*:*:*:*:*:*","matchCriteriaId":"39C9C2AE-3CF4-4C5C-A806-319A94424404"},{"vulnerable":true,"criteria":"cpe:2.3:a:f5:nginx_plus:r34:*:*:*:*:*:*:*","matchCriteriaId":"86358605-55F9-4F6F-846A-3F48738F6E05"},{"vulnerable":true,"criteria":"cpe:2.3:a:f5:nginx_plus:r35:*:*:*:*:*:*:*","matchCriteriaId":"C643CEF2-F421-4E2C-AD39-51CE820F2238"},{"vulnerable":true,"criteria":"cpe:2.3:a:f5:nginx_plus:r36:*:*:*:*:*:*:*","matchCriteriaId":"942CA349-3FF8-4B9D-B87E-FBA8930CE913"},{"vulnerable":true,"criteria":"cpe:2.3:a:f5:waf:*:*:*:*:*:nginx:*:*","versionStartIncluding":"4.12.0","versionEndExcluding":"4.16.2","matchCriteriaId":"1A837B70-3F11-422B-BE67-BCC5EFD6AB4F"},{"vulnerable":true,"criteria":"cpe:2.3:a:f5:waf:*:*:*:*:*:nginx:*:*","versionStartIncluding":"5.4.0","versionEndIncluding":"5.8.0","matchCriteriaId":"B08EBD8F-D8FE-4256-87D7-4EA447BBB6C2"},{"vulnerable":true,"criteria":"cpe:2.3:a:f5:waf:*:*:*:*:*:nginx:*:*","versionStartIncluding":"5.9.0","versionEndExcluding":"5.14.4","matchCriteriaId":"3236D23D-A4B4-4769-98A2-EF2D89522724"},{"vulnerable":true,"criteria":"cpe:2.3:a:f5:waf:*:*:*:*:*:nginx:*:*","versionStartIncluding":"5.15.0","versionEndExcluding":"5.16.2","matchCriteriaId":"4932BA2D-0071-4147-8B0C-F4D8E2D9C14B"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"123640","Ordinal":"1","Title":"NGINX ngx_stream_ssl_preread_module vulnerability","CVE":"CVE-2026-123640","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"123640","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"NGINX ngx_stream_ssl_preread_module vulnerability"}]}}}