nginx2root
本文为原文前 6,000 字符的节选翻译,完整内容请查看原文。
nginx2root
Contents Introduction
- Executive Summary What an attacker can do Affected versions What to do How we found them nginx2root at a glance
- Affected Versions and How to Check for Exposure 2.1. Affected Versions 2.2. Internet Exposure 2.3. Commands to Check for Exposure
- Response and Recommended Actions 3.1. Immediate Action 3.2. Investigating Possible Attacks 3.3. Emergency Mitigations Before Patching
- Discovery and Disclosure Timeline
- Technical Analysis of the nginx Vulnerabilities 5.1. CVE-2026-123007 5.2. CVE-2026-123634 5.3. CVE-2026-123633 5.4. CVE-2026-121810 5.5. CVE-2026-113425
- Analysis of the Linux Kernel LPE Vulnerability 6.1. How SCTP Associations Work 6.2. Vulnerability Details 6.3. Exploitability Validation Closing Remarks About Xint
目录 引言
- 执行摘要 攻击者能做什么 受影响版本 应对措施 发现过程 nginx2root 概览
- 受影响版本及暴露检查方法 2.1. 受影响版本 2.2. 互联网暴露情况 2.3. 检查暴露情况的命令
- 响应与建议操作 3.1. 立即行动 3.2. 调查潜在攻击 3.3. 修补前的紧急缓解措施
- 发现与披露时间线
- nginx 漏洞技术分析 5.1. CVE-2026-123007 5.2. CVE-2026-123634 5.3. CVE-2026-123633 5.4. CVE-2026-121810 5.5. CVE-2026-113425
- Linux 内核 LPE 漏洞分析 6.1. SCTP 关联的工作原理 6.2. 漏洞详情 6.3. 可利用性验证 结语 关于 Xint
Introduction nginx is one of the most widely deployed web servers in the world. Finding an unauthenticated remote code execution bug in it has long been a holy grail for security researchers. The Xint research team recently found five. Each one leads to remote code execution on its own, but they affect different configurations.
引言 nginx 是全球部署最广泛的 Web 服务器之一。在其中发现未经身份验证的远程代码执行漏洞,长期以来一直是安全研究人员追求的“圣杯”。Xint 研究团队最近发现了五个此类漏洞。每一个漏洞都能独立导致远程代码执行,但它们影响不同的配置。
Xint also found a separate vulnerability in the Linux kernel which can be chained with any of the nginx vulnerabilities to gain root privileges on the host. Together, we call these six vulnerabilities nginx2root.
Xint 还发现了一个独立的 Linux 内核漏洞,它可以与任何一个 nginx 漏洞串联使用,从而在主机上获得 root 权限。我们将这六个漏洞统称为 nginx2root。
If you run nginx, update to 1.31.9 as soon as the fixed release becomes available. This article explains the root cause of each nginx2root vulnerability and summarizes our exploitability assessments. For exposure checks, see Section 2 and for patching and temporary mitigations, see Section 3.
如果您正在运行 nginx,请在修复版本发布后尽快更新至 1.31.9。本文解释了每个 nginx2root 漏洞的根本原因,并总结了我们的可利用性评估。有关暴露检查,请参阅第 2 节;有关修补和临时缓解措施,请参阅第 3 节。
-
Executive Summary What an attacker can do The most impactful of the five findings, CVE-2026-123007, allows an unauthenticated attacker to execute commands on an affected nginx server with HTTP/2 enabled. The commands run with the privileges of the nginx worker process that handles the request.
-
执行摘要 攻击者能做什么 五个发现中最具影响力的 CVE-2026-123007 允许未经身份验证的攻击者在启用了 HTTP/2 的受影响 nginx 服务器上执行命令。这些命令以处理请求的 nginx 工作进程的权限运行。
We chained this vulnerability with a separate flaw in the Linux kernel’s SCTP subsystem to gain root privileges on the host. In our tests, the chain also escaped a Docker container running nginx and obtained root on the underlying host.
我们将此漏洞与 Linux 内核 SCTP 子系统中的一个独立缺陷串联起来,以在主机上获得 root 权限。在我们的测试中,该链条还成功逃逸了运行 nginx 的 Docker 容器,并在底层主机上获得了 root 权限。
In the video below, we use CVE-2026-123007 to execute commands as the nginx worker inside a container, then use the kernel vulnerability to escalate to root on the host. nginx2root demo video
在下方的视频中,我们使用 CVE-2026-123007 以容器内 nginx 工作进程的身份执行命令,然后利用内核漏洞将权限提升至主机的 root。 nginx2root 演示视频
We ran this demo on AWS, attacking the server over its public IP address. Demos for AWS, GCP, Azure, and bare-metal servers are available at nginx2root.com.
我们在 AWS 上运行了此演示,通过其公共 IP 地址攻击服务器。针对 AWS、GCP、Azure 和裸机服务器的演示可在 nginx2root.com 查看。
Affected versions Each one of the five nginx vulnerabilities are independent attack paths and do not need to be chained together. They differ in what configuration is affected.
受影响版本 五个 nginx 漏洞中的每一个都是独立的攻击路径,不需要串联使用。它们在受影响的配置上有所不同。
[Table omitted for brevity] For CVE-2026-123634, the table shows the setup we tested, which uses the mirror directive. Other nginx features that create subrequests, such as SSI, may reach the same bug, so turning off mirror alone does not make a server safe.
(表格从略) 对于 CVE-2026-123634,表格显示了我们测试的设置,该设置使用了 mirror 指令。其他创建子请求的 nginx 功能(如 SSI)也可能触发相同的错误,因此仅关闭 mirror 并不能使服务器变得安全。
CVE-2026-123007 has been present since nginx introduced HTTP/2 in 2015, more than a decade ago. Every official release from 1.9.5 through 1.31.8 contains the vulnerable code, including the master branch on Nov 10, 2026. Even servers running recent releases therefore need the same checks for patch status and HTTP/2 exposure as older installations.
CVE-2026-123007 自 2015 年 nginx 引入 HTTP/2 以来就一直存在,距今已超过十年。从 1.9.5 到 1.31.8 的每个官方版本都包含此漏洞代码,包括 2026 年 11 月 10 日的 master 分支。因此,即使是运行最新版本的服务器,也需要像旧版本安装一样进行补丁状态和 HTTP/2 暴露情况的检查。
What to do Update to 1.31.9 when it is available. Until then, disabling HTTP/2 on affected listening ports blocks CVE-2026-123007 and CVE-2026-123633. It does not block the other three nginx vulnerabilities. Check your configuration against the table above and apply the matching mitigations in Section 3.3.
应对措施 在 1.31.9 版本可用时进行更新。在此之前,在受影响的监听端口上禁用 HTTP/2 可以阻止 CVE-2026-123007 和 CVE-2026-123633。它无法阻止其他三个 nginx 漏洞。请对照上表检查您的配置,并应用第 3.3 节中相应的缓解措施。
How we found them While preparing for ZeroDay Cloud 2026, a Xint researcher found CVE-2026-123007. A few days later, a fully automated Xint scan found the other four without human guidance.
发现过程 在为 ZeroDay Cloud 2026 做准备时,一名 Xint 研究人员发现了 CVE-2026-123007。几天后,Xint 的全自动扫描在无人干预的情况下发现了其余四个漏洞。
nginx2root at a glance [Table omitted for brevity]
nginx2root 概览 (表格从略)
-
Affected Versions and How to Check for Exposure Section 2 focuses on CVE-2026-123007, the vulnerability that affects the most servers. It only requires HTTP/2 to be enabled. For the other four nginx vulnerabilities, first check the configuration table in Section 1.
-
受影响版本及暴露检查方法 第 2 节重点介绍影响范围最广的漏洞 CVE-2026-123007。它仅要求启用 HTTP/2。对于其他四个 nginx 漏洞,请首先查看第 1 节中的配置表。
2.1. Affected Versions CVE-2026-123007 affects every official nginx release from 1.9.5 through 1.31.8. As of November 10, 2026, the vulnerable code was also still present in the development branch (master).
2.1. 受影响版本 CVE-2026-123007 影响从 1.9.5 到 1.31.8 的每一个官方 nginx 版本。截至 2026 年 11 月 10 日,该漏洞代码仍然存在于开发分支(master)中。
2.1.1. Affected Linux Distributions The version number alone may not show whether a server is patched. Three of the most common versions are the default package versions shipped by major Linux distributions. Ubuntu 24.04 comes with 1.24.0, Ubuntu 22.04 provides 1.18.0, and Debian 12 provides 1.22.1. These distributions may backport security fixes to the existing version instead of replacing it with a new nginx release.
2.1.1. 受影响的 Linux 发行版 仅凭版本号可能无法判断服务器是否已修补。最常见的三个版本是主要 Linux 发行版默认提供的软件包版本。Ubuntu 24.04 自带 1.24.0,Ubuntu 22.04 提供 1.18.0,Debian 12 提供 1.22.1。这些发行版可能会将安全修复程序向后移植(backport)到现有版本,而不是将其替换为新的 nginx 发布版本。
A backport can fix a vulnerability without changing the version reported by nginx -v. Only the distribution’s full package version changes. For example, Ubuntu 22.04 originally shipped 1.18.0-6ubuntu14. By October 26, 2026, se
向后移植可以在不改变 nginx -v 所报告版本号的情况下修复漏洞。只有发行版的完整软件包版本会发生变化。例如,Ubuntu 22.04 最初发布的是 1.18.0-6ubuntu14。到 2026 年 10 月 26 日,se