CVE-2026-72782: Craft CMS - Information Disclosure & Privilege Escalation
- Cve: CVE-2026-72782
- Name: Craft CMS - Information Disclosure & Privilege Escalation
- 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.
- Impact: Authenticated attackers can leak environment variables and secrets, enabling session forgery, privilege escalation, and credential theft.
- Remediation: Update to versions 5.10.6 or 4.18.2 or later.
- Vulnerability type: stored_xss
- Vulnerability impact: information_disclosure, privilege_escalation
- Requirement type: logged_in
- Requirements: Attacker must have authenticated control panel access
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- Epss score: 0.00386
- Epss percentile: 0.3337
- Assignee: [email protected]
- Published at: 2026-08-11T13:19:08Z
- Age in days: 105
- Modified at: 2026-10-24T15:10:00Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-72782
- Nvd status: deferred
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-668 | Exposure of Resource to Wrong Sphere |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/craftcms/cms/security/advisories/GHSA-596p-6jv8-775v | nvd | |
| https://www.vulncheck.com/advisories/craft-cms-rc1-before-environment-variable-leak | nvd |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| craftcms:craft_cms | >= 5.0.0, < 5.10.6; >= 4.0.0, < 4.18.2 | no | cna | /v1/products/craftcms/craft_cms |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| craftcms/cms | package, releases, security_advisory | yes | /v1/repositories/craftcms/cms |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Exposed hosts: 34344
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports