llamaCVEVulnerability Intelligence
/
ci4ms

CVE-2026-39394

CI4MS has an .env CRLF Injection via Unvalidated host Parameter in Install Controller

UnclearParche disponible
Descargar PNG JSON
CVSS 3.1
8.1
Alta
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H Fuente: CNA
9.8NVD · CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
ExplotaciónPoC públicaSSVC: poc · no figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versión0.31.4.0
Exposición225 dDesde la divulgación, 8 abr 2026, 9:32 a. m.
Detección208 dDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir de cerca
Monitorear y programar la remediación
Existe PoC pública, no automatizable e impacto técnico total. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada +2
Explotación
Remediación
Monitoreo
Detectada
Verificada
8 abr 26
3 nov 26
18 nov 26
19 nov 26
8 abr 26
3 jun 26
30 jul 26
24 sept 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada CVE-2026-39394 divulgada · CVSS 8.1 (CNA)
Divulgación Evaluación SSVC CISA-ADP · explotación PoC pública
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen

CI4MS is a CodeIgniter 4-based CMS skeleton that delivers a production-ready, modular architecture with RBAC authorization and theme support. Prior to 0.31.4.0, the Install::index() controller reads the host POST parameter without any validation and passes it directly into updateEnvSettings(), which writes it into the .env file via preg_replace(). Because newline characters in the value are not stripped, an attacker can inject arbitrary configuration directives into the .env file. The install routes have CSRF protection explicitly disabled, and the InstallFilter can be bypassed when cache('settings') is empty (cache expiry or fresh deployment). This vulnerability is fixed in 0.31.4.0.

Affects CI4MS before 0.31.4.0 while the install endpoint is reachable, such as on a fresh install or after the settings cache expires or is cleared. Fixed in 0.31.4.0.

¿Qué significa?The install controller's host parameter is written into the .env file without validation, so line-break characters can add arbitrary settings. An unauthenticated attacker could set the application base URL to an attacker domain, which would send password reset links, redirects, and asset loading to attacker infrastructure, or weaken security or session settings.
¿Quién está afectado?CI4MS versions before 0.31.4.0 are affected when the install endpoint is reachable, which the advisory describes as during a fresh install or after the cache('settings') entry expires or is cleared. The InstallFilter only blocks when the .env file exists and that cache is populated. To check, compare the installed CI4MS version with 0.31.4.0 and confirm whether the install endpoint still responds.
¿Qué hacer?Upgrade CI4MS to 0.31.4.0 or later. The sources checked name no vendor patch identifiers beyond this fixed version.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
The InstallFilter only blocks when the .env exists and cache('settings') is populated, so it can be bypassed when that cache is empty.“the InstallFilter can be bypassed when cache('settings') is empty (cache expiry or fresh deployment)”
02
The install endpoint must be reachable during a fresh install or after cache expiry or clearing.“The endpoint is accessible during fresh install or after cache expiry/clear.”
¿Quién debe revisar?Anyone running ci4ms or ci4-cms-erp at version 0.31.3.0 or earlier, especially not; include fresh deployments and sites whose install endpoint is reachable.
Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:H
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida
ci4ms · ci4-cms-erp/ci4ms< 0.31.4.0
0.31.4.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
ci4ms
Corregida 0.31.4.0 — —
Versiones corregidas0.31.4.0
Explotación

Arsenal público

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

Referencias
Fabricantehttps://github.com/ci4-cms-erp/ci4ms/security/advisories/GHSA-vfhx-5459-qhqh

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