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

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 25% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-07T23:39:30.000Z
- Modified: 2026-10-12T16:10:00.220Z
- Also known as: GHSA-4w5h-hx6r-28q7
- Weaknesses: CWE-400, CWE-674
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- erweixin RaTeX: < 0.1.11
- ratex-parser (crates.io): before 0.1.11

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://github.com/erweixin/RaTeX/security/advisories/GHSA-4w5h-hx6r-28q7> (exploit, web)
- <https://github.com/erweixin/RaTeX> (package)

## Sources

- CVE List: [CVE-2026-53531](https://www.cve.org/CVERecord?id=CVE-2026-53531), CVE Terms of Use, modified 2026-08-25
- GitHub Advisory Database: [GHSA-4w5h-hx6r-28q7](https://github.com/advisories/GHSA-4w5h-hx6r-28q7), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2026-53531](https://nvd.nist.gov/vuln/detail/CVE-2026-53531), Public domain, modified 2026-10-12

---

Page: https://cve.day/CVE-2026-53531 · Whole record: https://cve.day/CVE-2026-53531.json · Rebuilt by cve.day 2026-11-25T22:59:34.846Z
