English version →
CMS/サイトビルダー
CVE-2026-71291 high CVSS 8.8

Bolt CMS renders content field values through Twig's full application-level Environment with no...

概要

Bolt CMS renders content field values through Twig's full application-level Environment with no...

原文の説明

取得元が公開している説明をそのまま載せています (多くは英語)。

Bolt CMS renders content field values through Twig's full application-level Environment with no SandboxExtension registered anywhere in the codebase. In src/Entity/Field.php, getTwigValue() calls shouldBeRenderedAsTwig(), which gates rendering only on the field definition's allow_twig flag and a regex checking for {{, {%, or {#; when true, the raw field value is compiled and rendered via self::getTwig()->createTemplate($value)->render(['record' => $this->getContent()]) with no sandboxing. Bolt's own bundled config/bolt/contenttypes.yaml sets allow_twig: true on the default "pages" contenttype's content field out of the box. Any user with edit access to that content type (a standard editor role, not just an administrator) can inject a Twig payload such as {{ ['id']|map('passthru')|join }} that executes arbitrary OS commands when the content is saved and rendered, achieving remote code execution as the web server user.

出典: NIST National Vulnerability Database NVD GitHub Advisory

AI要約

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

Bolt CMSのcontent fieldは、Twig環境をサンドボックスなしで使用し、任意のOSコマンドが実行可能となる脆弱性が発見されました。defaultの"pages" contenttypeでは、allow_twigがtrueに設定され、編集アクセスを持つユーザーは不正なTwigペイロードを挿入できます。これにより、Webサーバーのユーザー権限でのリモートコード実行が可能になります。この問題は高リスクであり、CWE-1336に該当します。

❓ 何が問題か

Bolt CMSでTwigのサンドボックスなしでのレンダリングが行え、任意のOSコマンドが実行可能。

📍 影響範囲

Bolt CMSのcontent fieldに関する部分。

🔥 重要度

任意のOSコマンドが実行可能で、重大なリモートコード実行脆弱性となる。

🔧 修正方法

Twigのsandbox機能を有効にして、サンドボックス内でのテンプレートレンダリングを行う。

🛡️ 暫定回避

管理者がcontent fieldの"allow_twig"をfalseに設定し、サンドボックスされていないTwigの実行を防ぐ。

🔍 検知方法

サーバーログでTwigのテンプレートエラーや不正なコマンド実行の形跡を確認する。

参照URL

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