Skip to content
FlawDB
Sign in

CVE-2026-123640

MEDIUM 6.9EPSS 48%

NGINX ngx_stream_ssl_preread_module vulnerability

Mitigation

  • Vendor workaround: 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     /etc/nginx/ssl/fullchain.pem;
  •         ssl_certificate_key /etc/nginx/ssl/privkey.pem;
  •         ssl_protocols       TLSv1.2 TLSv1.3;
  •         # ssl_preread removed; NGINX terminates client TLS.
  •         proxy_pass $backend;
  •         # Use these if the backends still expect TLS.
  •         proxy_ssl on;
  •         proxy_ssl_server_name on;
  •         proxy_ssl_name $ssl_server_name;
  •     }
  • }
  • After making the configuration changes, validate the configuration and reload, using the following commands:
  • nginx -t
  • nginx -s reload

Who should check

  • Anyone running F5 NGINX Plus >= 37.1.0, < 37.2.0.1; >= 37.0.0, < 37.0.7.1; >= R33, < *
  • Anyone running F5 NGINX Open Source >= 1.31.0, < 1.31.9; >= 1.30.0, < 1.30.7; >= 1.15.2, < *

Vulnerability facts

Affected
F5 NGINX Plus >= 37.1.0, < 37.2.0.1; >= 37.0.0, < 37.0.7.1; >= R33, < *; F5 NGINX Open Source >= 1.31.0, < 1.31.9; >= 1.30.0, < 1.30.7; >= 1.15.2, < *
Fixed in
F5 NGINX Plus 37.2.0.1, F5 NGINX Plus 37.0.7.1, F5 NGINX Open Source 1.31.9, F5 NGINX Open Source 1.30.7
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
6.9 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Attack requirements: None
  • Privileges required: None
  • User interaction: None
  • Confidentiality impact: None
  • Integrity impact: Low
  • Availability impact: None
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: None
  • Availability impact on other systems: None
EPSS
0.68% chance of exploitation in 30 days (percentile 48, 2026-11-26)
CWE
CWE-1289
Published
Modified

Description

Description When 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. Impact This 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. Note: Software versions which have reached End of Technical Support (EoTS) are not evaluated.

Affected and fixed versions

Package / productAffectedFixedSource
F5 NGINX Plus>= 37.1.0, < 37.2.0.1; >= 37.0.0, < 37.0.7.1; >= R33, < *—cvelist
F5 NGINX Open Source>= 1.31.0, < 1.31.9; >= 1.30.0, < 1.30.7; >= 1.15.2, < *—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-123640. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-123640.md
Affected: F5 NGINX Plus >= 37.1.0, < 37.2.0.1; >= 37.0.0, < 37.0.7.1; >= R33, < *; F5 NGINX Open Source >= 1.31.0, < 1.31.9; >= 1.30.0, < 1.30.7; >= 1.15.2, < *
Fixed in: F5 NGINX Plus 37.2.0.1, F5 NGINX Plus 37.0.7.1, F5 NGINX Open Source 1.31.9, F5 NGINX Open Source 1.30.7

Steps:
1. Search this machine and project for F5 NGINX Plus, F5 NGINX Open Source: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

Technologies

References

FAQ

Is CVE-2026-123640 being exploited?

There is no confirmed exploitation: CVE-2026-123640 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.68% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-123640?

Medium: CVSS 6.9 (v4.0, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2026-123640?

F5 NGINX Plus >= 37.1.0, < 37.2.0.1; >= 37.0.0, < 37.0.7.1; >= R33, < *; F5 NGINX Open Source >= 1.31.0, < 1.31.9; >= 1.30.0, < 1.30.7; >= 1.15.2, < *.

Is there a fix for CVE-2026-123640?

Yes. Fixed in F5 NGINX Plus 37.2.0.1, F5 NGINX Plus 37.0.7.1, F5 NGINX Open Source 1.31.9, F5 NGINX Open Source 1.30.7. Vendor workaround: 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     /etc/nginx/ssl/fullchain.pem;         ssl_certificate_key /etc/nginx/ssl/privkey.pem;         ssl_protocols       TLSv1.2 TLSv1.3;         # ssl_preread removed; NGINX terminates client TLS.         proxy_pass $backend;         # Use these if the backends still expect TLS.         proxy_ssl on;         proxy_ssl_server_name on;         proxy_ssl_name $ssl_server_name;     } } After making the configuration changes, validate the configuration and reload, using the following commands: nginx -t nginx -s reload

How do I check if I'm affected by CVE-2026-123640?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

See all
Vulnerabilities, newest first
SeverityIdentifier / vulnerabilityTechnologySignalsAge
HIGH 8.2CVE-2026-133940

JTL-Shop: Database and file backups in export/backup can be downloaded without authentication

Apache HTTP Server+4
MEDIUM 6.9CVE-2026-132779

NGINX ngx_http_write_filter_module module vulnerability

Nginx
EPSS 43%
MEDIUM 6.9CVE-2026-125283

NGINX try_files vulnerability

Nginx
EPSS 76%
MEDIUM 6.3CVE-2026-120967

NGINX ngx_stream_ssl_module vulnerability

Nginx
EPSS 32%
MEDIUM 6.9CVE-2026-120993

NGINX ngx_stream_ssl_module vulnerability

Nginx
EPSS 16%
Sponsors