← Biblioteca de vulnerabilidades

CVE-2026-100741

Inyección de código en hMailServer

Crítica9.8Publicada 27 de sept de 2026 · Actualizada 29 de sept de 2026

En resumen

Un atacante remoto, sin usuario ni contraseña, podría tomar el control del sistema afectado sin que nadie haga nada.

Cómo se ataca

  • Se puede atacar por la red, incluso desde internet si el servicio está expuesto.
  • No requiere condiciones especiales: el ataque se puede repetir de forma confiable.
  • No necesita usuario ni contraseña.
  • No necesita que nadie haga nada: ni abrir un archivo ni hacer clic.

Qué puede lograr el atacante

  • Leer información confidencial: datos, archivos o credenciales.
  • Modificar información o el sistema; en los casos graves, ejecutar sus propios programas.
  • Dejar el servicio o el equipo sin funcionar.

Cómo corregirla

  1. Revise si usa alguno de los productos y versiones de la lista «A qué afecta».
  2. Aplique la actualización o la mitigación que indica el fabricante.
  3. Si no puede actualizar ya, reduzca la exposición: que el servicio no sea accesible desde internet, o desactive la función afectada.
  4. Como pudo explotarse antes de corregirla, revise los registros del equipo en busca de accesos o cambios extraños.

Recomendaciones para este tipo de fallo

  • No evaluar texto del usuario como código ni como plantilla; pasarlo siempre como dato a una plantilla fija.
  • Usar el modo seguro (sandbox) del motor de plantillas o de expresiones si existe.
  • Aplicar los parches del fabricante: muchas de estas fallas están en frameworks.

A qué afecta

  • Progressive Robot Ltd · hMailServer

    desde 6.0.0 hasta antes de 6.3.4

Qué es: Inyección de código

El programa evalúa como código algo que viene del usuario (eval, plantillas, expresiones), y el atacante ejecuta su propio código dentro de la aplicación.

Funciones como eval(), motores de plantillas (Jinja, Twig, Freemarker, Velocity) o lenguajes de expresiones (OGNL, SpEL, EL) interpretan texto como código. Si un dato del usuario llega ahí, el atacante ejecuta instrucciones con los permisos de la aplicación, lo que casi siempre termina en control del servidor.

Guía completa: dónde aparece, cómo se corrige y qué evitar

Descripción oficial (en inglés)

Eval injection in the JScript event-script dispatcher in Progressive Robot Ltd's hMailServer, versions 6.0.0 through 6.3.3 on Windows, allows a remote, unauthenticated attacker to run arbitrary JScript inside the hMailServer service process, with the privileges of the service account, via a password containing a backslash followed by an apostrophe, sent in any logon (SMTP AUTH, POP3, IMAP) that names an existing, active account. Exploitation requires a non-default configuration: event scripting enabled (off by default), the script language set to JScript (the default is VBScript), and an OnClientValidatePassword handler defined in the event script. The server wrote event values into the handler call as JScript string literals, escaping the apostrophe but not the backslash, so such a value closes the literal and the rest of it is parsed as script. The same flaw is reachable by a remote POP3 server through the message UID it returns, where an OnExternalAccountDownload handler is defined, and by a remote SMTP server through the error reply it rejects a delivery with, where an OnDeliveryFailed handler is defined. Before 6.2.25 the injected script can create any COM object, and from 6.2.25 it can with the default ScriptAllowedObjects value of '*'; WScript.Shell among them gives command execution as the service account. VBScript event scripts and the Linux builds of Progressive Robot Ltd's hMailServer are not affected.