Skip to content
VulniPulse
Medium 2 vendors · 2 advisories

CVE-2026-123640: NGINX ngx_stream_ssl_preread_module vulnerability

CVE-2026-123640 key facts

CISA KEV
Not listed (catalogue checked )
Highest advisory rating
Medium
CVSS base score
6.9 (F5), 5.3 (Red Hat)
CVSS 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 · base score 6.9, scored by f5Attack vector: network. Attack complexity: low. Attack requirements: none. Privileges required: none. User interaction: none. Confidentiality impact on the vulnerable system: none. Integrity impact on the vulnerable system: low. Availability impact on the vulnerable system: none. Confidentiality impact on subsequent systems: none. Integrity impact on subsequent systems: none. Availability impact on subsequent systems: none.
Weakness
  • CWE-1289 Improper Validation of Unsafe Equivalence in Input
Fixed releases
  • F5: 37.2.0.1, 37.0.7.1, 1.31.9, 1.30.7
Vendor advisories
2 from F5, Red Hat
Assigned by
f5 (CNA)
CVE record published
Listed by VulniPulse
Record changed

Ratings, versions and fixes are quoted from the vendor advisories that cover only CVE-2026-123640; each belongs to its advisory, not to every product listed. How records are collected and checked.

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.

Text from the CVE.org record (f5).

How do I fix CVE-2026-123640?

Upgrade to a fixed release named by the vendor:

  • F5: 37.2.0.1, 37.0.7.1, 1.31.9, 1.30.7
  • Disable the `ssl_preread` directive in NGINX stream server blocks where TLS ClientHello inspection is not required, or restrict network access to trusted clients. To disable the preread module parsing, ensure `ssl_preread off;` is set (or remove `ssl_preread on;`) within the stream server context in `/etc/nginx/nginx.conf`, test the configuration, and reload the service: # nginx -t # systemctl reload nginx Alternatively, limit exposure of the stream port to trusted networks using firewalld: # firewall-cmd --permanent --zone=trusted --add-source= # firewall-cmd --permanent --zone=trusted --add-port= /tcp # firewall-cmd --reload Caveat: Disabling `ssl_preread` prevents extraction of SNI and other handshake fields, which disrupts configurations relying on `$ssl_preread_server_name` for upstream routing. Reloading the NGINX service or firewall rules will apply changes immediately and may affect active connection handling. (Red Hat)
  • 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 (CVE.org record)

Vendor advisories for CVE-2026-123640

F5

1 advisory

Red Hat

1 advisory
  • Advisory severityMedium5.3

    Medium [CVE-2026-123640] CVE-2026-123640

    CVE-2026-123640Source published Source updated

    CVE-2026-123640. Red Hat rates this moderate (CVSS 5.3). Weakness: CWE-1286. Affected product named by the advisory: Red Hat Hardened Images.

    Related products — impact not confirmed
    • Red Hat Hardened Images
    Source-reported affected versions
    Affected-version details not available in this record.
    Source-reported fixed versions
    No fixed-version detail extracted. This does not mean no fix exists.
    Mitigation guidance
    • Disable the `ssl_preread` directive in NGINX stream server blocks where TLS ClientHello inspection is not required, or restrict network access to trusted clients. To disable the preread module parsing, ensure `ssl_preread off;` is set (or remove `ssl_preread on;`) within the stream server context in `/etc/nginx/nginx.conf`, test the configuration, and reload the service: # nginx -t # systemctl reload nginx Alternatively, limit exposure of the stream port to trusted networks using firewalld: # firewall-cmd --permanent --zone=trusted --add-source=<trusted_ip_or_cidr> # firewall-cmd --permanent --zone=trusted --add-port=<port>/tcp # firewall-cmd --reload Caveat: Disabling `ssl_preread` prevents extraction of SNI and other handshake fields, which disrupts configurations relying on `$ssl_preread_server_name` for upstream routing. Reloading the NGINX service or firewall rules will apply changes immediately and may affect active connection handling.

References

Timeline

  1. CVE record published
  2. First vendor advisory listed by VulniPulse

All F5 advisories

Get an email when F5 publishes the next one.

See F5's last 90 days first. Live alerts for one product are free for life; every vendor is US$15 a month after a free month.

Alert me about F5