GHSA-X6J6-QV7W-FQ3C
Worker request left pending when request startup fails
Texto original en inglés · Ver en español
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-X6J6-QV7W-FQ3C divulgada · CVSS 3.7 (GitHub) | |
| Divulgación | Modificada | Última actualización del registro | |
| Remediación | Parche v1.13.4 | github.com/dunglas/frankenphp · 0 d desde divulgación | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Impact
In worker mode, when a fatal error occurred while FrankenPHP was starting a worker request (before the application code runs), `frankenphp_handle_request()` returned `false` without finishing the request it had taken from the queue. If the worker script then called `frankenphp_handle_request()` again, the client of that request waited forever, and the worker script kept running after the fatal error.
Exploitation requires both a fatal error during request startup (PHP 8.2.35, 8.3.36, 8.4.27, 8.5.12 and later defer memory limit errors there, which makes it harder to reach) and a worker script that keeps calling `frankenphp_handle_request()` after it returned `false`. Common worker scripts stop when it returns `false`.
Patches
Fixed in 1.13.4 by https://github.com/php/frankenphp/commit/185bfe578af854d29d7bdff3dd83b3b9dea3572b: the worker script now ends on startup failure, and the pending request is closed.
Workarounds
Stop the worker loop as soon as `frankenphp_handle_request()` returns `false`, as shown in the worker mode documentation.
Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
gogithub.com/dunglas/frankenphp |
Corregida | v1.13.4 | 0 d | v1.13.6 no afectada |
v1.13.4Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/php/frankenphp/security/advisories/GHSA-x6j6-qv7w-fq3cLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
