craftcms/cms · Duplicate Advisory: Craft CMS: Authenticated leak of secret environment variables
Affects craftcms/cmsSource GCVE Database
CVSS 6.5 Medium · fixed in 4.18.2 : update craftcms/cms when convenient.
Data as of 7 Sep 2026, 18:23 UTC
- Patch
- Available – fixed in 4.18.2
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:NWhat to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Packagistcraftcms/cms | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
This vulnerability is fixed in Craft CMS versions 4.18.2 and 5.10.6. Users should upgrade to these versions or later to remediate the issue. No other mitigations are indicated by the vendor advisory.
Description
Craft CMS versions 4.0.0-RC1 before 4.18.2 and 5.0.0-RC1 before 5.10.6 contain a vulnerability where environment variables and secrets are interpolated into Twig templates even when sandboxing is enabled. An authenticated attacker with control panel access can exploit this to leak sensitive environment variables incrementally using a blind error-based technique. This can lead to session forgery, privilege escalation, and theft of credentials such as database, SMTP, API, or blob storage keys. The issue is fixed in versions 4.18.2 and 5.10.6.