# CVE-2026-72782: Craft CMS 5.0.0-RC1 before 5.10.6 Environment Variable Leak

- Severity: High 7.1 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2026-08-06T21:53:31.000Z
- Modified: 2026-10-24T15:10:00.190Z
- Also known as: GHSA-596p-6jv8-775v
- Weaknesses: CWE-668
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- craftcms cms: from 5.0.0-RC1 before 5.10.6; from 4.0.0-RC1 before 4.18.2 (not affected: 5.10.6; 4.18.2)
- craftcms/cms (Packagist): from 5.0.0-RC1 before 5.10.6; from 4.0.0-RC1 before 4.18.2

## Every score

- VulnCheck: CVSS:4.0 7.1 High `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`
- VulnCheck: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://github.com/craftcms/cms/security/advisories/GHSA-596p-6jv8-775v> (vendor-advisory, web)
- <https://www.vulncheck.com/advisories/craft-cms-rc1-before-environment-variable-leak> (third-party-advisory, 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)

## Sources

- CVE List: [CVE-2026-72782](https://www.cve.org/CVERecord?id=CVE-2026-72782), CVE Terms of Use, modified 2026-10-08
- GitHub Advisory Database: [GHSA-596p-6jv8-775v](https://github.com/advisories/GHSA-596p-6jv8-775v), CC-BY-4.0, modified 2026-09-01
- NVD: [CVE-2026-72782](https://nvd.nist.gov/vuln/detail/CVE-2026-72782), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-72782 · Whole record: https://cve.day/CVE-2026-72782.json · Rebuilt by cve.day 2026-11-25T22:59:32.251Z
