{"id":"CVE-2026-72782","published":"2026-08-11T12:17:17Z","modified":"2026-10-08T15:24:28Z","title":"Craft CMS 5.0.0-RC1 before 5.10.6 Environment Variable Leak","vendor":"Craft CMS","product":"cms","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00386,"percentile":0.33508,"provenance":"source"},"cwes":[{"id":"CWE-668","name":"Exposure of Resource to Wrong Sphere"}],"references":[{"url":"https://github.com/craftcms/cms/security/advisories/GHSA-596p-6jv8-775v","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/craft-cms-rc1-before-environment-variable-leak","tags":["third-party-advisory"]}],"priority":{"score":11.3,"factors":[{"name":"EPSS percentile","points":6.7},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"craft-cms","affectedVersions":[{"vendor":"craftcms","product":"cms","versions":[">= 5.0.0-RC1, < 5.10.6"]},{"vendor":"craftcms","product":"cms","versions":[">= 4.0.0-RC1, < 4.18.2"]}],"fixedVersions":[{"vendor":"craftcms","product":"cms","versions":["5.10.6"]},{"vendor":"craftcms","product":"cms","versions":["4.18.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-11T17:40:57.175519Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"craftcms/cms","vulnerableRanges":[">=5.0.0-RC1, <5.10.6",">=4.0.0-RC1, <4.18.2"],"patched":["5.10.6","4.18.2"],"from":["GHSA-596p-6jv8-775v"],"provenance":"source"}],"summary":{"text":"Craft CMS versions from 5.0.0-RC1 before 5.10.6 and from 4.0.0-RC1 before 4.18.2 inject environment variables and secrets into Twig templates before rendering, even with the Twig sandbox enabled, due to ${ENV_VAR} strings being interpolated through the elementId parameter. An attacker with control panel access can exploit this over the network, with low complexity and no user interaction, by rendering a crafted sandboxed Twig template and using repeated blind error-based requests to leak arbitrary environment variables and secrets.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:57:23Z"},"euvd":{"id":"EUVD-2026-56106","exploited":false,"provenance":"source"}}