KnowSafe 安全预警:KnowSafe 安全团队监测到编号 AVD-2026-42945 的安全漏洞(危害等级:高危)已公开披露,相关用户应尽快排查并完成修复。
漏洞介绍
NGINX Plus 和 NGINX Open Source 的 ngx_http_rewrite_module 存在堆缓冲区溢出漏洞。该漏洞在特定配置下触发:rewrite 指令的替换字符串包含问号 ?,并且后续跟随 rewrite、if 或 set 指令,同时使用未命名 PCRE 捕获组(如 $1、$2)。远程未认证攻击者可通过构造恶意 HTTP 请求触发该缺陷,导致 NGINX worker 进程发生堆内存破坏并重启,造成拒绝服务;在关闭 ASLR 的系统上,可能进一步实现远程代码执行。
影响范围
0.6.27 <= NGINX Open Source <= 0.9.7
1.0.0 <= NGINX Open Source <= 1.30.0
R32 <= NGINX Plus < R32 P6
R36 <= NGINX Plus < R36 P4
更多受影响组件以及版本可参考 https://my.f5.com/manage/s/article/K000161019
安全版本
NGINX Open Source 1.30.1 及其以上版本
NGINX Open Source 1.31.0 及其以上版本
影响范围
系统:alibaba_cloud_linux_3 nginx(影响面 Up to (excluding) 1.20.1-1.0.7.1.al8)
系统:alibaba_cloud_linux_3_pro nginx(影响面 Up to (excluding) 1.20.1-1.0.7.1.al8)
系统:alma_linux_9 nginx(影响面 Up to (excluding) 1.20.1-24.el9_7.3.alma.1)
系统:alpine_3.21 nginx(影响面 Up to (excluding) 1.26.3-r1)
系统:alpine_3.22 nginx(影响面 Up to (excluding) 1.28.3-r1)
系统:alpine_3.23 nginx(影响面 Up to (excluding) 1.28.3-r1)
系统:alpine_3.24 nginx(影响面 Up to (excluding) 1.30.1-r0)
系统:amazon_2 nginx(影响面 Up to (excluding) 1.30.1-1.amzn2.0.1)
……另有 27 项受影响环境,详见官方公告
解决方案
1、升级Nginx至最新版本。
2、使用 NGINX Plus、NGINX Ingress Controller、NGINX Gateway Fabric、F5 WAF/App Protect 等相关产品的环境,应按 F5 官方公告升级到对应修复版本。
3、通过操作系统包管理器安装的Nginx其安全版本由上游操作系统发行方决定。
参考信息
https://access.redhat.com/errata/RHSA-2026:17417
https://access.redhat.com/errata/RHSA-2026:17751
https://access.redhat.com/errata/RHSA-2026:17752
https://access.redhat.com/errata/RHSA-2026:17753
https://access.redhat.com/errata/RHSA-2026:17790
KnowSafe 将持续跟踪该漏洞的利用情况与修复进展,如需漏洞管理与应急响应支持,欢迎联系 KnowSafe 安全团队。