# CVE-2026-123640: NGINX ngx\_stream\_ssl\_preread\_module vulnerability

- **Severity:** MEDIUM 6.9
- **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:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.68% (percentile 48, 2026-11-26)
- **CWE:** CWE-1289
- **Published:** 2026-11-18T15:23:27.556Z
- **Modified:** 2026-11-19T19:43:50.543Z

## 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, \< \*

## 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

- 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)

## Technologies

Nginx

## 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

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- patch: <https://my.f5.com/manage/s/article/K000163935>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-123640>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-123640> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-123640>
