llamaCVEVulnerability Intelligence
/
Advisory · GitHub · Packagist · october/system

GHSA-R63R-HJFQ-PWF8

Server Environment and Header Disclosure via Twig Request Object

Sin parche publicado
Descargar PNG JSON
CVSS 3.1
2.2
Baja
CVSS:3.1/AV:N/AC:H/PR:H/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ón67 dDesde la divulgación, 13 sept 2026, 2:04 p. m.
Detección66 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Explotación
Remediación
Monitoreo
Detectada +1
13 sept 26
19 nov 26
13 sept 26
30 sept 26
17 oct 26
3 nov 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-R63R-HJFQ-PWF8 divulgada · CVSS 2.2 (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

The Twig sandbox `SecurityPolicy` allowlisted `Illuminate\Http\Request` with no method-level restrictions, and the fully-hydrated request object was injected into every CMS page render as `this.request`. A backend user with CMS markup editing access could call `this.request.server()` from a Safe Mode template to read the full `$_SERVER` superglobal (which contains `.env` secrets such as `APP_KEY`, `DB_PASSWORD`, and third-party API credentials in PHP-FPM and equivalent deployments), or call `this.request.header()` / `this.request.cookie()` / `this.request.bearerToken()` to read incoming request headers and cookies.

This issue only affects installations running with `cms.safe_mode` enabled. Safe Mode is a niche opt-in feature, primarily used for demo installations and multi-tenant or shared-editor scenarios where untrusted users are deliberately granted access to the CMS markup editor. In standard production deployments Safe Mode is off, backend access is restricted to trusted administrators, and a markup editor can already read `$_SERVER` directly via raw PHP. The disclosure path closed here is the Safe Mode boundary itself, so installations without Safe Mode enabled are not exposed.

### Impact
- Disclosure of the full `$_SERVER` array from a Safe Mode Twig template, including environment variables on deployments that surface `.env` via `$_SERVER` (PHP-FPM, Apache `SetEnv`, etc.). On affected deployments this typically includes `APP_KEY`, database credentials, and third-party API keys.
- Disclosure of incoming request headers (including `Authorization` and other credential-bearing headers) and cookies (including session cookies).
- Disclosure of the raw request body via `getContent()`.
- Requires `cms.safe_mode` to be enabled, and a backend user with CMS markup editing access who is not intended to be trusted as a full administrator.
- Not exploitable when Safe Mode is disabled.

### Patches
The vulnerability has been patched in v3.7.17 and v4.2.21. The `Illuminate\Http\Request` instance is no longer allowlisted directly in the Twig sandbox; instead it is wrapped via `castMethodObjectToSafeObject` in a new `SafeRequest` proxy. The proxy exposes an explicit allowlist of read-only methods that themes legitimately use (URL/routing methods such as `url`, `path`, `method`, `is`; request-type checks such as `ajax`, `pjax`, `secure`; user-supplied input methods such as `input`, `query`, `has`; and low-sensitivity network metadata such as `ip`, `userAgent`). Methods that expose server environment, request headers, cookies, raw body, or authentication state (`server`, `header`, `cookie`, `getContent`, `bearerToken`, `getPassword`, `getUser`, `session`, `user`) are blocked.

### Workarounds
If upgrading immediately is not possible, restrict CMS markup editing access to fully trusted administrators only, the standard October CMS recommendation for any deployment.

### References
- Reported by kid1412-byte

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:H
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:L
AltoBajoNinguno
IntegridadI:N
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida
october/system≤ 4.2.20
4.2.20
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
Packagistoctober/system
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/octobercms/october/security/advisories/GHSA-r63r-hjfq-pwf8

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