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

GHSA-WJF7-8R24-63WR

OS Command Injection via Sendmail Path Mail Setting

Parche disponible
Descargar PNG JSON
CVSS 3.1
3.8
Baja
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N Fuente: GitHub
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versión4.3.4
Exposición18 dDesde la divulgación, 1 nov 2026, 3:33 p. m.
Detección17 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
1 nov 26
19 nov 26
1 nov 26
6 nov 26
10 nov 26
15 nov 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada GHSA-WJF7-8R24-63WR divulgada · CVSS 3.8 (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 Mail Configuration page's `sendmail_path` field on `System\Models\MailSetting` accepted a free-text string without validation. Laravel copies the stored value into `mail.mailers.sendmail.path`, and Symfony's `SendmailTransport` passes it to `proc_open($command, ...)` as a shell command string. Any shell metacharacter in the value (e.g. `;`, `` ` ``, `$(...)`) therefore executed as a second command whenever the application sent mail via the sendmail transport.

A backend user holding `mail.settings` (but not superuser) could store a payload such as `/usr/sbin/sendmail -t; /bin/touch /tmp/pwn; #` and trigger execution by any code path that sends mail (password restore, notifications, etc.). The `-t` prefix satisfied Symfony's internal argument check; the injected command ran as the PHP process user.

Impact
  • OS command execution as the PHP process user when the sendmail transport is invoked
  • Reachable by any backend user holding `mail.settings` on installations where `backend.force_mail_setting` is left at its default of `false`
  • No exposure on installations that force mail configuration via server-side config (`backend.force_mail_setting = true`)
Patches

The vulnerability has been patched in v4.3.5. `MailSetting` now validates `sendmail_path` against a regex that rejects shell metacharacters (`;`, `&`, `|`, `` ` ``, `$`, `(`, `)`, `<`, `>`, newlines, backslash) before save. Legitimate values like `/usr/sbin/sendmail -bs` continue to pass.

Workarounds

If upgrading immediately is not possible:
- Set `backend.force_mail_setting = true` and configure the mail transport in server-side config
- Revoke `mail.settings` from all non-super-user roles
- Review the current stored value of `sendmail_path` in `system_settings` for unexpected metacharacters

References
  • Reported by CodingRule
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:L
BajaAlta
PrivilegiosPR:H
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:L
AltoBajoNinguno
IntegridadI:L
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida
october/system≥ 4.3.0 < 4.3.4
4.3.0
4.3.4
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
Packagistoctober/system
Corregida 4.3.4 — —
Versiones corregidas4.3.4
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-wjf7-8r24-63wr

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