Skip to main content
← All vulnerabilities
CVE-2026-109304GHSA-J5WG-M2PR-35QC

Craft CMS 4.0.0 before 4.18.7 and 5.0.0 before 5.10.14 Arbitrary File Read via Twig create() DOMDocument

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.18.7, 5.10.14
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

Craft CMS 4.0.0 before 4.18.7 and 5.0.0 before 5.10.14 contains an arbitrary file read vulnerability because the Twig create() class blocklist does not cover DOMDocument. Attackers able to set an entry-type title format, including via project-config/apply, can use create('DOMDocument').loadHTMLFile() with textContent to expose local file contents to non-admin users who can view entries.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • craftcms cms

    From 4.0.0 · fixed in 4.18.7

  • craftcms cms

    From 5.0.0 · fixed in 5.10.14

References 2

GitHub · craftcms/cms

vulncheck.com