Skip to content

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

MediumCVSS 6.9 EPSS 0.31%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

Description

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
craftcms cms >= 4.0.0, < 4.18.7; >= 5.0.0, < 5.10.14 4.18.7, 5.10.14 Fixed

Affected products

ProductAffected versionsFixed in
craftcms cms >= 4.0.0, < 4.18.7 4.18.7
craftcms cms >= 5.0.0, < 5.10.14 5.10.14

References