Skip to content
OpenAdvisories
Medium · 4.5 CVE-2026-72779 EUVD-2026-56103GHSA-2p2v-3mjg-gfpfGHSA-957r-qf9p-67xw

Craft CMS 5.0.0-RC1 before 5.10.6 Arbitrary File Read via SplFileObject

Published Aug 11, 2026 · Updated Oct 8, 2026 · Assigned by VulnCheck

Description

Craft CMS 5.0.0-RC1 before 5.10.6 and 4.0.0-RC1 before 4.18.2 contain an arbitrary file read vulnerability. The create() Twig function restricts class instantiation using a 5-entry blocklist that does not include SplFileObject, allowing an authenticated administrator (with allowAdminChanges=true) to configure a malicious entry type title or URI format that instantiates SplFileObject in a non-sandboxed template context. When a user subsequently creates an entry in the affected section, arbitrary files on the server (such as .env containing the security key and database credentials) are read and rendered as entry titles.

Affected products

VendorProductAffectedFixed
craftcms cms 5.0.0-RC1 – < 5.10.6, 4.0.0-RC1 – < 4.18.2 5.10.6

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist craftcms/cms >= 5.0.0-RC1, < 5.10.6 5.10.6 GHSA-957r-qf9p-67xw
Packagist craftcms/cms >= 4.0.0-RC1, < 4.18.2 4.18.2 GHSA-957r-qf9p-67xw

References