CVE-2026-72782
Last modified
CVE-2026-72782 is a high-severity vulnerability rated 7.1/10 on the CVSS scale. 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.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
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
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| craftcms | cms | >= 5.0.0-RC1, < 5.10.6 |
| craftcms | cms | >= 4.0.0-RC1, < 4.18.2 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-72782?
How severe is CVE-2026-72782?
How do I fix CVE-2026-72782?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-72774n8n before 1.123.67, 2.31.5, and 2.32.1 contains a credentia…7.1
- CVE-2026-72775n8n before 1.123.67, 2.31.5, and 2.32.1 contains a SQL injec…5.8
- CVE-2026-72778Craft CMS versions from 4.0.0-RC1 before 4.18.2 and from 5.0…8.8
- CVE-2026-72779Craft CMS 5.0.0-RC1 before 5.10.6 and 4.0.0-RC1 before 4.18.…8.7
- CVE-2026-72780Craft CMS before 5.10.5 fails to persist updated credential …7.1
- CVE-2026-72781Craft CMS versions >= 5.0.0-RC1 before 5.10.7 and >= 4.0.0-R…8.8
- CVE-2026-72783Craft CMS versions >= 5.0.0-RC1 before 5.10.6 and >= 4.0.0-R…6.2
- CVE-2026-72784Craft CMS versions >= 5.0.0-RC1 before 5.10.6 and >= 4.0.0-R…6.9
- CVE-2026-72785Craft CMS 5.0.0-RC1 through 5.10.5 contains an incorrect aut…9.3
- CVE-2026-7279AVACAST developed by eMPIA Technology, has a DLL Hijacking v…8.5
- CVE-2026-7280AVACAST developed by eMPIA Technology has a Unquoted Service…8.4
- CVE-2026-7281A vulnerability was determined in SourceCodester Pharmacy Sa…2.4
Are you affected by CVE-2026-72782?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
