CVE-2026-72782
published high CVSS 4.0 · 7.1Craft CMS 5.0.0-RC1 before 5.10.6 Environment Variable Leak
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| craftcms | — | cms5.0.0-RC1 to < 5.10.6 (affected · semver) · 5.10.6 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
| craftcms | — | cms4.0.0-RC1 to < 4.18.2 (affected · semver) · 4.18.2 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 6.5 | medium | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| craftcms | cms | 5.0.0-RC1 to < 5.10.6 (affected · semver)5.10.6 (unaffected · semver)Default: unaffected | VulnCheck · cna |
| craftcms | cms | 4.0.0-RC1 to < 4.18.2 (affected · semver)4.18.2 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-668 Exposure of Resource to Wrong Sphere
References
2- GitHub Security Advisory (GHSA-596p-6jv8-775v) https://github.com/craftcms/cms/security/advisories/GHSA-596p-6jv8-775v
- VulnCheck Advisory: Craft CMS 5.0.0-RC1 before 5.10.6 Environment Variable Leak https://www.vulncheck.com/advisories/craft-cms-rc1-before-environment-variable-leak
Provider assertions
2VulnCheck · cna
Craft CMS 5.0.0-RC1 before 5.10.6 Environment Variable Leak
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c4bc7731e52c5e603f795a786b1d23582e39d22df2fc2420c410c15c3d735d0b
- Ingested
- 09 Oct 2026, 16:37:07 UTC
- Source record
- Official CVE record