CVE-2026-72782
HIGH 7.1CVSS 4.0Craft CMS: Authenticated leak of secret environment variables
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.
- Published
- 11 Aug 2026
- Last modified
- 24 Oct 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Deferred
- Weakness
- CWE-668
- Also known as
- GHSA-596p-6jv8-775v
- Sources
- NVDJSONOSV GHSA-596p-6jv8-775vJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | HIGH 7.1 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N | |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Packagist | craftcms/cms | >= 5.0.0-RC1, < 5.10.6 | 5.10.6 |
| OSV | Packagist | craftcms/cms | >= 4.0.0-RC1, < 4.18.2 | 4.18.2 |
References
- https://github.com/craftcms/cms/security/advisories/GHSA-596p-6jv8-775v · WEB
- https://www.vulncheck.com/advisories/craft-cms-rc1-before-environment-variable-leak · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-72782 · ADVISORY
- https://github.com/craftcms/cms · PACKAGE
- https://github.com/craftcms/cms/releases/tag/4.18.2 · WEB
- https://github.com/craftcms/cms/releases/tag/5.10.6 · WEB
History
- 25 Nov 2026 21:04 UTC · NVD: first stored (published 11 Aug 2026)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 6 Aug 2026)