CVE-2026-72779 PUBLISHED

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

Assigner: VulnCheck
Reserved: 10.08.2026 Published: 11.08.2026 Updated: 11.08.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
CVSS Score: 8.7

Product Status

Vendor craftcms
Product cms
Versions Default: unaffected
  • affected from 5.0.0-RC1 to 5.10.6 (excl.)
  • Version 5.10.6 is unaffected
Vendor craftcms
Product cms
Versions Default: unaffected
  • affected from 4.0.0-RC1 to 4.18.2 (excl.)
  • Version 4.18.2 is unaffected

Credits

  • je-lv reporter

References

Problem Types

  • Incomplete List of Disallowed Inputs CWE