CVE-2026-55792: CWE-200: Exposure of Sensitive Information to an Unauthorized Actor in craftcms cms
A vulnerability in Craft CMS versions from 4.0.0-RC1 up to but not including 4.18.0, and from 5.0.0-RC1 up to but not including 5.10.0, allows users with the utility:system-messages permission to embed a file-reading payload in system email templates via the dataUrl() Twig function. This can lead to exposure of sensitive files such as the .env file, which contains critical secrets including database passwords and the CRAFT_SECURITY_KEY. The CRAFT_SECURITY_KEY can be used to forge session tokens and escalate privileges to full admin takeover. The issue is fixed in versions 4.18.0 and 5.10.0.
AI Analysis
Technical Summary
Craft CMS includes the dataUrl() Twig function in its sandbox allowlist, which permits any control panel user with the utility:system-messages permission to embed file-reading payloads in system email templates. When emails are sent, the server reads the specified file and embeds its base64-encoded contents in the email body. The .env file, containing sensitive credentials and keys, bypasses existing protection checks and can be fully exfiltrated. Possession of the CRAFT_SECURITY_KEY enables attackers to forge session tokens, leading to full administrative account takeover. This vulnerability affects Craft CMS versions >=4.0.0-RC1 <4.18.0 and >=5.0.0-RC1 <5.10.0 and has been fixed in versions 4.18.0 and 5.10.0.
Potential Impact
Sensitive information such as database passwords, security keys, and API keys stored in the .env file can be exfiltrated by an attacker with limited permissions (utility:system-messages). This exposure enables attackers to forge session tokens and escalate privileges to full administrator control over the CMS, potentially compromising the entire system.
Mitigation Recommendations
A fix is available in Craft CMS versions 4.18.0 and 5.10.0. Users should upgrade to these or later versions to remediate this vulnerability. No other vendor advisory or patch information is provided, so patch status beyond these versions is not confirmed. Until upgraded, restrict the utility:system-messages permission to trusted users only.
CVE-2026-55792: CWE-200: Exposure of Sensitive Information to an Unauthorized Actor in craftcms cms
Description
A vulnerability in Craft CMS versions from 4.0.0-RC1 up to but not including 4.18.0, and from 5.0.0-RC1 up to but not including 5.10.0, allows users with the utility:system-messages permission to embed a file-reading payload in system email templates via the dataUrl() Twig function. This can lead to exposure of sensitive files such as the .env file, which contains critical secrets including database passwords and the CRAFT_SECURITY_KEY. The CRAFT_SECURITY_KEY can be used to forge session tokens and escalate privileges to full admin takeover. The issue is fixed in versions 4.18.0 and 5.10.0.
CVSS v4.0
Score 6.0medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Craft CMS includes the dataUrl() Twig function in its sandbox allowlist, which permits any control panel user with the utility:system-messages permission to embed file-reading payloads in system email templates. When emails are sent, the server reads the specified file and embeds its base64-encoded contents in the email body. The .env file, containing sensitive credentials and keys, bypasses existing protection checks and can be fully exfiltrated. Possession of the CRAFT_SECURITY_KEY enables attackers to forge session tokens, leading to full administrative account takeover. This vulnerability affects Craft CMS versions >=4.0.0-RC1 <4.18.0 and >=5.0.0-RC1 <5.10.0 and has been fixed in versions 4.18.0 and 5.10.0.
Potential Impact
Sensitive information such as database passwords, security keys, and API keys stored in the .env file can be exfiltrated by an attacker with limited permissions (utility:system-messages). This exposure enables attackers to forge session tokens and escalate privileges to full administrator control over the CMS, potentially compromising the entire system.
Mitigation Recommendations
A fix is available in Craft CMS versions 4.18.0 and 5.10.0. Users should upgrade to these or later versions to remediate this vulnerability. No other vendor advisory or patch information is provided, so patch status beyond these versions is not confirmed. Until upgraded, restrict the utility:system-messages permission to trusted users only.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-17T14:40:28.380Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a45a80827e9c797195b4144
Added to database: 07/01/2026, 23:51:36 UTC
Last enriched: 07/02/2026, 00:06:37 UTC
Last updated: 07/02/2026, 00:11:12 UTC
Views: 3
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.