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

추가 리소스

리눅스 배포판 수정 현황

주요 리눅스 배포판과 그 릴리스 전반에 걸친 가용성을 수정하세요.

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
  • nginx-mod-fancyindex-debuginfo
아니요네Nov 18, 2026
CVE-2026-123633CRITICAL9.2
  • NGINX logoNGINX
  • nginx
아니요네Nov 18, 2026
CVE-2026-132779MEDIUM6.9
  • NGINX logoNGINX
  • cpe:2.3:a:f5:nginx_open_source
아니요네Nov 23, 2026
CVE-2026-125283MEDIUM6.9
  • NGINX logoNGINX
  • nginx.src
아니요네Nov 18, 2026
CVE-2026-123640MEDIUM6.9
  • NGINX logoNGINX
  • nginx-core
아니요네Nov 18, 2026

무료 취약점 평가

클라우드 보안 포세를 벤치마킹하세요

9개 보안 영역에서 클라우드 보안 관행을 평가하여 위험 수준을 벤치마킹하고 방어의 허점을 파악하세요.

요청 평가

추가 Wiz 리소스

맞춤형 데모를 받아보세요

맞춤형 데모 신청하기

"내가 본 최고의 사용자 경험은 클라우드 워크로드에 대한 완전한 가시성을 제공합니다."
데이비드 에슬릭CISO
"Wiz는 클라우드 환경에서 무슨 일이 일어나고 있는지 볼 수 있는 단일 창을 제공합니다."
아담 플레처최고 보안 책임자(CSO)
"우리는 Wiz가 무언가를 중요한 것으로 식별하면 실제로 중요하다는 것을 알고 있습니다."
그렉 포니아토프스키위협 및 취약성 관리 책임자