SecurityContext

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

IdName
CWE-668Exposure of Resource to Wrong Sphere

References

UrlSourceTags
https://github.com/craftcms/cms/security/advisories/GHSA-596p-6jv8-775vnvd
https://www.vulncheck.com/advisories/craft-cms-rc1-before-environment-variable-leaknvd

Products

ProductAffectedPlatform boundSourcesUrl
craftcms:craft_cms>= 5.0.0, < 5.10.6; >= 4.0.0, < 4.18.2nocna/v1/products/craftcms/craft_cms

Projects

RepositoryLink kindsIndexedUrl
craftcms/cmspackage, releases, security_advisoryyes/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