GHSA-HFJH-GW6X-7PV5
Database failure exposes environment secrets through the installer
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-HFJH-GW6X-7PV5 divulgada | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Craft CMS treats a database connection failure as meaning that Craft is not installed. This makes anonymous installer actions reachable on an installed production site whenever PHP remains available, but MySQL does not.
The anonymous `install/validate-site` action accepts a site name, serializes it through `Site::getName()`, and expands `${NAME}` expressions with `App::env()`. An attacker who preserved a guest CSRF session from before the outage can supply a predictable variable name, such as `CRAFT_SECURITY_KEY`, and obtain its secret value.
Preconditions
- Craft is installed and running in production mode.
- The configured MySQL endpoint becomes unavailable while the web server and PHP remain reachable.
- The attacker obtained a guest session cookie and a matching CSRF token before the failure, and that session remains usable during it.
- A sensitive value is available through `App::env()` under a predictable name. The PoC uses Craft’s conventional `CRAFT_SECURITY_KEY` name; the attacker does not need to know its value.
Attack complexity is high because this finding does not provide a way to cause the database failure.
Remediation
Treat database errors as an indeterminate installation state and deny all installer actions unless Craft is positively known to be uninstalled. Do not expand environment expressions when serializing untrusted installer-validation input.
Impact
During a database failure, an unauthenticated attacker can request variables with known or predictable names from Craft secrets, process environment variables, `$_SERVER`, or PHP constants. Depending on the deployment, this can expose the Craft security key, database credentials, API keys, or other service credentials.
Report ID: 1593
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 | 5.10.13 | — | — |
5.10.13Arsenal 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-hfjh-gw6x-7pv5Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
