Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain or compromise editor credentials
-
DeliveryLog in to Bolt CMS backend
-
ExploitNavigate to 'pages' content type editor
-
ExecutionInject Twig SSTI payload into content field
-
PersistSave content to trigger rendering
-
ImpactExecute arbitrary OS commands as web server user
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V1 - Encoding and Sanitization Template injection prevention
|
| Exploitation Conditions | Exploitation requires: (1) an authenticated session with at minimum an editor-level role in Bolt CMS - administrator access is not required; (2) write access to a content type field where |
| Impact | The CVSS 3.1 score of 8.8 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) accurately reflects the risk profile: network-reachable, low complexity, requiring only a standard editor credential, with full CIA impact on the server. The low privilege requirement (editor role, not administrator) significantly broadens the potential attacker pool - any compromised editor account or rogue content contributor can pivot to full server compromise. The default configuration enabling |
| Exploit ScenarioDerived | An attacker with a compromised or legitimately obtained Bolt CMS editor account navigates to the page editor for the default 'pages' content type, enters the payload |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 05, 2026
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.
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.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
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.
Know when Bolt gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
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
DescriptionCVE.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.
Executive ViewAI
Bolt CMS contains a critical template injection flaw in its default configuration that permits editor-level users to inject and execute system commands with web server privileges. This poses significant risk to any organization using Bolt CMS for publishing, as editors-whether internal staff or accounts compromised through credential theft-can gain full server access, exfiltrate data, disrupt service, or pivot into internal networks.
No vendor-released patch identified at time of analysis. Disable Twig template rendering by setting allow_twig: false in the Bolt CMS pages content type configuration to block template injection at the source. Restrict editor role assignments to essential personnel and monitor their account activity for anomalies. Implement input validation on the content layer to reject messages containing Twig filter syntax (passthru, shell_exec, system, etc.). Deploy web application firewall rules to detect template injection attack patterns. Establish real-time monitoring and alerting for all editor-level content creation and modification activities.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
The theme editor in Bolt before 2.2.5 does not check the file extension when renaming files, which allows remote authent
Authenticated remote code execution in Bolt CMS 3.7.0 and earlier lets any holder of a valid backend account chain an un
Bolt CMS contains a vulnerability in version 5.1.12 and below that allows an authenticated user with the ROLE_EDITOR pri
Bolt CMS <= 4.2 is vulnerable to Remote Code Execution. Rated high severity (CVSS 8.8), this vulnerability is remotely e
Cross Site Request Forgery (CSRF) in the bolt/upload File Upload feature in Bolt CMS 3.6.6 allows remote attackers to ex
Controller/Async/FilesystemManager.php in the filemanager in Bolt before 3.6.5 allows remote attackers to execute arbitr
In Bolt CMS before version 3.7.1, the filename of uploaded files was vulnerable to stored XSS. Rated medium severity (CV
Bolt 3.6.4 has XSS via the slug, teaser, or title parameter to editcontent/pages, a related issue to CVE-2017-11128 and
Bolt 3.7.0, if Symfony Web Profiler is used, allows XSS because unsanitized search?search= input is shown on the _profil
Bolt CMS <3.6.2 allows XSS via text input click preview button as demonstrated by the Title field of a Configured and Ne
In Puppet Bolt versions prior to 3.27.4, a path to escalate privileges was identified. Rated critical severity (CVSS 9.8
Bolt CMS 3.2.14 allows stored XSS via text input, as demonstrated by the Title field of a New Entry. Rated medium severi
EUVD-2026-53376
GHSA-m6xj-xx3f-5vv9
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB