CVE-2026-53531 ratex-parser has unbounded parser recursion that leads to stack overflow (process abort)
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io ratex-parser(crates.io) | < 0.1.11 | 0.1.11 | Fixed |
| erweixin RaTeX | = < 0.1.11 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io ratex-parser(crates.io) | < 0.1.11 | 0.1.11 |
| erweixin RaTeX | = < 0.1.11 | No fix listed |
References
- https://github.com/erweixin/RaTeX/security/advisories/GHSA-4w5h-hx6r-28q7 exploit vendor-advisory
- github.com product
- github.com
- ENISA EUVD EUVD-2026-64180 third-party-advisory