{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "5.0.0-RC1"
              },
              {
                "fixed": "5.10.6"
              },
              {
                "introduced": "4.0.0-RC1"
              },
              {
                "fixed": "4.18.2"
              }
            ],
            "source": "AFFECTED_FIELD"
          },
          "events": [
            {
              "introduced": "04755d93f86d07cc183db47db8a0eee106892e30"
            },
            {
              "fixed": "5c055703a13ba3a52bf013d7ba6c0223d6f62ef8"
            },
            {
              "introduced": "daac7c1da2f701f2e9ddee1da1457ce61660b581"
            },
            {
              "fixed": "c7ea105e1d2cf043e76e7847d84e5732071a26b4"
            }
          ],
          "repo": "https://github.com/craftcms/cms",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-596p-6jv8-775v"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-668"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72782.json"
  },
  "details": "Craft CMS versions \u003e= 5.0.0-RC1 before 5.10.6 and \u003e= 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.",
  "id": "CVE-2026-72782",
  "modified": "2026-08-13T03:51:57.984716829Z",
  "published": "2026-08-11T12:17:17.101Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72782.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/craftcms/cms/security/advisories/GHSA-596p-6jv8-775v"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-72782"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/craft-cms-rc1-before-environment-variable-leak"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Craft CMS 5.0.0-RC1 before 5.10.6 Environment Variable Leak"
}