Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-53531— ratex-parser has unbounded parser recursion that leads to stack overflow (process abort)

Quick assessment

Affected
erweixin RaTeX
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

RaTeX 是一个用 Rust 编写的、与 KaTeX 兼容的数学公式渲染引擎。在 0.1.11 版本之前,RaTeX 的递归下降解析器在处理 、 、 、 等结构时,每增加一个嵌套层级就会递归调用一个(或多个)原生栈帧,且没有设置最大深度限制。当输入包含约 10 KB 的嵌套结构时,就会耗尽主线程默认的 8 MB 栈空间,导致进程中止。即使通过配置 (见 第 48 行),由于 Rust 中的栈溢出无论如何都会触发致命的 信号(与 panic 策略无关),因此该漏洞会导致不可恢复的、整个进程范围的拒绝服务(DoS),

CVSS 6.9 · Medium EPSS 0.26% · P18

Possible ATT&CK Techniques 1 AI

T1499 · Endpoint Denial of Service

Affected Version Matrix 1

VendorProduct Version RangeStatus
erweixin RaTeX < 0.1.11 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-53531

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
ratex-parser has unbounded parser recursion that leads to stack overflow (process abort)
Source: CVE Program / CVE List V5
Vulnerability Description
RaTeX is a KaTeX-compatible math rendering engine written in Rust. Prior to version 0.1.11, RaTeX’s recursive-descent parser recurses one (or more) native stack frame per nesting level at `{`, `\left`, `\sqrt{`, `^{`, etc, with no maximum depth limit. A short, ~10 KB input of nested groups overflows the 8 MB main-thread stack and aborts the process. With `panic = "abort"` (`Cargo.toml:48`), and because a Rust stack overflow is always a fatal `SIGABRT` regardless of panic strategy this is an unrecoverable, whole-process denial of service reachable from a single untrusted LaTeX string. Version 0.1.11 fixes the issue.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Source: CVE Program / CVE List V5
Vulnerability Type
未加控制的资源消耗(资源穷尽)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
erweixin RaTeX < 0.1.11 -

II. Public POCs for CVE-2026-53531

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-53531

登录查看更多情报信息。

Vendor Advisories for CVE-2026-53531 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-53531

No comments yet


Leave a comment