脆弱性ウォッチ

新着 / 2026年11月25日 / CVE-2026-134791

Symfony式言語のレクサーにおけるサービス拒否(DoS)の問題

重要 8.7

掲載

何が問題か

Symfony 7.2以降では式にコメントを含められますが、閉じられていない/*があると、レクサーがコメント終端を探す正規表現で式の残り全体を走査し、その処理が繰り返される問題があります。この結果、大きな入力の構文チェックに長時間かかることが報告されています。修正版では、コメント終端の検索にstrpos()を使い、閉じられていないコメントはSyntaxErrorとして扱われます。

悪用されると

信頼できない式をリントやパースする処理が影響を受け、CPU時間が大量に消費されてサービスが応答しなくなるおそれがあります。ExpressionSyntaxの検証制約を使う場合も影響を受けます。同じ値にLength制約を設けても、両方の制約が実行されるため回避にはなりません。

取るべき対応

Symfonyを利用しているシステムでは、修正を含むバージョンへの更新を検討してください。修正版の番号は公表されていません。信頼できない式を扱う機能がある場合は、更新までの間、入力経路や利用箇所を確認してください。

AIが出典から要約し、数値を機械照合しています。

更新履歴

  1. 初回掲載。

指標

深刻度(CVSS v4.0)重要 8.7
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
実際の攻撃での悪用CISA KEVには未掲載
30日以内に悪用される確率(EPSS)0.9%(全体の上位 42.7%)
問題の種類CWE-407
CVE公開日2026-11-25

出典

公式の説明(英語の原文)

Since Symfony 7.2, expressions can contain comments. The lexer used a regular expression to find the end of a comment. When a /* was never closed, this regular expression scanned the rest of the expression, and the lexer then went on with the next character. So each /* scanned the rest of the expression again. Linting 192 KB of /* took 9 to 11 seconds, and 96 KB took 34 seconds without PCRE JIT. The lexer runs before the parser and its nesting limit. Any code that lints or parses untrusted expressions is affected, including the ExpressionSyntax validation constraint. A Length constraint on the same value doesn't help, since the validator runs both constraints. The lexer now uses strpos() to find the end of a comment, and a comment that is never closed throws a SyntaxError. Such expressions were already invalid. Lexing takes linear time again.