# Libxml2 relaxng 包含栈溢出漏洞
## 概述
libxml2 的 RelaxNG 解析器在处理外部模式包含时存在缺陷,未对嵌套 `<include>` 指令的包含深度设置限制。
## 影响版本
未明确指定具体版本,涉及使用 RelaxNG 外部模式包含功能的 libxml2 版本。
## 细节
解析器在处理 RelaxNG 模式时,未对 `<include>` 元素的嵌套深度进行限制。攻击者可构造包含深层或循环嵌套 `<include>` 的模式文件,导致解析过程中产生过度递归。
## 影响
过度递归可导致栈空间耗尽,引发应用程序崩溃,造成拒绝服务(DoS)。
是否为 Web 类漏洞: 未知
判断理由:
| # | POC 描述 | 源链接 | 神龙链接 |
|---|
标题: 2429933 – (CVE-2026-0989) CVE-2026-0989 libxml2: Unbounded RelaxNG Include Recursion Leading to Stack Overflow -- 🔗来源链接
标签:issue-trackingx_refsource_REDHAT
神龙速读:
### 关键漏洞信息
- **CVE编号**: CVE-2026-0989
- **Bug ID**: 2429933
- **漏洞类型**: Uncontrolled recursion
- **组件**: libxml2
- **影响**: Stack overflow and application crash, leading to denial of service
- **根本原因**: Absence of limits on recursive `<include>` directive resolution in libxml2's RelaxNG include handling logic
- **受影响的环境**: Linux systems using libxml2
- **报告日期**: 2026-01-15 12:53 UTC
- **修改日期**: 2026-01-15 13:48 UTC
### 关键描述
- **问题描述**: Uncontrolled recursion vulnerability in the RelaxNG include handling logic of the libxml2 XML parsing library. Processing deeply nested chains of included RelaxNG schema files leads to unbounded recursion, depleting the system call stack and causing a stack overflow and application crash, resulting in a denial of service.
### 附加信息
- **相关Bug编号**: 2429936, 2429937, 2429938, 2429939, 2429940, 2429941, 2429942, 2429943, 2429944, 2429945, 2429946, 2429947
- **状态**: NEW
- **优先级**: Low
- **严重性**: Low
暂无评论