---
id: CVE-2026-72779
title: >-
  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
summary: >-
  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 …
severity: medium
cvss: 4.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N'
cwe:
  - CWE-184
published: '2026-08-11'
updated: '2026-09-08'
sourceUpdated: '2026-09-08T20:32:39.347'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-72779'
references:
  - url: 'https://github.com/craftcms/cms/security/advisories/GHSA-957r-qf9p-67xw'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/craft-cms-rc1-before-arbitrary-file-read-via-splfileobject
    label: disclosure@vulncheck.com
tags:
  - nvd
epss: 0.00218
epssPercentile: 0.12476
ingestedAt: '2026-09-08T21:11:12.275Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
