llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Go · github.com/dunglas/frankenphp/caddy

GHSA-J45X-H238-H4XX

"request_body_timeout" does not stop slow request bodies

Texto original en inglés · Ver en español

Parche disponible
Descargar PNG JSON
CVSS 3.1
5.3
Media
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche el mismo día de la divulgación
Exposición16 dDesde la divulgación, 5 nov 2026, 7:01 a. m.
Detección14 dDesde la divulgación hasta su ingreso al índice
Decisión estimadaSeguir
Remediar en la ventana regular de mantenimiento
Estimación de Llama con el árbol SSVC de CISA a partir de vector CVSS 3.1 y la evidencia de explotación (sin evaluación oficial): sin explotación conocida, automatizable e impacto técnico parcial. Hay versiones corregidas disponibles.
Esto lo arregla la rutina de siempre.Ni fuego ni humo: solo una tarea pendiente.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Parche v1.13.5
Monitoreo
Detectada +1
5 nov 26
19 nov 26
21 nov 26
5 nov 26
9 nov 26
13 nov 26
17 nov 26
21 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-J45X-H238-H4XX divulgada · CVSS 5.3 (GitHub)
Remediación Parche v1.13.5 github.com/dunglas/frankenphp · 0 d desde divulgación
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés
Summary

Caddy replaces FrankenPHP's read deadline, making `request_body_timeout` ineffective against slow request bodies.

Details

`go_read_post` sets the configured deadline before PHP reads the body. Caddy 2.11.7 wraps the body with `IdleTimeoutReader`, which replaces that deadline before the network read.

Proof of concept

Run FrankenPHP with two threads and:

php_server {
    request_body_timeout 100ms
}

Open two HTTP/1.1 connections. On each, send a `POST` with `Content-Length: 100`, send one body byte, then stop. After one second, request a fast PHP endpoint with a two-second timeout.

The fast request times out. Both threads remain blocked until the slow clients close.

Impact

An unauthenticated client can block every PHP thread with one slow connection per thread. Occasional body bytes can extend the block.

Status

caddyserver/caddy#8145, which this advisory was closed on, only lets handler write deadlines cap Caddy's idle write timeout. The read side is unchanged: `IdleTimeoutReader` still sets its own deadline before each body read, so `request_body_timeout` has no effect behind Caddy, whose `read_body` idle timeout (1 minute by default) applies instead. This was confirmed again on 1.13.4.

Patches
  • caddyserver/caddy#8284 makes Caddy's idle body reader keep a read deadline set by a handler as a ceiling, instead of replacing it before each read. This alone fixes the proof of concept above.
  • FrankenPHP no longer clears the read deadline once it has expired. Without this, when a script writes more than the response buffer after a timed-out read, `net/http` drains the rest of the body on the PHP thread with no deadline, behind Caddy and with the library alike.

The fix ships in the first FrankenPHP release built with a Caddy version that includes caddyserver/caddy#8284.

Bodies that PHP doesn't read at request startup (`PUT`, `PATCH`, `DELETE`, or `POST` with `enable_post_data_reading=Off`) are still drained without a deadline when the script writes more than the response buffer or calls `flush()` before reading them. This is tracked separately.

Workarounds

Lower Caddy's own body idle timeout, which is the one in effect behind Caddy:

{
	servers {
		timeouts {
			read_body 10s
		}
	}
}
Credits

Reported by @alexandre-daubois. Also discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-SOADHUU9.

Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.

Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · GitHub
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:N
AltoBajoNinguno
IntegridadI:N
AltoBajoNinguno
DisponibilidadA:L
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
10.0/ 10Muy alto
Vector 10.0 (muy fácil) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida Última
github.com/dunglas/frankenphp≥ 1.12.5 ≤ 1.13.4
github.com/dunglas/frankenphp/caddy≥ 1.13.0 ≤ 1.13.4
1.12.5
1.13.0
1.13.4
v1.13.6
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
gogithub.com/dunglas/frankenphp
Corregida v1.13.5 0 d v1.13.6 no afectada
Versiones corregidasv1.13.5
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Advisoryhttps://github.com/php/frankenphp/security/advisories/GHSA-j45x-h238-h4xx

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.