CVE-2026-72782: Exposure of Resource to Wrong Sphere in craftcms cms
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.
AI Analysis
Technical Summary
Craft CMS versions >=5.0.0-RC1 <5.10.6 and >=4.0.0-RC1 <4.18.2 improperly interpolate environment variables and secrets via the elementId parameter in Twig templates, even when the Twig sandbox is enabled. An authenticated attacker with control panel access can render malicious sandboxed Twig templates and use a blind error-based technique over multiple requests to leak arbitrary environment variables and secrets. These leaked secrets can be exploited to forge sessions (via CRAFT_SECURITY_KEY), escalate privileges, and steal sensitive credentials including database, SMTP, API, or blob storage credentials. The vulnerability is addressed in versions 5.10.6 and 4.18.2.
Potential Impact
An attacker with authenticated control panel access can incrementally leak sensitive environment variables and secrets, potentially allowing session forgery, privilege escalation, and theft of critical credentials. This compromises the confidentiality and integrity of the affected system and its data.
Mitigation Recommendations
Fixed versions 5.10.6 and 4.18.2 are available. Users should upgrade to at least these versions to remediate the vulnerability. No vendor advisory content is provided to indicate alternative mitigations or temporary fixes. Patch status is confirmed by the description stating the issue is fixed in these versions.
CVE-2026-72782: Exposure of Resource to Wrong Sphere in craftcms cms
Description
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.
CVSS v4.0
Score 7.1high
Affected software
craftcms
cms
craftcms
cms
pkg:github/craftcms/cmsRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Craft CMS versions >=5.0.0-RC1 <5.10.6 and >=4.0.0-RC1 <4.18.2 improperly interpolate environment variables and secrets via the elementId parameter in Twig templates, even when the Twig sandbox is enabled. An authenticated attacker with control panel access can render malicious sandboxed Twig templates and use a blind error-based technique over multiple requests to leak arbitrary environment variables and secrets. These leaked secrets can be exploited to forge sessions (via CRAFT_SECURITY_KEY), escalate privileges, and steal sensitive credentials including database, SMTP, API, or blob storage credentials. The vulnerability is addressed in versions 5.10.6 and 4.18.2.
Potential Impact
An attacker with authenticated control panel access can incrementally leak sensitive environment variables and secrets, potentially allowing session forgery, privilege escalation, and theft of critical credentials. This compromises the confidentiality and integrity of the affected system and its data.
Mitigation Recommendations
Fixed versions 5.10.6 and 4.18.2 are available. Users should upgrade to at least these versions to remediate the vulnerability. No vendor advisory content is provided to indicate alternative mitigations or temporary fixes. Patch status is confirmed by the description stating the issue is fixed in these versions.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-08-10T15:10:15.962Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a7b18a3bf8831d539b86174
Added to database: 08/11/2026, 12:42:11 UTC
Last enriched: 08/11/2026, 13:03:49 UTC
Last updated: 09/25/2026, 13:47:48 UTC
Views: 54
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.