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.
Published: 2026-08-11
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

No advisories yet.

History

Tue, 11 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 11 Aug 2026 12:45:00 +0000

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'}


Subscriptions

Craftcms Craft Cms
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-11T14:56:11.842Z

Reserved: 2026-08-10T15:09:12.955Z

Link: CVE-2026-72779

cve-icon Vulnrichment

Updated: 2026-08-11T14:56:08.327Z

cve-icon NVD

Status : Received

Published: 2026-08-11T13:19:08.360

Modified: 2026-08-11T16:17:36.973

Link: CVE-2026-72779

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T10:47:39Z

Weaknesses
  • CWE-184

    Incomplete List of Disallowed Inputs