CVE-2026-72779
HIGH 8.7CVSS 4.0Craft CMS: Arbitrary file read via SplFileObject in non-sandboxed template contexts
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
- 11 Aug 2026
- Last modified
- 24 Oct 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Deferred
- Weakness
- CWE-184
- Also known as
- GHSA-957r-qf9p-67xw
- Sources
- NVDJSONOSV GHSA-957r-qf9p-67xwJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | HIGH 8.7 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N | |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | MEDIUM 4.5 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Packagist | craftcms/cms | >= 5.0.0-RC1, < 5.10.6 | 5.10.6 |
| OSV | Packagist | craftcms/cms | >= 4.0.0-RC1, < 4.18.2 | 4.18.2 |
References
- https://github.com/craftcms/cms/security/advisories/GHSA-957r-qf9p-67xw · WEB
- https://www.vulncheck.com/advisories/craft-cms-rc1-before-arbitrary-file-read-via-splfileobject · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-72779 · ADVISORY
- https://github.com/craftcms/cms/commit/7c96fd73df936a10e8f85ae6ef61a9fc3f277c12 · WEB
- https://github.com/craftcms/cms/commit/87978f11c8f986c40ef41b941d79547230c4d6d9 · WEB
- https://github.com/craftcms/cms · PACKAGE
- https://github.com/craftcms/cms/releases/tag/4.18.2 · WEB
- https://github.com/craftcms/cms/releases/tag/5.10.6 · WEB
History
- 25 Nov 2026 21:04 UTC · NVD: first stored (published 11 Aug 2026)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 6 Aug 2026)