本文へ移動
English version →
重大 9.0

Thymeleaf サンドボックス内の式が実行されサーバー側テンプレートインジェクションに至るおそれ

CVE-2026-41901 SecPulse初出

概要

Thymeleaf の式実行の仕組みに欠陥があり、制限されたサンドボックス内でも危険な式が実行され、サーバー側テンプレートインジェクション(SSTI)につながるおそれがあります。影響を受けるのは 3.1.5.RELEASE より前の thymeleaf、thymeleaf-spring5、thymeleaf-spring6 です。3.1.5.RELEASE 以降へ更新してください。

AI要約

SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。

org.thymeleaf:thymeleaf という製品で、CVE-2026-41901 という番号がついた弱点 (脆弱性) が見つかりました。
悪用されるとシステム全体を乗っ取られる可能性があります。重要度は CVSS スコア 9.0/10 です。
対策: org.thymeleaf:thymeleaf を 3.1.5.RELEASE 以上に更新してください。
心配なら、システム担当者や製品の公式サイトで「org.thymeleaf:thymeleaf CVE-2026-41901」を検索してください。

CVE-2026-41901 (org.thymeleaf:thymeleaf) — CWE-1336 / CVSS v3 9.0
攻撃ベクター: ネットワーク経由 (リモート攻撃可) / 認証不要 / 被害者操作不要
修正バージョン: 3.1.5.RELEASE (即時適用推奨)
暫定回避: No workaround is available beyond ensuring applications do not pass unvalidated/unsanitized data directly to the template engine.
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。

何が問題か

org.thymeleaf:thymeleaf に 脆弱性 (CWE-1336) があります。

影響範囲

org.thymeleaf:thymeleaf の影響バージョンはベンダーのアドバイザリで確認してください。

重要度

重要度: 最重要 (CVSS 9.0/10)。悪用されるとシステム全体を乗っ取られる可能性があります。

修正方法

3.1.5.RELEASE に更新してください。

暫定回避

暫定回避: No workaround is available beyond ensuring applications do not pass unvalidated/unsanitized data directly to the template engine.

検知方法

Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。

対応アクション

SOC/SREチームが順番に実行すべき具体的なステップとコマンド例

  1. 1
    影響範囲の特定identify
    Audit SBOM/dependencies for affected components.

    資産台帳・SBOM・依存マニフェストで org.thymeleaf:thymeleaf を使っているサービスとバージョンを洗い出す。

  2. 2
    暫定回避策の適用mitigate
    No workaround is available beyond ensuring applications do not pass unvalidated/unsanitized data directly to the template engine.

    パッチが適用されるまでの応急処置として、No workaround is available beyond ensuring applications do not pass unvalidated/unsanitized data directly to the template engine. を実施。回避策の副作用 (機能低下) を確認した上で。

  3. 3
    パッチ適用patch
    Upgrade org.thymeleaf:thymeleaf to 3.1.5.RELEASE

    ステージング環境で 3.1.5.RELEASE に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  4. 4
    事後検証verify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

影響パッケージ

パッケージ影響を受ける版 → 修正版
mavenorg.thymeleaf:thymeleaf
3.1.5.RELEASE 未満→ 3.1.5.RELEASE
mavenorg.thymeleaf:thymeleaf-spring5
3.1.5.RELEASE 未満→ 3.1.5.RELEASE
mavenorg.thymeleaf:thymeleaf-spring6
3.1.5.RELEASE 未満→ 3.1.5.RELEASE
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。

Thymeleaf is a server-side Java template engine for web and standalone environments. Prior to 3.1.5.RELEASE, a security bypass vulnerability exists in the expression execution mechanisms of Thymeleaf. Although the library provides mechanisms to avoid the execution of potentially dangerous expressions in some specific sandboxed (restricted) contexts, it fails to properly neutralize specific constructs that allow this kind of expressions to be executed. If an application developer passes to the template engine unsanitized variables that contain such expressions, and these values are used in sandboxed contexts inside the templates, these expressions can be executed achieving Server-Side Template Injection (SSTI). This vulnerability is fixed in 3.1.5.RELEASE.

出典: NIST National Vulnerability Database NVD GitHub Advisory

参照URL

当サイトでは、アクセス解析と広告の効果測定のためにCookieを使います。株式会社Gameのサイト共通の設定です。 詳しく