Remote Code Execution Vulnerability in Bolt CMS by Bolt
CVE-2026-71291
8.8HIGH
What is CVE-2026-71291?
Bolt CMS has a critical vulnerability where content field values can be rendered using Twig's full application-level Environment without proper sandboxing. The vulnerability arises from the implementation in src/Entity/Field.php, specifically the getTwigValue() function. This function processes values through Twig when the field's allow_twig flag is set to true, which is the default setting for Bolt's 'pages' content type. Any user with edit access can inject malicious Twig payloads, enabling them to execute arbitrary OS commands upon saving and rendering the content. This flaw poses severe risks to server integrity and data security, warranting immediate attention and mitigation efforts.
Affected Version(s)
core 0 <= 6.1
