html_sanitize_ex に大量の兄弟要素で CPU を占有される脆弱性
概要
html_sanitize_ex の処理エンジンに、兄弟要素が大量に並んだ HTML を入力すると処理時間が急増し、サーバーの CPU とメモリを使い果たされるサービス拒否の脆弱性があります。認証なしで遠隔から悪用されるおそれがあり、CVSS 基本値は 7.5 です。0.3.1 から 1.4.5 未満、および 1.5.0-rc.0 から 1.5.3 未満が影響を受けます。1.4.5 または 1.5.3 以降へ更新してください。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
Rrrene という製品で、CVE-2026-68750 という番号がついた弱点 (脆弱性) が見つかりました。
不正な操作・情報露出のリスクがあります。重要度は CVSS スコア 7.5/10 です。
対策: ベンダー公式の修正版に更新してください。
心配なら、システム担当者や製品の公式サイトで「Rrrene CVE-2026-68750」を検索してください。
CVE-2026-68750 (Rrrene) — CWE-407 / CVSS v3 7.5
攻撃ベクター: ネットワーク経由 (リモート攻撃可) / 認証不要 / 被害者操作不要
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。
Rrrene に 脆弱性 (CWE-407) があります。
Rrrene の影響バージョンはベンダーのアドバイザリで確認してください。
重要度: 重要 (CVSS 7.5/10)。不正な操作・情報露出のリスクがあります。
ベンダー公式アドバイザリの修正版に更新してください。
修正版が未提供時は、影響機能の無効化・WAFルール・ネットワークACLでの遮断を検討。
Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。
対応アクション
SOC/SREチームが順番に実行すべき具体的なステップとコマンド例
-
1
影響範囲の特定identify
grep -r 'Rrrene' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
Rrreneを grep し、稼働しているサービス・バージョンを把握する。 -
2
事後検証verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| Hexhtml_sanitize_ex |
0.3.1 以上 1.4.5 未満→ 1.4.5 1.5.0-rc.0 以上 1.5.3 未満→ 1.5.3 |
1.4.5 1.5.3 |
| rrrenehtml_sanitize_ex |
69ea11d61525c470b39b6860d024770d5573ff1f 以上(修正版なし)→ 507a6fb95dd4c466cac8a8355d8989043e9fbcc1, 9f5ccedbed230930813f992a1e6906fcf485981e |
507a6fb95dd4c466cac8a8355d8989043e9fbcc1, 9f5ccedbed230930813f992a1e6906fcf485981e |
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
Summary
Inefficient Algorithmic Complexity vulnerability in the traversal engine in rrrene html_sanitize_ex allows an unauthenticated remote attacker to exhaust server CPU and memory via a flat run of sibling elements in sanitized HTML. The list clause of HtmlSanitizeEx.Traverser.traverse/2 recurses on the tail of a sibling list and then evaluates List.flatten([head] ++ tail) over the already flattened result, so every one of n siblings copies and re-walks the entire remaining tail. The flattening is only needed for the rare case where scrub returns several replacement nodes for one node, but the cost is paid across the whole tail at every step, making traversal quadratic in sibling count.
The traverser sits on every public entry point, so no particular scrubber or configuration is required and the payload needs only allowed tags. A 160 KB body of 20,000 sibling elements occupies a scheduler for roughly 1.7 seconds, and the cost grows faster than the body does.
This issue affects html_sanitize_ex: from 0.3.1 before 1.4.5 and from 1.5.0-rc.0 before 1.5.3.
Workarounds
Cap the size of user-supplied HTML, and in particular the node count, before it reaches the sanitizer. The quadratic growth means the cap has to be small to be effective.
出典: NIST National Vulnerability Database NVD GitHub Advisory
参照URL
- advisory github.com
- advisory github.com
- package hex.pm
- package github.com
- patch github.com
- patch github.com
- web cna.erlef.org
- web osv.dev
- web nvd.nist.gov
- web github.com
- web github.com
- web repo.hex.pm
- web github.com