Skip to main content
← All vulnerabilities
CVE-2026-53531GHSA-4W5H-HX6R-28Q7

ratex-parser has unbounded parser recursion that leads to stack overflow (process abort)

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.1.11
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • erweixin RaTeX

    fixed in 0.1.11

  • ratex-parsercrates.io

    fixed in 0.1.11

References 1

GitHub · erweixin/RaTeX