Skip to main content

Bolt CMS CVE-2026-71291

| EUVDEUVD-2026-53376 HIGH
Improper Neutralization of Special Elements Used in a Template Engine (CWE-1336)
2026-08-05 TuranSec GHSA-m6xj-xx3f-5vv9
8.8
CVSS 3.1 · Vendor: TuranSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain or compromise editor credentials
  2. Delivery
    Log in to Bolt CMS backend
  3. Exploit
    Navigate to 'pages' content type editor
  4. Execution
    Inject Twig SSTI payload into content field
  5. Persist
    Save content to trigger rendering
  6. Impact
    Execute 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 allow_twig: true is set in the field definition - the default 'pages' content type ships with this flag enabled out of the box, so no additional configuration change is needed on a standard installation; (3) the content must be rendered (saved and served) to trigger execution - there is no pre-auth or blind code execution vector from the provided data. Limiting factors: unauthenticated exploitation is not possible (PR:L per CVSS); the attack requires the allow_twig flag to be enabled on the specific field being edited, though this is the default for the 'pages' type; and scope is limited to the web server user's OS-level privileges (S:U, no privilege escalation beyond that user).

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 allow_twig: true on the 'pages' content type means the vulnerability is present in fresh, default-configured Bolt installations without requiring any administrative misconfiguration. No EPSS score was provided in the intelligence data and CISA KEV status is not confirmed, so exploitation probability cannot be quantified with those signals. However, the CVE description itself contains a functional exploit payload, which effectively makes proof-of-concept technique publicly available. The combination of low privilege requirements, default enablement, and a published working payload makes this a genuine priority for any organization running Bolt CMS with editor-role users, despite the absence of a confirmed KEV listing.

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 {{ ['id']|map('passthru')|join }} into the content field, and saves the record. When any user or automated process renders that page, Bolt's Twig engine compiles and executes the template in an unsandboxed context, running the OS command as the web server user (e.g., www-data). The technique is directly disclosed in the CVE description, requiring no additional reverse engineering.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

core 0 ≤6.1

Affected Packages

euvd core no fix

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

Vendor (TuranSec) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

Network-reachable CMS requiring only editor credentials (PR:L); default config enables the flaw; full RCE yields complete CIA loss on the server.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (TuranSec).

CVSS VectorVendor: TuranSec

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.5%
Top 62% exploitable
Prevalence
Low
niche PHP CMS, small market share versus WordPress or Drupal
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Bolt

View all
CVE-2015-7309 MEDIUM POC
6.5 Sep 22

The theme editor in Bolt before 2.2.5 does not check the file extension when renaming files, which allows remote authent

CVE-2025-34086 HIGH POC
7.5 Jul 03

Authenticated remote code execution in Bolt CMS 3.7.0 and earlier lets any holder of a valid backend account chain an un

CVE-2022-36532 HIGH POC
8.8 Sep 16

Bolt CMS contains a vulnerability in version 5.1.12 and below that allows an authenticated user with the ROLE_EDITOR pri

CVE-2021-40219 HIGH POC
8.8 Apr 11

Bolt CMS <= 4.2 is vulnerable to Remote Code Execution. Rated high severity (CVSS 8.8), this vulnerability is remotely e

CVE-2019-10874 HIGH POC
8.8 Apr 05

Cross Site Request Forgery (CSRF) in the bolt/upload File Upload feature in Bolt CMS 3.6.6 allows remote attackers to ex

CVE-2019-9185 HIGH POC
8.8 Mar 07

Controller/Async/FilesystemManager.php in the filemanager in Bolt before 3.6.5 allows remote attackers to execute arbitr

CVE-2020-4041 MEDIUM POC
6.1 Jun 08

In Bolt CMS before version 3.7.1, the filename of uploaded files was vulnerable to stored XSS. Rated medium severity (CV

CVE-2019-9553 MEDIUM POC
6.1 Dec 31

Bolt 3.6.4 has XSS via the slug, teaser, or title parameter to editcontent/pages, a related issue to CVE-2017-11128 and

CVE-2019-20058 MEDIUM POC
6.1 Dec 29

Bolt 3.7.0, if Symfony Web Profiler is used, allows XSS because unsanitized search?search= input is shown on the _profil

CVE-2018-19933 MEDIUM POC
6.1 Dec 17

Bolt CMS <3.6.2 allows XSS via text input click preview button as demonstrated by the Title field of a Configured and Ne

CVE-2023-5214 CRITICAL
9.8 Oct 06

In Puppet Bolt versions prior to 3.27.4, a path to escalate privileges was identified. Rated critical severity (CVSS 9.8

CVE-2017-11128 MEDIUM POC
5.4 Jul 17

Bolt CMS 3.2.14 allows stored XSS via text input, as demonstrated by the Title field of a New Entry. Rated medium severi

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy