NGINX2Root: five nginx flaws can let attackers take over servers (CVE-2026-123007)

NGINX2Root: five critical nginx vulnerabilities

Five memory bugs in nginx, together called NGINX2Root, can crash web servers and, in the worst case, let attackers run their own code on them. nginx 1.31.9 and 1.30.7 fix all five. Anyone running nginx with HTTP/2 enabled should update and restart now.

What happened

nginx and F5 released fixes on 18 November 2026 for five vulnerabilities in parts of nginx that many sites use every day: HTTP/2, HTTP/3, the DNS resolver and the mail proxy. Security firm Xint, which named the set NGINX2Root, says it found the bugs on 11 October and reported them to F5 on 16 October.

The most serious one, CVE-2026-123007, sits in HTTP/2 flow control and is present in every nginx release from 1.9.5 to 1.31.8. Specially crafted traffic can push the flow control window past its limit and overflow memory on the heap. Usually this only crashes an nginx worker, but where address space layout randomization (ASLR) is turned off or can be bypassed, an attacker can run code. Xint says it ran commands as the nginx worker this way and then used a separate, still unpatched Linux kernel bug in the SCTP code to become root on the host, even from inside a Docker container. That chain gave the set its name.

A public proof of concept for CVE-2026-123007 is available on GitHub. As of 19 November, no attacks using the flaws had been reported, and they were not in CISA's Known Exploited Vulnerabilities catalog.

Who is affected

Every open-source nginx release older than 1.30.7 (stable) and 1.31.9 (mainline) carries at least one of the bugs, but each one needs a specific feature to be switched on:

  • CVE-2026-123007: HTTP/2, nginx 1.9.5 to 1.31.8
  • CVE-2026-123633: HTTP/2 towards clients plus proxying to a backend, when a worker runs low on worker_connections, nginx 1.19.7 to 1.31.8
  • CVE-2026-121810: HTTP/3, nginx 1.25.0 to 1.31.8
  • CVE-2026-123634: proxying to a server name with variables plus SSI or mirror subrequests that resolve it, nginx 0.6.18 to 1.31.8
  • CVE-2026-113425: the mail proxy, nginx 0.5.33 to 1.31.8

NGINX Plus is affected too. HTTP/2 is switched on for most HTTPS sites, so public web servers and reverse proxies are the most exposed. No login and no user action are needed.

How serious it is

F5 rates all five 9.2 out of 10 under CVSS 4.0, which is critical. Under CVSS 3.1 the vector is AV:N/AC:H/PR:N/UI:N (8.1, high): reachable over the network with no login and no user action, but complex to exploit, because running code needs an ASLR bypass. nginx.org rates CVE-2026-123007 and CVE-2026-113425 as major and the other three as medium.

How to fix it

Update to nginx 1.31.9 (mainline) or 1.30.7 (stable), which fix all five bugs, then restart nginx: a configuration reload keeps the old program running. Linux distributions often ship the fix under their own package versions, so check your distribution's security notice. NGINX Plus users should follow F5's advisories.

If you cannot update at once, turning off HTTP/2 on public listeners blocks CVE-2026-123007 and CVE-2026-123633, but not the other three. Until the Linux kernel is fixed, Xint advises blocking the SCTP kernel module on hosts that do not use it.

Check your version

nginx -v
nginx -T 2>/dev/null | grep -nE 'listen .*http2|http2 on'

The five CVEs

  • CVE-2026-123007 (CVSS 9.2, 18 Nov 2026): This issue affects NGINX Plus or NGINX Open Source configurations that use HTTP/2. When NGINX processes undisclosed traffic, the flow control window can exceed the allowed threshold, potentially resulting in a heap buffer overflow typically followed by an NGINX worker segmentation fault.
  • CVE-2026-123633 (CVSS 9.2, 18 Nov 2026): When NGINX Plus or NGINX Open Source is configured to use HTTP/2 for client connections and proxy client requests to a backend, a specially crafted request can result in use-after-free in the worker process, if this process is running low on worker_connections.
  • CVE-2026-121810 (CVSS 9.2, 18 Nov 2026): Description: This issue affects NGINX Plus and NGINX Open Source configurations that use HTTP/3. A remote, unauthenticated attacker can cause a use-after-free condition in the NGINX worker process, leading to a restart. Exploitation also depends on conditions beyond the attacker’s control.
  • CVE-2026-123634 (CVSS 9.2, 18 Nov 2026): This issue occurs when NGINX Plus or NGINX Open Source is configured as a proxy, the proxied server name includes variables, and a Server Side Includes (SSI) or mirror directive sends a subrequest to a location that resolves the same server name.
  • CVE-2026-113425 (CVSS 9.2, 18 Nov 2026): When NGINX Plus or NGINX Open Source is configured as a mail proxy, undisclosed traffic can cause a use-after-free in an nginx worker process. Additionally, attackers can execute code on systems with Address Space Layout Randomization (ASLR) disabled or when the attacker can bypass ASLR.

References

This article was written from the nginx.org and F5 advisories, NVD data and the researchers' reports, and translated by machine. Check the vendor advisory before you act.

NGINX2Root: five critical nginx vulnerabilities

Năm lỗi bộ nhớ trong nginx, được gọi chung là NGINX2Root, có thể làm sập máy chủ web và trong trường hợp xấu nhất cho phép kẻ tấn công chạy mã của chúng trên đó. nginx 1.31.9 và 1.30.7 đã sửa cả năm lỗi. Ai đang chạy nginx có bật HTTP/2 nên cập nhật và khởi động lại ngay.

Chuyện gì đã xảy ra

Ngày 18 tháng 11 năm 2026, nginx và F5 phát hành bản sửa cho năm lỗ hổng ở những phần nginx mà rất nhiều trang web dùng hằng ngày: HTTP/2, HTTP/3, bộ phân giải DNS và mail proxy. Công ty bảo mật Xint, nơi đặt tên NGINX2Root cho nhóm lỗi này, cho biết họ tìm ra các lỗi ngày 11 tháng 10 và báo cho F5 ngày 16 tháng 10.

Lỗi nghiêm trọng nhất, CVE-2026-123007, nằm trong phần điều khiển luồng của HTTP/2 và có mặt trong mọi bản nginx từ 1.9.5 đến 1.31.8. Lưu lượng được tạo đặc biệt có thể đẩy cửa sổ điều khiển luồng vượt giới hạn và làm tràn bộ nhớ trên heap. Thường thì lỗi này chỉ làm sập một tiến trình worker của nginx, nhưng ở nơi ngẫu nhiên hoá bố cục bộ nhớ (ASLR) bị tắt hoặc bị vượt qua, kẻ tấn công có thể chạy mã. Xint cho biết họ đã chạy lệnh với quyền của worker nginx theo cách này, rồi dùng một lỗi khác trong phần SCTP của nhân Linux, hiện vẫn chưa có bản sửa, để lên quyền root trên máy chủ, kể cả từ bên trong một container Docker. Chuỗi tấn công đó là nguồn gốc của cái tên.

Mã khai thác thử nghiệm (proof of concept) cho CVE-2026-123007 đã được công bố trên GitHub. Tính đến ngày 19 tháng 11, chưa có báo cáo nào về tấn công dùng các lỗi này, và chúng chưa có trong danh mục lỗ hổng đang bị khai thác (KEV) của CISA.

Ai bị ảnh hưởng

Mọi bản nginx mã nguồn mở cũ hơn 1.30.7 (bản ổn định) và 1.31.9 (bản mainline) đều có ít nhất một trong các lỗi này, nhưng mỗi lỗi chỉ xảy ra khi một tính năng cụ thể được bật:

  • CVE-2026-123007: HTTP/2, nginx 1.9.5 đến 1.31.8
  • CVE-2026-123633: HTTP/2 phía người dùng cùng với proxy tới máy chủ phía sau, khi một worker sắp hết worker_connections, nginx 1.19.7 đến 1.31.8
  • CVE-2026-121810: HTTP/3, nginx 1.25.0 đến 1.31.8
  • CVE-2026-123634: proxy tới tên máy chủ có biến, cùng với subrequest SSI hoặc mirror phân giải tên đó, nginx 0.6.18 đến 1.31.8
  • CVE-2026-113425: mail proxy, nginx 0.5.33 đến 1.31.8

NGINX Plus cũng bị ảnh hưởng. Phần lớn trang HTTPS đều bật HTTP/2, nên máy chủ web công khai và reverse proxy là nơi dễ bị tấn công nhất. Kẻ tấn công không cần đăng nhập và không cần người dùng làm gì.

Mức độ nghiêm trọng

F5 chấm cả năm lỗi 9,2 trên 10 theo CVSS 4.0, tức mức nghiêm trọng. Theo CVSS 3.1, vector là AV:N/AC:H/PR:N/UI:N (8,1, mức cao): tấn công được qua mạng, không cần đăng nhập, không cần người dùng làm gì, nhưng khó khai thác vì muốn chạy mã phải vượt qua được ASLR. nginx.org xếp CVE-2026-123007 và CVE-2026-113425 ở mức major, ba lỗi còn lại ở mức medium.

Cách khắc phục

Cập nhật lên nginx 1.31.9 (mainline) hoặc 1.30.7 (ổn định), hai bản đã sửa cả năm lỗi, rồi khởi động lại nginx: nạp lại cấu hình (reload) vẫn giữ chương trình cũ đang chạy. Các bản phân phối Linux thường đưa bản sửa vào gói với số phiên bản riêng, nên hãy xem thông báo bảo mật của bản phân phối bạn dùng. Người dùng NGINX Plus nên làm theo các khuyến cáo của F5.

Nếu chưa cập nhật được ngay, tắt HTTP/2 ở các cổng công khai sẽ chặn được CVE-2026-123007 và CVE-2026-123633, nhưng không chặn được ba lỗi còn lại. Cho tới khi nhân Linux được sửa, Xint khuyên chặn module SCTP của nhân trên những máy không dùng tới nó.

Kiểm tra phiên bản

nginx -v
nginx -T 2>/dev/null | grep -nE 'listen .*http2|http2 on'

Năm CVE

  • CVE-2026-123007 (CVSS 9,2, 18/11/2026): Lỗi ảnh hưởng tới cấu hình NGINX Plus hoặc NGINX Open Source dùng HTTP/2. Khi NGINX xử lý một lưu lượng chưa được công bố chi tiết, cửa sổ điều khiển luồng có thể vượt ngưỡng cho phép, có thể gây tràn bộ nhớ heap, thường kéo theo lỗi phân đoạn (segmentation fault) ở worker của NGINX.
  • CVE-2026-123633 (CVSS 9,2, 18/11/2026): Khi NGINX Plus hoặc NGINX Open Source được cấu hình dùng HTTP/2 cho kết nối từ người dùng và chuyển yêu cầu tới máy chủ phía sau qua proxy, một yêu cầu được tạo đặc biệt có thể gây lỗi use-after-free trong tiến trình worker, nếu tiến trình này sắp hết worker_connections.
  • CVE-2026-121810 (CVSS 9,2, 18/11/2026): Lỗi ảnh hưởng tới cấu hình NGINX Plus và NGINX Open Source dùng HTTP/3. Kẻ tấn công từ xa, không cần đăng nhập, có thể gây lỗi use-after-free trong tiến trình worker của NGINX, khiến worker phải khởi động lại. Việc khai thác còn phụ thuộc vào những điều kiện nằm ngoài tầm kiểm soát của kẻ tấn công.
  • CVE-2026-123634 (CVSS 9,2, 18/11/2026): Lỗi xảy ra khi NGINX Plus hoặc NGINX Open Source được cấu hình làm proxy, tên máy chủ được proxy tới có chứa biến, và một chỉ thị Server Side Includes (SSI) hoặc mirror gửi subrequest tới một location phân giải cùng tên máy chủ đó.
  • CVE-2026-113425 (CVSS 9,2, 18/11/2026): Khi NGINX Plus hoặc NGINX Open Source được cấu hình làm mail proxy, một lưu lượng chưa được công bố chi tiết có thể gây lỗi use-after-free trong tiến trình worker của nginx. Ngoài ra, kẻ tấn công có thể chạy mã trên hệ thống tắt Address Space Layout Randomization (ASLR) hoặc khi vượt qua được ASLR.

Nguồn tham khảo

Bài viết được soạn từ các khuyến cáo của nginx.org và F5, dữ liệu NVD và báo cáo của các nhà nghiên cứu, rồi được dịch bằng máy. Hãy xem khuyến cáo của nhà cung cấp trước khi hành động.

NGINX2Root: five critical nginx vulnerabilities

Fünf Speicherfehler in nginx, zusammen NGINX2Root genannt, können Webserver abstürzen lassen und Angreifern im schlimmsten Fall erlauben, eigenen Code darauf auszuführen. nginx 1.31.9 und 1.30.7 beheben alle fünf. Wer nginx mit aktiviertem HTTP/2 betreibt, sollte jetzt aktualisieren und neu starten.

Was passiert ist

nginx und F5 haben am 18. November 2026 Korrekturen für fünf Schwachstellen in Teilen von nginx veröffentlicht, die viele Websites täglich nutzen: HTTP/2, HTTP/3, der DNS-Resolver und der Mail-Proxy. Die Sicherheitsfirma Xint, die die Gruppe NGINX2Root getauft hat, gibt an, die Fehler am 11. Oktober gefunden und am 16. Oktober an F5 gemeldet zu haben.

Die schwerste Lücke, CVE-2026-123007, steckt in der Flusskontrolle von HTTP/2 und ist in jeder nginx-Version von 1.9.5 bis 1.31.8 enthalten. Speziell präparierter Datenverkehr kann das Flusskontrollfenster über seine Grenze treiben und Speicher auf dem Heap überlaufen lassen. Meist stürzt dadurch nur ein nginx-Worker ab, doch wo die Adressraum-Randomisierung (ASLR) abgeschaltet ist oder umgangen werden kann, kann ein Angreifer Code ausführen. Xint gibt an, auf diesem Weg Befehle mit den Rechten des nginx-Workers ausgeführt und dann einen separaten, noch nicht behobenen Fehler im SCTP-Code des Linux-Kernels genutzt zu haben, um root-Rechte auf dem Host zu erlangen, sogar aus einem Docker-Container heraus. Diese Kette gab der Gruppe ihren Namen.

Ein öffentlicher Proof of Concept für CVE-2026-123007 ist auf GitHub verfügbar. Bis zum 19. November waren keine Angriffe mit diesen Lücken gemeldet, und sie standen nicht im Katalog der bekannt ausgenutzten Schwachstellen (KEV) der CISA.

Wer betroffen ist

Jede Open-Source-Version von nginx vor 1.30.7 (stabil) und 1.31.9 (Mainline) enthält mindestens einen der Fehler, doch jeder setzt voraus, dass eine bestimmte Funktion eingeschaltet ist:

  • CVE-2026-123007: HTTP/2, nginx 1.9.5 bis 1.31.8
  • CVE-2026-123633: HTTP/2 zu den Clients plus Proxy zu einem Backend, wenn einem Worker die worker_connections ausgehen, nginx 1.19.7 bis 1.31.8
  • CVE-2026-121810: HTTP/3, nginx 1.25.0 bis 1.31.8
  • CVE-2026-123634: Proxy zu einem Servernamen mit Variablen plus SSI- oder Mirror-Unteranfragen, die diesen Namen auflösen, nginx 0.6.18 bis 1.31.8
  • CVE-2026-113425: der Mail-Proxy, nginx 0.5.33 bis 1.31.8

NGINX Plus ist ebenfalls betroffen. Auf den meisten HTTPS-Seiten ist HTTP/2 eingeschaltet, daher sind öffentliche Webserver und Reverse-Proxys am stärksten gefährdet. Weder eine Anmeldung noch ein Zutun des Nutzers ist nötig.

Wie schwer die Lücken wiegen

F5 bewertet alle fünf mit 9,2 von 10 nach CVSS 4.0, also kritisch. Nach CVSS 3.1 lautet der Vektor AV:N/AC:H/PR:N/UI:N (8,1, hoch): über das Netz erreichbar, ohne Anmeldung und ohne Zutun des Nutzers, aber schwer auszunutzen, weil das Ausführen von Code eine Umgehung von ASLR erfordert. nginx.org stuft CVE-2026-123007 und CVE-2026-113425 als major ein, die drei anderen als medium.

So beheben Sie das Problem

Aktualisieren Sie auf nginx 1.31.9 (Mainline) oder 1.30.7 (stabil), die alle fünf Fehler beheben, und starten Sie nginx danach neu: Ein Neuladen der Konfiguration lässt das alte Programm weiterlaufen. Linux-Distributionen liefern die Korrektur oft unter eigenen Paketversionen aus, prüfen Sie daher den Sicherheitshinweis Ihrer Distribution. Nutzer von NGINX Plus sollten den Hinweisen von F5 folgen.

Wenn Sie nicht sofort aktualisieren können, blockiert das Abschalten von HTTP/2 auf öffentlichen Ports CVE-2026-123007 und CVE-2026-123633, nicht aber die anderen drei. Bis der Linux-Kernel behoben ist, rät Xint, das SCTP-Kernelmodul auf Hosts zu sperren, die es nicht brauchen.

Version prüfen

nginx -v
nginx -T 2>/dev/null | grep -nE 'listen .*http2|http2 on'

Die fünf CVEs

  • CVE-2026-123007 (CVSS 9,2, 18.11.2026): Betrifft Konfigurationen von NGINX Plus oder NGINX Open Source, die HTTP/2 nutzen. Verarbeitet NGINX nicht näher beschriebenen Datenverkehr, kann das Flusskontrollfenster den erlaubten Schwellenwert überschreiten, was zu einem Heap-Pufferüberlauf führen kann, auf den meist ein Segmentierungsfehler des NGINX-Workers folgt.
  • CVE-2026-123633 (CVSS 9,2, 18.11.2026): Ist NGINX Plus oder NGINX Open Source so konfiguriert, dass HTTP/2 für Client-Verbindungen genutzt und Anfragen an ein Backend weitergeleitet werden, kann eine speziell präparierte Anfrage einen Use-after-free im Worker-Prozess auslösen, wenn diesem Prozess die worker_connections ausgehen.
  • CVE-2026-121810 (CVSS 9,2, 18.11.2026): Betrifft Konfigurationen von NGINX Plus und NGINX Open Source, die HTTP/3 nutzen. Ein entfernter Angreifer ohne Anmeldung kann im NGINX-Worker-Prozess einen Use-after-free auslösen, der zu einem Neustart führt. Die Ausnutzung hängt zudem von Bedingungen ab, die der Angreifer nicht kontrolliert.
  • CVE-2026-123634 (CVSS 9,2, 18.11.2026): Tritt auf, wenn NGINX Plus oder NGINX Open Source als Proxy konfiguriert ist, der weitergeleitete Servername Variablen enthält und eine Server-Side-Includes-(SSI)- oder Mirror-Anweisung eine Unteranfrage an eine Location sendet, die denselben Servernamen auflöst.
  • CVE-2026-113425 (CVSS 9,2, 18.11.2026): Ist NGINX Plus oder NGINX Open Source als Mail-Proxy konfiguriert, kann nicht näher beschriebener Datenverkehr einen Use-after-free in einem nginx-Worker-Prozess auslösen. Zudem können Angreifer auf Systemen Code ausführen, auf denen Address Space Layout Randomization (ASLR) abgeschaltet ist oder umgangen werden kann.

Quellen

Dieser Artikel wurde aus den Hinweisen von nginx.org und F5, NVD-Daten und den Berichten der Forscher erstellt und maschinell übersetzt. Prüfen Sie vor dem Handeln den Hinweis des Herstellers.

0 nhận xét:

Đăng nhận xét