Quick answers
- Is CVE-2026-72782 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-72782 being exploited in the wild.
- How severe is CVE-2026-72782?
- Medium severity, with a CVSS score of 6.5, published 11 August 2026.
- Which products and versions are affected?
- craftcms/cms (Packagist) ECOSYSTEM:introduced=5.0.0-RC1,fixed=5.10.6.
- Is there a fix for CVE-2026-72782?
- Yes. craftcms/cms (Packagist): upgrade to 5.10.6 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-72782 attacked?
- It is attacked over the network.
- Am I affected by CVE-2026-72782?
- Check whether you run craftcms/cms (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- craftcms/cms (Packagist): upgrade to 5.10.6 or later
composer require craftcms/cms:^5.10.6
Technical details
The vulnerability exists in Craft CMS's elementId parameter processing, which interpolates environment variable references (${ENV_VAR} syntax) into Twig templates before rendering, even when the Twig sandbox is enabled. The sandboxed template cannot access network functions to directly exfiltrate values, but an attacker can use blind error-based injection techniques—similar to blind SQL injection—across many requests to incrementally leak arbitrary environment variables and secrets. Attack preconditions include authentication and control panel access. The vulnerability was patched in versions 5.10.6 and 4.18.2 by disabling environment variable interpolation in sandboxed contexts.
Affected products
- Craft CMS >=5.0.0-RC1, <5.10.6; >=4.0.0-RC1, <4.18.2
Identifiers
- CVE-2026-72782
- GHSA-596p-6jv8-775v
Timeline
- 2026-07-25: disclosed
- 2026-08-11: advisory: CVE-2026-72782 published
- 2026-07-25: patched: Patches released in versions 5.10.6 and 4.18.2