# CVE-2026-53530: ratex-parser panics on `\verb` with a multibyte delimiter (UTF-8 byte-boundary slice)

- Severity: High 8.7 (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:H/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 26% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-07T23:39:12.000Z
- Modified: 2026-10-12T16:10:00.220Z
- Also known as: GHSA-4hgp-59h5-gvrj
- Weaknesses: CWE-248, CWE-400, CWE-1285
- 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, the public parser entrypoint `ratex_parser::parse(&str)` panics on the 9-byte input `\verbéxé` (i.e. `\verb` followed by the non-ASCII delimiter `é`). When handling a `\verb` command, the parser slices the verbatim argument with byte indices (`arg[1..arg.len() - 1]`); if the delimiter character is multibyte UTF-8, index `1` lands inside that character and Rust panics with *“byte index 1 is not a char boundary”*. Because RaTeX’s release profile sets `panic = "abort"` (`Cargo.toml:48`), the panic aborts the entire process — not just the current request/thread — making this a hard denial of service for any service that renders untrusted LaTeX. 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 8.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/erweixin/RaTeX/security/advisories/GHSA-4hgp-59h5-gvrj> (exploit, web)
- <https://github.com/erweixin/RaTeX> (package)

## Sources

- CVE List: [CVE-2026-53530](https://www.cve.org/CVERecord?id=CVE-2026-53530), CVE Terms of Use, modified 2026-08-24
- GitHub Advisory Database: [GHSA-4hgp-59h5-gvrj](https://github.com/advisories/GHSA-4hgp-59h5-gvrj), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2026-53530](https://nvd.nist.gov/vuln/detail/CVE-2026-53530), Public domain, modified 2026-10-12

---

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