CVE-2026-72782
Last modified
CVE-2026-72782 is a medium-severity vulnerability rated 6.5/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. EPSS estimates a 0.23% chance of exploitation in the next 30 days.
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
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
- Deferred
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-72776AgenticSeek (commit fc242c7) contains an unauthenticated rem…9.8
- CVE-2026-72777Next AI Draw.io through 0.4.16 contains a server-side reques…8.6
- 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.…4.5
- CVE-2026-72780Craft CMS before 5.10.5 fails to persist updated credential …6.5
- 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…5.4
- CVE-2026-72785Craft CMS 5.0.0-RC1 through 5.10.5 contains an incorrect aut…4.3
- CVE-2026-72786Craft CMS versions before 5.10.8 contain an authentication b…6.5
- CVE-2026-72787Craft CMS versions before 5.10.8 contain a stored cross-site…6.4
- CVE-2026-72788SiYuan versions before v3.7.4 contain an information disclos…5.8
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
