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

GHSA-V7HF-4GQV-HF8P

php_server with a worker match rule can serve the source of PHP scripts

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

Sin parche publicado
Descargar PNG JSON
CVSS 3.1
5.9
Media
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/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.
Traje la llave inglesa: esto se arregla.Para el próximo sprint, sin estrés.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
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-V7HF-4GQV-HF8P divulgada · CVSS 5.9 (GitHub)
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 a `php_server` block has a worker with a `match` rule and the built-in file server is enabled (the default), the raw source of some scripts under the document root can be downloaded instead of executed:

  • with extra script extensions declared with `split` (e.g. `split .php .phtml`), `GET /report.phtml` returns the source of `report.phtml`;
  • with a rewrite running before `php_server` that produces a script path ending with `/` (for instance `/app/config.php/./` behind `handle_path` or `uri strip_prefix`), the source of any `.php` script is returned.

The leaked source can contain credentials and other secrets. Nothing is executed or modified, and files outside the document root are not reachable.

Patches

Fixed in 1.13.5.

Workarounds

Disable the built-in file server with `file_server off` in `php_server` and serve static files with a separate `file_server` directive, or don't use `match` in `worker` blocks.

Details

When a worker has a `match` pattern, `php_server` adds a `file_server` route before all its other routes, so existing static files are served before the request reaches the worker. This route excluded scripts with a hard-coded `*.php` path pattern, while the PHP route handles `*<ext>` and `*<ext>/*` for every extension listed in `split`. Paths in the second set but not the first were served as static files. For `/config.php/`, the `path` matcher keeps the trailing slash, while the `file` matcher and the file server drop it.

The exclusion now uses the same path patterns as the PHP route.

Proof of concept
http://localhost {
	php_server {
		root /srv/app
		split .php .phtml
		worker {
			file /srv/worker.php
			match /api/*
		}
	}
}
$ curl http://localhost/report.phtml   # returns the source of /srv/app/report.phtml
Credits

Discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-9HGVH264.

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:H
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.8.0 ≤ 1.13.4
1.8.0
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-v7hf-4gqv-hf8p

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