cve.bz

CVE-2026-123640 NGINX ngx_stream_ssl_preread_module vulnerability

6.9 mediumEPSS 0.6%

Medium (6.9) in f5. EPSS 0.6% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

6.9 medium
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 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
EPSS
0.6% estimated probability of exploitation activity in the next 30 days; 52nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-11-18. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-1289 Improper Validation of Unsafe Equivalence in Input
Published
Modified
Assigned by
f5 (CNA)
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-123640 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-123640?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-123640?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-123640 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
F5 NGINX Plusfrom 37.1.0 before 37.2.0.1
F5 NGINX Plusfrom 37.0.0 before 37.0.7.1
F5 NGINX PlusR33 and later
F5 NGINX Open Sourcefrom 1.31.0 before 1.31.9
F5 NGINX Open Sourcefrom 1.30.0 before 1.30.7
F5 NGINX Open Source1.15.2 and later

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12nginx1.22.1-9+deb12u11DEBIAN-CVE-2026-123640 DLA-4918-1
Debian13nginx1.26.3-3+deb13u11DEBIAN-CVE-2026-123640 DSA-6642-1
Debian14nginx1.30.6-4DEBIAN-CVE-2026-123640
Ubuntu22.04:LTS, 24.04:LTS, Pro:18.04:LTS and 1 morenginxno fix listedUBUNTU-CVE-2026-123640
Ubuntu26.04:LTSnginx1.28.3-2ubuntu1.13UBUNTU-CVE-2026-123640
Ubuntu26.10nginx1.30.4-7ubuntu1.2UBUNTU-CVE-2026-123640
openSUSETumbleweednginx1.31.9-1.1openSUSE-SU-2026:12599-1
Alpinev3.21nginx1.26.3-r4ALPINE-CVE-2026-123640
Alpinev3.22, v3.23nginx1.28.3-r8ALPINE-CVE-2026-123640
Alpinev3.24nginx1.30.7-r0ALPINE-CVE-2026-123640
Azure Linux3nginx1.30.6-2AZL-114613
Alpaquita23, 25, streamnginx, nginx-base1.30.7-r0BELL-CVE-2026-123640
BellSoft Hardened Containers23, 25, streamnginx-base1.30.7-r0BELL-CVE-2026-123640

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat rates this vulnerability as Moderate because exploitation is constrained to non-default configurations where the stream SSL preread module is actively utilized to route traffic. While an unauthenticated remote attacker can manipulate TLS ClientHello data to induce incorrect virtual server selection and reach unintended backend destinations, the impact is confined to data plane routing and does not allow control plane takeover or host-level compromise. Standard NGINX installations that do not parse stream TLS handshakes via the preread module are not exposed to this issue.

Red Hat's mitigation

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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10nginxFix deferred
Red Hat Enterprise Linux 8nginx:1.24/nginxFix deferred
Red Hat Enterprise Linux 9nginxFix deferred
Red Hat Enterprise Linux 9nginx:1.24/nginxFix deferred
Red Hat Enterprise Linux 9nginx:1.26/nginxFix deferred
Red Hat Hardened ImagesnginxAffected
Red Hat Hardened ImagesphpNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-123640.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

  • LLCForge/CVE-2026-123640 Harbor Check: matches CVE 0 stars, Python, created
    CVE-2026-123640 — nginx HTTP/3 use-after-free under connection exhaustion (HTTP/2 sibling: CVE-2026-123633). PoC coming soon.

History

  1. Analyzed by the NVD

Changes since this site first stored the record. The same for every record: /api/public/changes.

References

Check your stackJSON