CVE-2026-123640: 
NGINX 脆弱性分析と緩和策

概要

CVE-2026-123640 is an authorization bypass vulnerability in NGINX's ngx_stream_ssl_preread_module that allows unauthenticated remote attackers to forge SSL/TLS preread variable values, thereby manipulating stream routing and potentially reaching privileged or internal backends. It was published on November 18, 2026, and affects NGINX Open Source versions 1.15.2 through 1.30.6 and 1.31.0 through 1.31.8, NGINX Plus R33–R36 and 37.0.0–37.1.0, as well as related F5 products including NGINX Ingress Controller, NGINX Gateway Fabric, NGINX Instance Manager, and F5 WAF/DoS for NGINX. The vulnerability carries a CVSS v3.1 base score of 5.3 (Medium) and a CVSS v4.0 base score of 6.9 (Medium) (GitHub Advisory, F5 Advisory).

技術的詳細

The root cause is improper validation of syntactic correctness and unsafe equivalence in input (CWE-1286, CWE-1289) within NGINX's TLS ClientHello parsing logic in the ngx_stream_ssl_preread_module. When NGINX processes a specially crafted ClientHello message — for example, one containing duplicate SNI extensions, malformed SNI length fields, NUL bytes, trailing FQDN dots, or case variations — the module incorrectly derives the values of $ssl_preread_server_name and related variables used for virtual server selection. An unauthenticated attacker with network access to the NGINX stream listener can send such a crafted ClientHello over a standard TCP connection with no prior authentication, causing NGINX to route the connection to a backend that should be inaccessible. Additionally, the malformed message may cause a TLS handshake disagreement with proxied servers that lack TLS 1.3 support. Public PoC code demonstrates differential probing via seven ClientHello variants (duplicate names, oversized length, NUL byte, FQDN dot, case mismatch) to identify inconsistent routing behavior (GitHub Advisory, F5 Advisory).

影響

Successful exploitation allows an unauthenticated attacker to bypass NGINX stream routing segmentation and route connections to privileged or internal backends that are intended to be unreachable from external networks. This is a data plane issue only — there is no control plane exposure — but the integrity of routing decisions is compromised, and sensitive information accessible on internal backends may be exposed. In environments where NGINX acts as a TLS-terminating stream proxy routing to multiple backend tiers, exploitation could enable unauthorized access to internal APIs, databases, or administrative services, representing a significant lateral movement risk (GitHub Advisory, F5 Advisory).

利用可能性

At least two public proof-of-concept repositories exist on GitHub (LLCForge PoC, cveForge PoC), both written in Python and demonstrating ClientHello variant probing and malformed TLS record fuzzing against NGINX stream listeners. Neither PoC has been confirmed to achieve full routing bypass to a privileged backend in practice; they primarily demonstrate differential probing and potential availability impact. There is no evidence of in-the-wild exploitation at this time, and the CVE is not listed in the CISA KEV catalog. The EPSS score is approximately 0.38–0.68%, indicating a low-to-moderate near-term exploitation probability. The vulnerability is automatable (no user interaction or authentication required) (GitHub Advisory, F5 Advisory).

エクスプロイテーションのステップ

  1. Reconnaissance: Identify internet-facing NGINX instances configured with ngx_stream_ssl_preread_module using tools like Shodan or Censys, targeting stream listeners (commonly on port 443 or custom TCP ports). Confirm the target version is within the vulnerable range (NGINX Open Source < 1.30.7 or < 1.31.9; NGINX Plus R33–R36 or 37.0.x/37.1.x).
  2. Craft malformed ClientHello: Construct a TLS ClientHello record (content type 0x16, version 0x0301) with a malformed SNI extension — for example, a duplicate SNI extension listing both an internal and public hostname, an SNI length field set significantly larger than the actual data (e.g., 60000 vs. 10 bytes), a NUL byte within the SNI value, a trailing FQDN dot, or mixed-case hostname.
  3. Send probe to stream listener: Open a raw TCP connection to the NGINX stream port and send the crafted ClientHello record (e.g., using python3 poc.py --variant duplicate_names --host <target> --port <port> --target-sni internal.example.com).
  4. Observe routing response: Read up to 64 bytes of the server response and classify it — a response indicating an "internal" pool confirms that the forged SNI value caused NGINX to route the connection to the privileged backend instead of the intended public backend.
  5. Access internal backend: With routing bypass confirmed, establish a full connection to the internal backend service through the NGINX stream proxy, potentially accessing internal APIs, administrative interfaces, or sensitive data that should be network-isolated (GitHub Advisory, F5 Advisory).

妥協の兆候

  • Network: Unexpected TCP connections to NGINX stream listeners (non-standard ports) from external IP addresses; TLS ClientHello records with malformed or duplicate SNI extensions observable via packet capture (e.g., Wireshark filter: tls.handshake.type == 1).
  • Network: Connections from the NGINX stream proxy to internal/privileged backend services that are not expected from external client traffic; unusual source IPs appearing in backend access logs.
  • Logs: NGINX stream access logs showing connections routed to internal upstream groups from unexpected client IPs; TLS handshake errors or connection resets in NGINX error logs (error.log) related to SSL preread processing.
  • Logs: Repeated short-lived TCP connections to the stream listener port from a single source IP in rapid succession (consistent with automated probing behavior from PoC tools).
  • Process/Behavior: NGINX worker processes logging unexpected upstream selection for stream connections; health check endpoints becoming unresponsive following bursts of malformed ClientHello messages (potential DoS side-effect of fuzzing variants) (GitHub Advisory, F5 Advisory).

緩和策と回避策

F5 has released patched versions: NGINX Open Source 1.30.7 and 1.31.9; NGINX Plus 37.0.7.1 (37.0.x branch) and 37.2.0.1 (37.1.x branch). Upgrading to a patched version is the recommended remediation. If immediate patching is not possible, consider disabling the ngx_stream_ssl_preread_module if it is not operationally required, or restricting access to NGINX stream listeners to trusted network segments via firewall rules. cPanel/EasyApache4 users should update to EasyApache4 v25.98 or later. Downstream distributions including Ubuntu (USN-9159-1, USN-9182-1), Amazon Linux, SUSE, Alpine, and FreeBSD have also released updated packages (F5 Advisory, cPanel Advisory, GitHub Advisory).

コミュニティの反応

The vulnerability was disclosed as part of a broader set of NGINX security fixes (dubbed "nginx2root" by some researchers) released alongside NGINX 1.31.9 and 1.30.7, which addressed approximately 10 CVEs. Security vendors including Qualys, Tenable, and Wiz published blog posts and detection content covering the full set of NGINX vulnerabilities. The NCSC Ireland issued a security advisory (PDF), and multiple Linux distributions rapidly released updated packages. Community coverage on platforms like dev.to and security blogs highlighted the broader nginx2root disclosure, though CVE-2026-123640 specifically received less individual attention than the higher-severity RCE vulnerabilities in the same release batch (F5 Advisory, cPanel Advisory).

追加リソース

Linuxディストリビューションの修正状況

主要なLinuxディストリビューションとそのリリース間での可用性を修正しましょう。

Debian

修正済

bookworm

nginx: 1.22.1-9+deb12u11

修正済

sid

nginx: 1.30.6-4

修正済

trixie

nginx: 1.26.3-3+deb13u11

修正済

Ubuntu

修正済

bionic (esm-infra)

nginx: 1.14.0-0ubuntu1.11+esm7

修正済

devel

nginx: 1.30.6-3ubuntu2

影響

focal (esm-infra)

nginx: 1.18.0-0ubuntu1.7+esm6

修正済

jammy

nginx: 1.18.0-6ubuntu14.24

修正済

noble

nginx: 1.24.0-2ubuntu7.21

修正済

resolute

nginx: 1.28.3-2ubuntu1.13

修正済

trusty (esm-infra-legacy)

nginx

影響なし

xenial (esm-infra-legacy)

nginx

影響なし

RHEL / CentOS

影響

RHEL 8

nginx:1.24/nginx.src

影響

RHEL 9

nginx.src

影響

RHEL 10

nginx.src

影響

Alpine

修正済

edge

nginx: 1.30.7-r0

修正済

v3.21

nginx: 1.26.3-r4

修正済

v3.22

nginx: 1.28.3-r8

修正済

v3.23

nginx: 1.28.3-r8

修正済

ソース: この報告書はAIを用いて作成されました

関連 NGINX 脆弱性:

CVE ID

重大度

スコア

テクノロジー

コンポーネント名

CISA KEVのエクスプロイト

修正あり

出版日

CVE-2026-123634CRITICAL9.2
  • NGINX logoNGINX
  • waf
いいえはいNov 18, 2026
CVE-2026-123633CRITICAL9.2
  • NGINX logoNGINX
  • cpe:2.3:a:openresty:openresty
いいえはいNov 18, 2026
CVE-2026-132779MEDIUM6.9
  • NGINX logoNGINX
  • nginx:1.26::nginx-core
いいえはいNov 23, 2026
CVE-2026-125283MEDIUM6.9
  • NGINX logoNGINX
  • nginx-mod-headers-more
いいえはいNov 18, 2026
CVE-2026-123640MEDIUM6.9
  • NGINX logoNGINX
  • nginx-debuginfo
いいえはいNov 18, 2026

無料脆弱性評価

クラウドセキュリティの姿勢をベンチマークしましょう

9つのセキュリティ領域にわたるクラウドセキュリティの実践を評価し、リスクレベルをベンチマークし、防御のギャップを特定しましょう。

評価のリクエスト

Wizのその他のリソース

パーソナライズされたデモを見る

実際に Wiz を見てみませんか?​

"私が今まで見た中で最高のユーザーエクスペリエンスは、クラウドワークロードを完全に可視化します。"
デビッド・エストリックCISO (最高情報責任者)
"Wiz を使えば、クラウド環境で何が起こっているかを 1 つの画面で確認することができます"
アダム・フレッチャーチーフ・セキュリティ・オフィサー
"Wizが何かを重要視した場合、それは実際に重要であることを私たちは知っています。"
グレッグ・ポニャトフスキ脅威および脆弱性管理責任者