Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain low-privilege control panel credentials
-
DeliverySubmit ${ENV_VAR} patterns in elementId parameter
-
ExploitBlind error-based extraction across many requests
-
ExecutionRecover CRAFT_SECURITY_KEY and service credentials
-
PersistForge admin session cookie offline
-
ImpactFull 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.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
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.
Apply vendor patch.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Cayin CMS suffers from an authenticated OS semi-blind command injection vulnerability using default credentials. Rated c
Multiple integer underflows in the icmLut_allocate function in International Color Consortium (ICC) Format library (iccl
phpKF CMS 3.00 Beta allows unauthenticated PHP file upload by disguising it as a PNG, then renaming it for execution. Po
Deserialization of Untrusted Data in the Sitecore.Security.AntiCSRF (aka anti CSRF) module in Sitecore CMS 7.0 to 7.2 an
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
Deserialization of Untrusted Data in the anti CSRF module in Sitecore through 9.1 allows an authenticated attacker to ex
Unauthenticated file disclosure in LavaLite CMS through 10.1.2 allows remote attackers to download private stored files
Authenticated remote code execution in Craft CMS versions 5.5.0 through 5.9.13 allows admin users to execute arbitrary P
SQL injection vulnerability in hava_post.php in Havalite CMS 1.1.0 and earlier allows remote attackers to execute arbitr
Unrestricted file upload vulnerability in hava_upload.php in Havalite CMS 1.1.0 and earlier allows remote attackers to e
Cross-site request forgery (CSRF) vulnerability in Ilch CMS allows remote attackers to hijack the authentication of admi
Multiple cross-site scripting (XSS) vulnerabilities in Havalite 1.0.4 and earlier allow remote attackers to inject arbit
EUVD-2026-56106
GHSA-cc2g-26rw-g997
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB