{"id":"CVE-2026-55792","summary":"Craft CMS: Sensitive File Disclosure / Server-Side File Read","details":"Craft CMS is a content management system (CMS). In versions starting from 4.0.0-RC1 and prior to 4.18.0, and 5.0.0-RC1 and above, prior to 5.10.0, the dataUrl() Twig function is included in Craft’s Twig sandbox allowlist, allowing any control panel user granted the utility:system-messages permission to embed a file-reading payload into system email templates. When those emails are sent, the server reads the target file and returns its contents as a base64-encoded data URL embedded in the email body. The .env file, which typically contains the database password, CRAFT_SECURITY_KEY, and third-party API keys, passes all of Craft’s existing dataUrl() protection checks and is fully exfiltrated. Obtaining CRAFT_SECURITY_KEY enables an attacker to forge session tokens and escalate to full admin account takeover. This issue has been fixed in versions 4.18.0 and 5.10.0.","aliases":["GHSA-287w-mxq6-x2cp"],"modified":"2026-07-15T01:49:16.414674791Z","published":"2026-07-01T23:20:28.993Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-200"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55792.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/55xxx/CVE-2026-55792.json"},{"type":"ADVISORY","url":"https://github.com/craftcms/cms/security/advisories/GHSA-287w-mxq6-x2cp"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55792"},{"type":"FIX","url":"https://github.com/craftcms/cms/pull/18559"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/craftcms/cms","events":[{"introduced":"daac7c1da2f701f2e9ddee1da1457ce61660b581"},{"fixed":"f7fbf335ac15665372670b61046032f5f404f69a"},{"introduced":"04755d93f86d07cc183db47db8a0eee106892e30"},{"fixed":"a516a6190ba8ef39a7603863df9ae09eb89f3a64"}],"database_specific":{"extracted_events":[{"introduced":"4.0.0-RC1"},{"fixed":"4.18.0"},{"introduced":"5.0.0-RC1"},{"fixed":"5.10.0"}],"source":"AFFECTED_FIELD"}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-55792.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"}]}