# CVE-2026-55792: Craft CMS: Sensitive File Disclosure / Server-Side File Read

- Severity: Medium 6.0 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 28% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-01T23:20:28.993Z
- Modified: 2026-10-25T21:10:00.770Z
- Also known as: GHSA-287w-mxq6-x2cp
- Weaknesses: CWE-200
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- craftcms cms: >= 4.0.0-RC1, < 4.18.0; >= 5.0.0-RC1, < 5.10.0
- craftcms/cms (Packagist): from 4.0.0-RC1 before 4.18.0; from 5.0.0-RC1 before 5.10.0

## Every score

- GitHub_M: CVSS:4.0 6.0 Medium `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`
- GitHub: CVSS:4.0 Medium `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`

## References

- <https://github.com/craftcms/cms/pull/18559> (exploit, web)
- <https://github.com/craftcms/cms/security/advisories/GHSA-287w-mxq6-x2cp> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-55792> (advisory)
- <https://github.com/craftcms/cms> (package)

## Sources

- CVE List: [CVE-2026-55792](https://www.cve.org/CVERecord?id=CVE-2026-55792), CVE Terms of Use, modified 2026-07-02
- GitHub Advisory Database: [GHSA-287w-mxq6-x2cp](https://github.com/advisories/GHSA-287w-mxq6-x2cp), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-55792](https://nvd.nist.gov/vuln/detail/CVE-2026-55792), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-55792 · Whole record: https://cve.day/CVE-2026-55792.json · Rebuilt by cve.day 2026-11-25T22:59:26.986Z
