Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
8.7

CVE-2026-72779: Craft CMS lets admin read any server file

CVE-2026-72779 · published 3 months ago
Summary

Versions of Craft CMS 5 up to 5.10.5 and 4 up to 4.18.1 let an administrator who can change settings cause the system to open and display any file on the server, such as configuration files that hold passwords. This happens because a specific function does not block a class that can read files. Update Craft CMS to the latest version or apply the vendor’s patch to stop the unauthorized file access.

What to do

The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.

Affected software
VendorProductAffected versions
craftcms cms < 4.18.2
< 5.10.6
Original advisory text
Craft CMS 5.0.0-RC1 before 5.10.6 Arbitrary File Read via SplFileObject
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.
Fix within
Internet-facing 60 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker partial control
Severity
8.7 High
Exploitation
<1% chance of attack within 30 days
Type
CWE-184Incomplete List of Disallowed Inputs
Timeline
Published11 Aug 2026
Updated22 Nov 2026
First seen11 Aug 2026
Sources
CVE-2026-72779 · MITRE
Track software like this
Free during beta