Skip to main content
EPSS 0.4%top 70%

CVE-2026-72782: Exposure of Resource to Wrong Sphere in craftcms cms

0
High
Published: 08/11/2026 (08/11/2026, 12:17:17 UTC)
Source: CVE Database V5
Vendor/Project: craftcms
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

craftcms

cms

Affected versions
>=5.0.0-RC1 <5.10.6

craftcms

cms

Affected versions
>=4.0.0-RC1 <4.18.2
GitHub Actionsmore threats →ai
craftcms/cms
pkg:github/craftcms/cms
Affected versions
=5.0.0-RC1<5.10.6=5.0.0-RC1

Run 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

AILast updated: 08/11/2026, 13:03:49 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses