CVE-2026-72779

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

Published Aug 11, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability is an arbitrary file read that allows an authenticated administrator to read any file on the server through a blocked Twig create() function that does not block SplFileObject. This is an example of CWE‑184, where the application does not properly constrain user input that can result in unauthorized access to system resources. An attacker can then configure a malicious entry type title or URI format that instantiates SplFileObject, causing the system to render the contents of files such as .env with database credentials or security keys as entry titles. This results in disclosure of highly confidential information and could facilitate further attacks.

Affected Systems

Craft CMS versions 5.0.0‑RC1 through 5.10.5 inclusive, and 4.0.0‑RC1 through 4.18.1 inclusive are susceptible to this flaw. The issue is tied to the Twig template engine and the create() function used by the CMS.

Risk and Exploitability

The CVSS score of 8.7 indicates a high severity with a high impact on confidentiality. This CVE is categorized as CWE-184, reflecting a failure to restrict the operations performed on the file system. The exploit requires attacker to have administrator privileges with allowAdminChanges set to true; no external network access is required. EPSS data is unavailable, and the vulnerability has not been listed in CISA’s KEV catalog, but the lack of a blacklist for SplFileObject makes the flaw straightforward to leverage once an admin account is compromised.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Craft CMS to version 5.10.6 or later, or to 4.18.2 or later if using the 4.x branch.
  • If an immediate upgrade is not possible, disable the allowAdminChanges setting for all users or restrict it to a minimal trusted group.
  • Apply a patch that blocks SplFileObject from being instantiated by the create() Twig function, or manually edit the creation logic to enforce a stricter blocklist.

Generated by OpenCVE AI on August 11, 2026 at 23:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-957r-qf9p-67xw Craft CMS: Arbitrary file read via SplFileObject in non-sandboxed template contexts
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Craft CMS 5.0.0-RC1 before 5.10.6 Arbitrary File Read via SplFileObject
First Time appeared Craftcms
Craftcms craft Cms
Weaknesses CWE-184
CPEs cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:*
Vendors & Products Craftcms
Craftcms craft Cms
References
Metrics cvssV3_1

{'score': 4.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 8.7, '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'}

Weaknesses
  • CWE-184

    Incomplete List of Disallowed Inputs

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 8, 2026, 3:24 PM
Reserved
Aug 10, 2026, 3:09 PM
Status
Deferred
Published
Aug 11, 2026, 1:19 PM
Modified
Oct 24, 2026, 3:10 PM