CVE-2026-72782

Source
https://cve.org/CVERecord?id=CVE-2026-72782
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72782.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-72782
Aliases
Published
2026-08-11T12:17:17.101Z
Modified
2026-08-13T03:51:57.984716829Z
Severity
  • 7.1 (High) CVSS_V4 - 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 CVSS Calculator
Summary
Craft CMS 5.0.0-RC1 before 5.10.6 Environment Variable Leak
Details

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 ${ENVVAR} 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 CRAFTSECURITY_KEY), escalate privileges, and steal database, SMTP, API, or blob storage credentials. Fixed in 5.10.6 and 4.18.2.

Database specific
{
    "cwe_ids": [
        "CWE-668"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72782.json",
    "cna_assigner": "VulnCheck"
}
References

Affected packages

Git / github.com/craftcms/cms

Affected ranges

Type
GIT
Repo
https://github.com/craftcms/cms
Events
Database specific
Show details
{
    "extracted_events": [
        {
            "introduced": "5.0.0-RC1"
        },
        {
            "fixed": "5.10.6"
        },
        {
            "introduced": "4.0.0-RC1"
        },
        {
            "fixed": "4.18.2"
        }
    ],
    "source": "AFFECTED_FIELD"
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72782.json"