Medium severity · published Aug 21, 2026
CVE-2026-53531
ratex-parser has unbounded parser recursion that leads to stack overflow (process abort)
6.9
CVSS
0.4%
EPSS
No
On KEV
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.
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 37% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
RA
RaTeX · erweixin
< 0.1.11 · source: vendor
Affected product
RA
RaTeX
erweixin
More from RaTeX
8.7
CVE-2026-53530
ratex-parser panics on `\verb` with a multibyte delimiter (UTF-8 byte-boundary slice)