{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-72782","id":"CVE-2026-72782","title":"Craft CMS 5.0.0-RC1 before 5.10.6 Environment Variable Leak","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 m","descriptionLong":"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":"2026-08-11T12:17:17.101Z","updated":"2026-10-28T02:30:55.428398613Z","reserved":"2026-08-10T15:10:15.962Z","status":"Deferred","rejected":false,"assigner":"VulnCheck","metric":{"version":"4.0","score":7.1,"vector":"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","rating":"high","source":"VulnCheck"},"metrics":[{"version":"4.0","score":7.1,"vector":"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","rating":"high","source":"VulnCheck"},{"version":"4.0","score":7.1,"vector":"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","rating":"high","source":"vulncheck.com"},{"version":"4.0","score":null,"vector":"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"vector":"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","rating":"medium","source":"GitHub"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"VulnCheck"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"vulncheck.com"}],"rating":"high","products":["craftcms cms"],"affectedProducts":[{"vendor":"craftcms","product":"cms","defaultStatus":"unaffected","versions":[{"version":"5.0.0-RC1","status":"affected","versionType":"semver","lessThan":"5.10.6"},{"version":"5.10.6","status":"unaffected","versionType":"semver"}],"platforms":[]},{"vendor":"craftcms","product":"cms","defaultStatus":"unaffected","versions":[{"version":"4.0.0-RC1","status":"affected","versionType":"semver","lessThan":"4.18.2"},{"version":"4.18.2","status":"unaffected","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"craftcms/cms","purl":"pkg:composer/craftcms/cms","ranges":[">=5.0.0-RC1 <5.10.6",">=4.0.0-RC1 <4.18.2"],"fixed":["5.10.6","4.18.2"],"advisory":"GHSA-596p-6jv8-775v"}],"cwes":["CWE-668"],"aliases":["GHSA-596p-6jv8-775v"],"references":[{"url":"https://github.com/craftcms/cms/security/advisories/GHSA-596p-6jv8-775v","tags":["vendor-advisory","advisory","web"]},{"url":"https://www.vulncheck.com/advisories/craft-cms-rc1-before-environment-variable-leak","tags":["third-party-advisory","advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72782.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-72782","tags":["advisory"]},{"url":"https://github.com/craftcms/cms","tags":["package"]},{"url":"https://github.com/craftcms/cms/releases/tag/4.18.2","tags":["web"]},{"url":"https://github.com/craftcms/cms/releases/tag/5.10.6","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00386,"epssPercentile":0.33376,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-72782","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-72782","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-72782","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-596p-6jv8-775v","ok":true,"note":"GHSA-596p-6jv8-775v"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-72782","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}