ratex-parser の脆弱性 (CVE-2026-53531)
概要
ratex-parser に 脆弱性 (CVE-2026-53531) が存在。不正な操作・情報露出のリスクがあります。SIGABRT 経由で攻撃可能。対策: 0.1.11 以上に更新。
原文の説明
取得元が公開している説明をそのまま載せています (多くは英語)。
Summary
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.
Details
The mutual recursion has no depth guard (crates/ratex-parser/src/parser.rs):
parse_expression (:113) -> parse_atom (:281/285) -> parse_group (:451)
^ |
| on '{' (:459) recurse |
+--------------------------+
\left adds another recursive edge: handle_left → parse_expression (crates/ratex-parser/src/functions/left_right.rs:47). The only counters present are unrelated to depth: leftright_depth (a \right-matching counter, parser.rs:24) and the macro expander’s max_expand = 1000 (macro_expander.rs:64), which does not gate brace / \left recursion (those tokens never pass through expand_once). There is no recursion_limit/depth parameter on parse_group, parse_expression, or parse_atom.
PoC
$ python3 -c 'import sys;sys.stdout.write("{"*200000+"x"+"}"*200000)' | ./target/release/p…
出典: GitHub Security Advisories (Global) NVD GitHub Advisory
自動生成の要約
取得元のデータ (CVSS・CWE・影響バージョンなど) から SecPulse が定型文で組み立てた要約です。AI は使っていません。正確な内容は下の原文と参照URLで確認してください。
ratex-parser という製品で、CVE-2026-53531 という番号がついた弱点 (脆弱性) が見つかりました。
悪い人がインターネット越しに SIGABRT のような特定の入り口を狙うことで、製品の中を不正に操作できてしまいます。
不正な操作・情報露出のリスクがあります。
対策: ratex-parser を 0.1.11 以上に更新してください。
心配なら、システム担当者や製品の公式サイトで「ratex-parser CVE-2026-53531」を検索してください。
CVE-2026-53531 (ratex-parser) — CWE-400
脆弱箇所: SIGABRT / handle_left / parse_expression / leftright_depth
修正バージョン: 0.1.11 (即時適用推奨)
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。
ratex-parser に 脆弱性 (CWE-400) があります。攻撃者は SIGABRT を経由して脆弱な処理に到達できます。
ratex-parser の影響バージョンはベンダーのアドバイザリで確認してください。攻撃箇所: SIGABRT / handle_left / parse_expression / leftright_depth。
重要度: ?。不正な操作・情報露出のリスクがあります。
0.1.11 に更新してください。
修正版が未提供時は、影響機能の無効化・WAFルール・ネットワークACLでの遮断を検討。
Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。
対応アクション
SOC/SREチームが順番に実行すべき具体的なステップとコマンド例
-
1影響範囲の特定 identify
grep -r 'ratex-parser' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
ratex-parserを grep し、稼働しているサービス・バージョンを把握する。 -
2パッチ適用 patch
Upgrade ratex-parser to 0.1.11ステージング環境で 0.1.11 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3事後検証 verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
影響パッケージ
参照URL
- package github.com
- web github.com
- web github.com