GHSA-J5WG-M2PR-35QC
"create()" file read via DOMDocument
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-J5WG-M2PR-35QC divulgada | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
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('<path>')` + `.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. This is the same file-read-to-viewer disclosure reproduced on the patched release via a class the fix does not cover, and it also survives `allowAdminChanges=false` because the title format arrives through `project-config/apply`, not control panel editing.
Report ID: 1660
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Packagistcraftcms/cms |
Corregida | 4.18.7, 5.10.14 | — | — |
4.18.75.10.14Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/craftcms/cms/security/advisories/GHSA-j5wg-m2pr-35qcLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
