GHSA-G9V4-RP77-RV76
PATH_INFO lets clients probe existence and modification time of files under the document root
Texto original en inglés · Ver en español
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | GHSA-G9V4-RP77-RV76 divulgada · CVSS 3.7 (GitHub) | |
| Divulgación | Modificada | Última actualización del registro | |
| 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 |
Impact
FrankenPHP stored the document root joined with the client-supplied `PATH_INFO` in `SG(request_info).path_translated`. PHP treats this field as the path of the running script and calls `stat()` on it in `getlastmod()`, `getmyinode()`, `getmyuid()`, `getmygid()`, `get_current_user()` and in the `Last-Modified` header sent by the `public`, `private` and `private_no_expire` session cache limiters.
When an application uses one of these functions or session cache limiters and reflects the result, a client can request `/index.php/some/path` to learn whether any file under the document root exists and when it was last modified, including files the server refuses to serve (for example a `respond 403` matcher on `/private/*`). In worker mode the stat result is cached for the lifetime of the worker script, so a single crafted request also changes the values seen by later requests handled by the same thread.
File contents are not disclosed.
Patches
Fixed in 1.13.5.
Workarounds
Avoid exposing `getlastmod()`, `getmyinode()` or similar values to clients, and use the `nocache` session cache limiter (the default). Requests carrying a `PATH_INFO` can also be rejected or rewritten in the Caddyfile when the application does not need it.
Details
`go_update_request_info()` set `info.path_translated` to `sanitizedPathJoin(documentRoot, pathInfo)` whenever `PATH_INFO` was not empty. php-fpm, php-cgi and the Apache module store the script filename in this field instead.
The fix sets `SG(request_info).path_translated` to the executed script, including for worker messages, and registers `$_SERVER['PATH_TRANSLATED']` from Go with its previous value (document root and `PATH_INFO`, only when `PATH_INFO` is set). As a side effect, `getlastmod()`, `getmyinode()` and `get_current_user()` now describe the script, as with other SAPIs.
Proof of concept
:8080 {
root * /srv/app
@private path /private/*
respond @private 403
php_server
}<?php
// /srv/app/index.php
session_cache_limiter('public');
session_start();curl -sI http://localhost:8080/private/secret.txt # 403
curl -sI http://localhost:8080/index.php/private/secret.txt # Last-Modified: mtime of secret.txt
curl -sI http://localhost:8080/index.php/private/missing # no Last-ModifiedCredits
Discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-5C66LZ4S.
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.5 | 0 d | v1.13.6 no afectada |
v1.13.5Arsenal 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-g9v4-rp77-rv76Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
