Description
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.
Published: 2026-09-27
Score: 9.8 Critical
EPSS: n/a
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

hMailServer versions 6.0.0 through 6.3.3 allow a remote, unauthenticated attacker to inject and execute arbitrary JScript in the service process. The vulnerability is triggered when the server processes a password containing a backslash followed by an apostrophe, which is not properly sanitized, allowing the injected script to terminate a string literal and be parsed as code. Depending on server configuration, the attacker can create or instantiate COM objects, including WScript.Shell, enabling execution of arbitrary commands under the service account. This can lead to full compromise of the email server.

Affected Systems

The affected product is Progressive Robot Ltd's hMailServer running on Windows. Vulnerable builds are 6.0.0 through 6.3.3 when event scripting is enabled, the script language is set to JScript, and at least one of the OnClientValidatePassword, OnExternalAccountDownload, or OnDeliveryFailed handlers is defined. VBScript event scripts and Linux builds are not affected.

Risk and Exploitability

The CVSS score of 9.8 classifies the flaw as critical. Current exploitation requires a non-default configuration: event scripting enabled, JScript chosen as language, and relevant handlers defined. Though EPSS is not reported, no known exploits are registered in KEV, but the high severity and network exposure via standard mail protocols (SMTP AUTH, POP3, IMAP) indicate a significant risk for unattended or improperly configured servers. Attackers could use standard login or protocol interactions to trigger the injection without authentication, making this vulnerability particularly dangerous for exposed mail services.

Generated by OpenCVE AI on September 27, 2026 at 08:20 UTC.

Remediation

Vendor Solution

Upgrade to hMailServer 6.3.4. Until then, write the event handlers in VBScript, or define no OnClientValidatePassword, OnExternalAccountDownload or OnDeliveryFailed handler in JScript.


OpenCVE Recommended Actions

  • Upgrade hMailServer to version 6.3.4 or later.
  • If an upgrade is not immediately feasible, disable event scripting globally to prevent the execution of any script.
  • If event scripting must remain enabled, change the script language from JScript to VBScript and remove any JScript-specific handlers such as OnClientValidatePassword, OnExternalAccountDownload, or OnDeliveryFailed.

Generated by OpenCVE AI on September 27, 2026 at 08:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 27 Sep 2026 07:30:00 +0000

Type Values Removed Values Added
Description 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.
Title Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in hMailServer
Weaknesses CWE-95
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitLab

Published:

Updated: 2026-09-27T07:12:54.503Z

Reserved: 2026-09-26T09:56:20.241Z

Link: CVE-2026-100741

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-27T08:16:26.813

Modified: 2026-09-27T08:16:26.813

Link: CVE-2026-100741

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-27T08:30:17Z

Weaknesses
  • CWE-95

    Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')