In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsUpgrade ratex-parser to version 0.1.11 or higher.
ratex-parser is a LaTeX parser for RaTeX
Affected versions of this package are vulnerable to Improper Validation of Specified Index, Position, or Offset in Input due to UTF-8 byte-boundary slicing in the parse_symbol_inner handling of \verb commands in crates/ratex-parser/src/parser.rs. An attacker can crash the process by supplying a \verb delimiter that is a multibyte character, such as \verbéxé, which triggers a slice starting inside the delimiter character. This aborts parsing for untrusted LaTeX input and, in release builds configured with panic = "abort", can take down the entire service or application process. Users lose availability of any endpoint or pipeline that renders attacker-controlled TeX.
Notes
ratex_parser::parse(&str) entry point, so any caller that accepts attacker-supplied LaTeX through that API inherits the DoS risk.\verb* path uses the same slicing logic and can panic on a multibyte delimiter there as well.