{
  "id": "CVE-2026-72782",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-72782",
  "published_at": "2026-08-11T12:17:17.101Z",
  "title": "Craft CMS 5.0.0-RC1 before 5.10.6 Environment Variable Leak",
  "vendor": "craftcms",
  "product": "cms",
  "cvss": {
    "score": 7.1,
    "source": "cna",
    "vector": "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"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-668",
  "cvss_by_source": {
    "cna": 7.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "craftcms",
        "product": "cms",
        "ranges": [
          "\u003e= 5.0.0-RC1, \u003c 5.10.6"
        ],
        "fixed_in": [
          "5.10.6"
        ]
      },
      {
        "vendor": "craftcms",
        "product": "cms",
        "ranges": [
          "\u003e= 4.0.0-RC1, \u003c 4.18.2"
        ],
        "fixed_in": [
          "4.18.2"
        ]
      }
    ],
    "upgrade": [
      "Upgrade cms to 5.10.6 or later.",
      "Upgrade cms to 4.18.2 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/craftcms/cms/security/advisories/GHSA-596p-6jv8-775v"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
