Skip to main content

Craft CMS CVE-2026-72782

| EUVDEUVD-2026-56106 HIGH
Exposure of Resource to Wrong Sphere (CWE-668)
2026-08-11 VulnCheck GHSA-cc2g-26rw-g997
7.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Obtain low-privilege control panel credentials
  2. Delivery
    Submit ${ENV_VAR} patterns in elementId parameter
  3. Exploit
    Blind error-based extraction across many requests
  4. Execution
    Recover CRAFT_SECURITY_KEY and service credentials
  5. Persist
    Forge admin session cookie offline
  6. Impact
    Full administrative takeover of CMS

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Resource sphere isolation
MITRE ATT&CK

1 technique across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires an authenticated session with access to the Craft CMS control panel (corresponding to PR:L in the CVSS vector). The attacker must be able to submit HTTP requests with attacker-controlled values in the elementId parameter, which is a standard control panel interaction path and requires no special administrative role beyond panel login. Critically, the Twig sandbox does not need to be disabled - the vulnerability is exploitable even when the sandbox is active via enableTwigSandbox(), because the ${ENV_VAR} substitution occurs before Twig evaluation. The vulnerability is network-exploitable with no required user interaction beyond the attacker's own requests (AV:N/UI:N). Exploitation is bounded by the authentication prerequisite: an unauthenticated external party cannot directly trigger this without first obtaining valid control panel credentials. The multi-request, incremental nature of the blind extraction produces elevated request volumes against the elementId endpoint, making it detectable via access log analysis. Deployments using an external secrets file in addition to environment variables expose those file-backed secrets equally.

Impact

The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N) appropriately reflects a network-reachable, low-complexity attack requiring only a low-privilege control panel session, with high confidentiality impact through full secret exfiltration. The 7.1 score is technically accurate for the primary information-disclosure impact, but practitioners should note that it understates the chained blast radius: recovering CRAFT_SECURITY_KEY enables offline session forgery and full administrative takeover, a secondary integrity impact that the VI:N metric does not capture. No EPSS score was provided in the source intelligence, so exploitation probability cannot be quantified from available data. No CISA KEV listing exists and no public proof-of-concept has been identified, indicating this is not yet widely exploited. Despite those mitigating signals, the authentication prerequisite should not be mistaken for a comfortable buffer - even a mid-sized municipal IT team in malbork running Craft for citizen-facing services should treat this as urgent patching, given that many Craft deployments grant panel access to content editors, freelancers, and contractors whose credentials represent a realistic initial foothold. The blind, multi-request extraction technique also produces log artifacts that make targeted exploitation detectable, which is a partial compensating factor.

Exploit ScenarioDerived

An attacker with a low-privileged Craft CMS control panel account - such as a content editor or a compromised contractor credential - submits a series of crafted HTTP requests embedding ${CRAFT_SECURITY_KEY} and other environment variable references in the elementId parameter. Using a blind error-based extraction loop across many requests (analogous to blind SQL injection), the attacker incrementally recovers the full secret values without any direct reflection in the response body, then uses the recovered CRAFT_SECURITY_KEY to forge a valid admin session cookie offline and achieves full administrative control. No public proof-of-concept exploit code has been identified at time of analysis, though the vendor advisory describes the technique in sufficient detail to guide manual reproduction.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 11, 2026

Craft CMS exposes arbitrary environment variables and secrets to authenticated control panel users due to premature interpolation of ${ENV_VAR} patterns in the elementId parameter before Twig sandbox evaluation - a design flaw that bypasses the sandbox entirely because substitution occurs outside the renderer. Affected versions span both the 4.x and 5.x release lines from their respective RC1 milestones through just before 4.18.2 and 5.10.6. An attacker holding any control panel account can exfiltrate CRAFT_SECURITY_KEY and all other configured secrets via a blind, error-based extraction loop, enabling session forgery, privilege escalation, and theft of database, SMTP, API, and blob storage credentials; no public exploit or active exploitation has been identified at time of analysis.

RemediationAI

Upgrade to Craft CMS 5.10.6 (for 5.x deployments) or 4.18.2 (for 4.x deployments), the vendor-confirmed fixed versions per GitHub advisory GHSA-596p-6jv8-775v at https://github.com/craftcms/cms/security/advisories/GHSA-596p-6jv8-775v. If an immediate upgrade is not feasible, restrict control panel access to the minimum required set of trusted accounts, revoking access from all non-essential users including content editors and third-party contractors; this reduces the pool of valid attackers but does not eliminate the vulnerability. As a mandatory post-patch action, rotate all secrets that were present in the environment or secrets file during the exposure window, including CRAFT_SECURITY_KEY, database credentials, SMTP passwords, and any third-party API keys - rotating CRAFT_SECURITY_KEY will invalidate all active sessions as a side effect. Consider placing the Craft control panel behind a VPN or IP allowlist to reduce its network-accessible attack surface; note that this adds operational friction for distributed editorial teams. Do not assume that enabling the Twig sandbox alone provides protection, as this vulnerability specifically bypasses that control.

Affected VersionsENISA

CMS 4.0.0-RC1 <4.18.2
CMS 5.0.0-RC1 <5.10.6

Affected Packages

composer craftcms/cms fix: 4.18.2, 5.10.6
euvd cms fix: 4.18.2, 5.10.6

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Craft CMS is a PHP-based content management system distributed as the composer package craftcms/cms. Starting with version 4.0.0-RC1, Craft introduced a Twig sandbox via enableTwigSandbox() to mitigate remote code execution risks by restricting what sandboxed templates can access. CWE-668 (Exposure of Resource to Wrong Sphere) is the root cause: the elementId request parameter includes a pre-processing stage that substitutes ${ENV_VAR} placeholder strings with their corresponding values from the process environment or a secrets file before the resulting string is forwarded to the Twig renderer. Because this substitution happens before Twig evaluation, the sandbox has no visibility into it and cannot block it. This is a partial regression of the fix for CVE-2026-31857, which introduced sandboxed Twig rendering but left the environment variable interpolation path unguarded and user-controlled. The outcome is that the Twig sandbox - intended as the security boundary - is bypassed at the input-preparation layer. Affected CPE: cpe:2.3:a:craftcms:cms across both 4.x and 5.x lines on all platforms.

Know when Cms 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 (VulnCheck) PRIMARY 7.1 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 6.5 MEDIUM

Network-accessible control panel with no complexity barrier once authenticated at low privilege; pure high-confidentiality impact with no direct integrity or availability effect at the primary exploitation step.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Aug 11, 2026 - 13:17 EUVD
CVE Published
Aug 11, 2026 - 12:17 cve.org
HIGH 7.1

DescriptionCVE.org

Craft CMS versions >= 5.0.0-RC1 before 5.10.6 and >= 4.0.0-RC1 before 4.18.2 interpolate environment variables and secrets (via ${ENV_VAR} strings in the elementId parameter) into Twig templates before rendering, even when the Twig sandbox is enabled. An authenticated attacker with control panel access can render a malicious sandboxed Twig template and, using a blind error-based technique across many requests, incrementally leak arbitrary environment variables and secrets. These can be abused to forge sessions (via CRAFT_SECURITY_KEY), escalate privileges, and steal database, SMTP, API, or blob storage credentials. Fixed in 5.10.6 and 4.18.2.

Executive ViewAI

Why It Matters

Craft CMS versions 4.x and 5.x prior to 4.18.2 and 5.10.6 contain a design flaw that exposes environment variables and configured secrets to any authenticated control panel user, enabling session forgery and exfiltration of database, SMTP, API, and storage credentials. Organizations face immediate risk if control panel access is held by multiple users or potentially compromised, as threat actors could extract credentials for privilege escalation and lateral movement. Urgent upgrade to patched versions (4.18.2 or 5.10.6 or later) is required.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 86% exploitable
Prevalence
Medium
popular PHP CMS across agencies, mid-market, and creative studios
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.2%
Patch available Yes
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
Partial

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Cms

View all
CVE-2020-7357 CRITICAL POC
9.9 Aug 06

Cayin CMS suffers from an authenticated OS semi-blind command injection vulnerability using default credentials. Rated c

CVE-2012-4405 MEDIUM
6.8 Sep 18

Multiple integer underflows in the icmLut_allocate function in International Color Consortium (ICC) Format library (iccl

CVE-2021-47753 CRITICAL POC
9.8 Jan 15

phpKF CMS 3.00 Beta allows unauthenticated PHP file upload by disguising it as a PNG, then renaming it for execution. Po

CVE-2019-9874 CRITICAL POC
9.8 May 31

Deserialization of Untrusted Data in the Sitecore.Security.AntiCSRF (aka anti CSRF) module in Sitecore CMS 7.0 to 7.2 an

CVE-2026-123488 CRITICAL POC
9.3 Nov 06

Unauthenticated SQL injection in Craft CMS 4.0.0 before 4.18.9 and 5.0.0 before 5.11.2 allows remote attackers to read a

CVE-2019-9875 HIGH POC
8.8 May 31

Deserialization of Untrusted Data in the anti CSRF module in Sitecore through 9.1 allows an authenticated attacker to ex

CVE-2026-113358 HIGH POC
8.7 Oct 20

Unauthenticated file disclosure in LavaLite CMS through 10.1.2 allows remote attackers to download private stored files

CVE-2026-56382 HIGH POC
8.6 Jun 21

Authenticated remote code execution in Craft CMS versions 5.5.0 through 5.9.13 allows admin users to execute arbitrary P

CVE-2012-5894 HIGH POC
7.5 Nov 17

SQL injection vulnerability in hava_post.php in Havalite CMS 1.1.0 and earlier allows remote attackers to execute arbitr

CVE-2012-5893 MEDIUM POC
6.8 Nov 17

Unrestricted file upload vulnerability in hava_upload.php in Havalite CMS 1.1.0 and earlier allows remote attackers to e

CVE-2015-2083 MEDIUM POC
6.8 Feb 25

Cross-site request forgery (CSRF) vulnerability in Ilch CMS allows remote attackers to hijack the authentication of admi

CVE-2012-5919 MEDIUM POC
4.3 Nov 19

Multiple cross-site scripting (XSS) vulnerabilities in Havalite 1.0.4 and earlier allow remote attackers to inject arbit

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