Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. ratex-parser
  4. ›
  5. CVE-2026-53530

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

July 7, 2026

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.

References

  • github.com/advisories/GHSA-4hgp-59h5-gvrj
  • github.com/erweixin/RaTeX/security/advisories/GHSA-4hgp-59h5-gvrj
  • nvd.nist.gov/vuln/detail/CVE-2026-53530

Code Behaviors & Features

Detect and mitigate CVE-2026-53530 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.1.11

Fixed versions

  • 0.1.11

Solution

Upgrade to version 0.1.11 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-1285: Improper Validation of Specified Index, Position, or Offset in Input
  • CWE-248: Uncaught Exception
  • CWE-400: Uncontrolled Resource Consumption

Source file

cargo/ratex-parser/CVE-2026-53530.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 08 Jul 2026 12:19:53 +0000.