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

GHSA-XH92-4P94-CH7X

php_server serves the Caddyfile when it is stored in the document root

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

Sin parche publicado
Descargar PNG JSON
CVSS 3.1
3.7
Baja
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
ParcheSin parcheEl fabricante no ha publicado correcció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, no automatizable e impacto técnico parcial. No hay versión corregida: aplique mitigaciones.
Sorbito de café y a lo siguiente.Tranquilidad nivel Chimborazo nevado.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada +1
Explotación
Remediación
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-XH92-4P94-CH7X divulgada · CVSS 3.7 (GitHub)
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Descripción del advisory
Texto original · GitHub · en inglés
Impact

When the Caddyfile, or a file it imports, is stored under the document root of a `php_server` site, any client can download it with a `GET /Caddyfile` request. Values written inline in the Caddyfile, such as `env` values passed to PHP, Mercure JWT keys or `basic_auth` password hashes, are disclosed. Values referenced with `{$VAR}` or `{env.VAR}` are not.

This happens with the minimal layout shown in the documentation: a Caddyfile next to `index.php`, with no `root`, and FrankenPHP started from that directory. Caddy's `file_server` directive hides these files, and so does the `php` + `file_server` configuration documented as equivalent to `php_server`.

Patches

Fixed in 1.13.5.

Workarounds

Store the Caddyfile and its imports outside the document root, for instance by moving the PHP application to a `public/` subdirectory and setting `root`. Alternatively, block the request before `php_server`, for instance with `respond /Caddyfile 404`.

Details

Caddy's `file_server` directive adds the Caddyfile being adapted and its imports to the `hide` list of the handler. This is done in `FileServer.FinalizeUnmarshalCaddyfile()`. `php_server` builds its file server without this step, so both the file server it adds at the end of its routes and the one it adds for `worker { match }` had an empty `hide` list.

`php_server` now calls `FinalizeUnmarshalCaddyfile()` on its file server.

Proof of concept

`/srv/app/Caddyfile`:

http://localhost {
	php_server {
		env DATABASE_PASSWORD secret
	}
}
$ cd /srv/app && frankenphp run
$ curl http://localhost/Caddyfile   # returns the Caddyfile
Credits

Discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-30F8W2OH.

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:H
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:L
AltoBajoNinguno
IntegridadI:N
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
7.1/ 10Alto
Vector 7.1 (fácil) · sin evidencia de explotación.
Versiones

Rangos afectados

Afectada Corregida
github.com/dunglas/frankenphp/caddy≤ 1.13.4
1.13.4
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
Gogithub.com/dunglas/frankenphp/caddy
Sin parche — — —
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-xh92-4p94-ch7x

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