GHSA-7HXC-F267-H5Q7
Craft CMS: Incorrect path validation could potentially lead to path traversal
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-7HXC-F267-H5Q7 divulgada | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Detectada | Ingresó al índice |
The `ensurePathIsContained` function of the `Local` file system class is theoretically vulnerable to path traversal, although no exploitable scenario has been discovered.
When a file is read, an `Asset` object uses the `getFileStream` method of the `Volume` where the asset file is stored, which in turn uses the `getFileStream` method of the file system class used by that `Volume`. For the `Local` file system, this function returns a stream to a file on the local disk after verifying and creating the correct file path.
The file path is constructed by first validating the path and then adding a prefix to the validated and normalized path. The prefix is the path to the local directory that houses the particular volume. The order of operations matters here: first, a validation step, afterward a normalization step, and finally the construction of the resulting file path. This opens the possibility of a desanitization-style vulnerability, where the normalization invalidates the assumptions made by the validation or sanitization that preceded it.
Impact
The issue is not directly exploitable, but for hardening, a fix is recommended regardless.
Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
Packagistcraftcms/cms |
Corregida | 4.18.2, 5.10.6 | — | — |
4.18.25.10.6Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://nvd.nist.gov/vuln/detail/CVE-2026-72783https://github.com/craftcms/cms/security/advisories/GHSA-7hxc-f267-h5q7https://github.com/craftcms/cms/commit/a8425b6c707335e42c35ee2aaf03af50ea4a494dhttps://github.com/craftcms/cms/commit/bd6b9c175b4892e042e8a03760c39b0e94c4c7d6https://github.com/craftcms/cmshttps://github.com/craftcms/cms/releases/tag/4.18.2https://github.com/craftcms/cms/releases/tag/5.10.6https://www.vulncheck.com/advisories/craft-cms-rc1-before-path-traversal-via-ensurepathiscontainedLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
