Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessConnect to SMTP/POP3/IMAP listener
-
DeliverySend logon naming existing active account
-
ExploitSupply password with backslash-apostrophe
-
ExecutionBreak out of JScript string literal
-
PersistInstantiate WScript.Shell COM object
-
ImpactExecute commands as service account
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Eval input sanitization
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a specific non-default hMailServer configuration on Windows: (1) event scripting must be enabled (disabled by default); (2) the script language must be set to JScript (the default is VBScript, which is NOT vulnerable); and (3) at least one relevant handler must be defined - OnClientValidatePassword (reachable via SMTP AUTH/POP3/IMAP logon naming an existing active account), OnExternalAccountDownload (reachable via a malicious remote POP3 server's message UID), or OnDeliveryFailed (reachable via a malicious remote SMTP server's rejection reply). The injection payload is a password/field value containing a backslash immediately followed by an apostrophe. Limiting factors: default deployments (VBScript, scripting off) are entirely unaffected; Linux builds of hMailServer are unaffected; from version 6.2.25 arbitrary COM object creation depends on the default ScriptAllowedObjects value of '*'. Once conditions are met, no authentication or valid password is needed - only the name of an existing active account. |
| Impact | The vendor CVSS of 9.8 (AV:N/AC:L/PR:N/UI:N, C:H/I:H/A:H) presents this as a trivially exploitable pre-auth RCE, but that score materially overstates real-world risk because it does not model the non-default configuration the description explicitly requires. All three preconditions must hold simultaneously: event scripting enabled (OFF by default), the script language switched to JScript (default is VBScript, which is NOT affected), and a relevant handler (OnClientValidatePassword, OnExternalAccountDownload, or OnDeliveryFailed) actually defined. Where those hold, the flaw is genuinely severe - a remote unauthenticated attacker who merely names an existing active account can achieve arbitrary command execution as the service account via WScript.Shell. No EPSS score, KEV listing, or SSVC decision data was provided, and no public exploit was identified at time of analysis, so there is no evidence of active or automatable exploitation. Net: a real high-severity issue for the narrow slice of JScript-scripting deployments, but for the default-configured majority (VBScript, scripting off) it is not exploitable at all - closer to a conditional-high than a blanket-critical. The vendor vector's AC:L is the key point of disagreement: the layered non-default prerequisites are better reflected as increased complexity/attack requirements. |
| Exploit ScenarioDerived | An attacker connects to a vulnerable hMailServer over SMTP AUTH, POP3, or IMAP and issues a logon for a known active mailbox using a password containing a backslash followed by an apostrophe. On a server configured with JScript event scripting and an OnClientValidatePassword handler, the crafted value breaks out of the JScript string literal and the remainder is parsed as script, letting the attacker instantiate WScript.Shell and run OS commands as the service account. No public exploit code was identified at time of analysis, though the commit fix and release notes describe the mechanics precisely. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 27, 2026
Arbitrary JScript execution in Progressive Robot Ltd's hMailServer 6.0.0 through 6.3.3 on Windows lets an unauthenticated, remote attacker run attacker-controlled code inside the hMailServer service process with the service account's privileges by sending a password containing a backslash immediately followed by an apostrophe in any SMTP AUTH, POP3, or IMAP logon that names an existing active account. The flaw is only reachable in a non-default configuration - event scripting enabled (off by default), the script language set to JScript (default is the unaffected VBScript), and a relevant handler (OnClientValidatePassword, OnExternalAccountDownload, or OnDeliveryFailed) defined - and equivalent paths exist through a malicious remote POP3 server's message UID or a malicious remote SMTP server's rejection reply. The vendor's CVSS of 9.8/AV:N/AC:L understates the practical barrier because it does not model those required non-default settings; our assessed vector is AV:N/AC:H/PR:N/UI:N, no public exploit has been identified at time of analysis, and the vendor-released patch is version 6.3.4.
RemediationAI
Upgrade to hMailServer v6.3.4, the vendor-released patch (https://gitlab.com/Progressiverobot/hmailserver/-/releases/v6.3.4; fix commit 5a3de9001d6c5e833662ada8e44ce10d42d76b1a). Where upgrading immediately is not possible, the most effective compensating control is to turn event scripting off entirely in hMailServer Administrator (Settings > Advanced > Scripts) - this eliminates all three reachable handlers, though it disables any legitimate automation built on event scripts; leave it disabled if you do not actively rely on it, since it is off by default. If scripting must remain enabled, set the script language to VBScript rather than JScript (VBScript is not affected by this injection), and audit the event script to remove or disable OnClientValidatePassword, OnExternalAccountDownload, and OnDeliveryFailed handlers you are not using - the trade-off is loss of password-validation, external-account, and delivery-failure automation respectively. On versions 6.2.25 and later, also narrow the ScriptAllowedObjects setting so it no longer uses the default '*' wildcard, restricting script access to the specific COM objects your scripts require; note this can break existing scripts that depend on other objects. Additionally, run the hMailServer service under a least-privilege dedicated account rather than a highly privileged one, which does not remove the vulnerability but limits the blast radius of command execution via WScript.Shell, and restrict network reachability of SMTP AUTH, POP3, and IMAP to trusted clients where operationally feasible - this reduces exposure but does not address the POP3/SMTP peer-triggered vectors (OnExternalAccountDownload, OnDeliveryFailed) that originate from remote mail servers you fetch from or receive from.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-95 (improper neutralization of directives in dynamically evaluated code, i.e. eval injection) in hMailServer's event-script dispatcher on Windows. When event scripting is enabled and configured for JScript, the server calls user-defined event handlers with event-supplied values inlined as JScript string literals; the escaping routine escaped the apostrophe delimiter but not the backslash, so a value containing "\'" terminates the literal early and the remainder of the value is parsed as JScript code executed inside the service process. The injection surface is not limited to credentials: with an OnExternalAccountDownload handler, a malicious remote POP3 server can inject via the message UID it returns, and with an OnDeliveryFailed handler, a malicious remote SMTP server can inject via the error text of a rejected delivery. Any code executed this way runs with the hMailServer service account's rights, and the script can instantiate COM objects - before 6.2.25 any COM object, and from 6.2.25 onward any object permitted by the default ScriptAllowedObjects value of '*'. WScript.Shell is the classic lever that converts this into full command execution. The described flaw is Windows-specific and tied to the JScript engine; VBScript event scripts and the Linux builds of hMailServer are not affected, and the CPE cpe:2.3:a:progressive_robot_ltd:hmailserver:*:*:*:*:*:*:*:* reflects the broad affected version space.
Know when Hmailserver gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Remote and unauthenticated (AV:N/PR:N), but AC:H because three stacked non-default configuration prerequisites must be present; RCE as service account yields C:H/I:H/A:H.
Primary rating from Vendor (GitLab).
CVSS VectorVendor: GitLab
Lifecycle Timeline
2DescriptionCVE.org
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.
Articles & Coverage 1
Technical POC Analysis
The vulnerable component is hMailServer's JScript event-script dispatcher.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
hMailServer versions 6.0.0 through 6.3.3, a Windows mail server platform, carry a critical remote code execution flaw that allows an outside party to run attacker-controlled code inside the mail service process under the service account's privileges. Exploitation is unauthenticated over the network and requires no public exploit identified at time of analysis, but it is only achievable where administrators have enabled the non-default combination of event scripting, JScript as the script language, and one of three specific event handlers. Organizations running customized or integration-heavy hMailServer deployments are the ones at risk of mail data exposure, service-account compromise, and lateral movement into the surrounding Windows environment.
No vendor patch is available, so interim mitigation is configuration-based: disable event scripting entirely (the vulnerability is unreachable with scripting off), or if scripting is required, set the script language to VBScript instead of JScript and remove or avoid defining the OnClientValidatePassword, OnExternalAccountDownload, and OnDeliveryFailed handlers. Additionally, restrict SMTP AUTH, POP3, and IMAP access to trusted networks, block connections to untrusted external POP3 and SMTP servers, lower the privileges of the hMailServer service account, and monitor the service process for unexpected script or child-process activity.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
More in Hmailserver
View allSQL injection in the database layer of hMailServer 6.0.0-B1 through 6.2.18 allows a remote attacker to alter the SQL sta
Cross-tenant configuration takeover in hMailServer 6.0.0 through 6.3.6 lets an authenticated user holding only a domain-
Cross-site scripting in Progressive Robot hMailServer 6.3.2 through 6.3.5 can let a remote, unauthenticated attacker exe
Local privilege escalation in Progressive Robot hMailServer 6.2.3 through 6.3.7 on Windows allows an authenticated local
Local privilege escalation in the Windows installer of Progressive Robot hMailServer 6.0.0 through 6.3.7 lets a local au
Incorrect authorization in the COM administration API of hMailServer 6.3.4 through 6.3.6 lets a credential holding the s
Local privilege escalation in Progressive Robot hMailServer 6.0.0 through 6.3.6 allows any authenticated, non-administra
Incorrect default permissions in the Windows installer for Progressive Robot hMailServer 6.0.0 through 6.3.5 let any loc
Heap-based buffer overflow in hMailServer 6.0.0 through 6.3.3 on Windows lets a local interactive user - with no hMailSe
Local privilege escalation in hMailServer 6.0.0 through 6.3.5 on Windows allows an authenticated local user-one with an
Local privilege escalation in Progressive Robot hMailServer 6.3.4 and 6.3.5 on Linux allows an attacker who already has
Crafted JSON member names drive quadratic parsing time in hMailServer 6.3.6 and 6.3.7, allowing remote attackers to pin
EUVD-2026-87904
GHSA-v6j4-p35g-mq6p
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB