All vulnerabilities

Servers and applications

GHSA-j5wg-m2pr-35qc

"create()" file read via DOMDocument

Severity
Low
Published
22 Sept 2026
Last changed
22 Sept 2026
Added to UpHeron
3 Nov 2026
Fixed in
4.18.7, 5.10.14
Weakness
Information exposure (CWE-200)
Sources
Project advisories (GitHub)

Description

The fix for GHSA-957r-qf9p-67xw (arbitrary file read via create('SplFileObject', ...) in non-sandboxed title/URI-format contexts is a blocklist plus two name rules — 5 class names, plus reject str_starts_with('Spl') and str_ends_with('Iterator') (src/web/twig/Extension.php). It removes SplFileObject, but a blocklist only removes the classes someone listed.

On current stable 5.10.13.2, create('DOMDocument').loadHTMLFile('') + .textContent reads an arbitrary local file and yields its contents as a string. DOMDocument is not blocklisted, does not start with Spl, and does not end with Iterator. When placed in an entry-type title format, the file's contents become the entry title, exposed — exactly as in GHSA-957r — to any non-admin user who can view entries.

From craftcms/cms's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
Craft CMSServers and applications · github:craftcms/cms
  • From 4.0.0 before 4.18.7
  • From 5.0.0 before 5.10.14

About Craft CMS

Build bespoke content experiences with Craft.

From its GitHub repository.
Monthly downloads (Packagist)
79,322Packagist, 15 Nov 2026
Total downloads (Packagist)
3,879,755Packagist, 15 Nov 2026
GitHub stars
3,628GitHub, 15 Nov 2026
Forks
713GitHub, 15 Nov 2026
Latest release
5.12.1GitHub, 15 Nov 2026
Released
10 Nov 2026GitHub
First published on GitHub
27 Jan 2017GitHub

Release lines

ReleaseLatestSecurity fixes
55.12.1Until 31 Dec 2031
44.18.9Ended 30 Apr 2026
33.9.15Ended 30 Apr 2024
22.9.2Ended 31 Jan 2022

From endoflife.date.

References