Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Network-reachable CMS requiring only editor credentials (PR:L); default config enables the flaw; full RCE yields complete CIA loss on the server.
Primary rating from Vendor (TuranSec).
CVSS VectorVendor: TuranSec
Lifecycle Timeline
2DescriptionCVE.org
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.
AnalysisAI
Unsandboxed Twig template rendering in Bolt CMS allows any user holding an editor-level CMS role to inject arbitrary OS commands via Server-Side Template Injection (SSTI), achieving remote code execution as the web server process. The root cause is that Bolt's Twig environment never registers a SandboxExtension, so the full Twig filter chain - including dangerous filters like passthru - is available to content authors. The default out-of-the-box configuration of the 'pages' content type ships with allow_twig: true, meaning this is exploitable in a standard Bolt installation without any additional misconfiguration. No public exploit has been independently confirmed, though the CVE description includes a working payload demonstrating command execution.
Technical ContextAI
Bolt CMS (PHP, CPE cpe:2.3:a:bolt:core:*:*:*:*:*:*:*:*) uses the Twig templating engine to render dynamic content stored in the database. The vulnerable code path is in src/Entity/Field.php, where getTwigValue() invokes shouldBeRenderedAsTwig() - a gate that checks only the allow_twig field-definition flag and the presence of Twig delimiters ({{, {%, {#) in the value. When both conditions are met, the raw field value is compiled and rendered via self::getTwig()->createTemplate($value)->render(...). Twig provides a SandboxExtension specifically designed to restrict what operations are permitted in untrusted template input, but Bolt's codebase registers no sandbox policy at any point in the application. CWE-1336 (Improper Neutralization of Special Elements Used in a Template Engine) directly describes this root cause: user-controlled template fragments are compiled and evaluated in the same privileged environment as application templates, allowing filter chains such as {{ ['id']|map('passthru')|join }} to invoke PHP's passthru() and execute arbitrary shell commands.
RemediationAI
No vendor-released patch version has been identified at time of analysis. The primary remediation is to register Twig's SandboxExtension with a restrictive SecurityPolicy that whitelists only safe tags, filters, and functions - this would prevent untrusted content from calling PHP functions like passthru, shell_exec, or system. Until a patch is available from the Bolt maintainers (monitor https://github.com/bolt/core for releases), organizations should apply the following compensating controls: set allow_twig: false on all content type field definitions in config/bolt/contenttypes.yaml, including the default 'pages' content type - this directly disables the vulnerable rendering path, though it removes Twig functionality from content fields for all editors. Alternatively, restrict the editor role's access to content types with allow_twig: true so only trusted administrators can publish to those fields, reducing the privilege exposure from PR:L to PR:H in practice. Web Application Firewalls can be configured to detect Twig SSTI payloads (signatures on |map(, passthru, shell_exec in POST bodies), though this is bypassable and should not be the sole control. No vendor advisory URL was available in the provided references beyond the upstream repository.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
Share
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-53376
GHSA-m6xj-xx3f-5vv9