Skip to main content

hMailServer CVE-2026-100741

| EUVDEUVD-2026-87904 CRITICAL
Eval Injection (CWE-95)
2026-09-27 GitLab GHSA-v6j4-p35g-mq6p
9.8
CVSS 3.1 · Vendor: GitLab
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Connect to SMTP/POP3/IMAP listener
  2. Delivery
    Send logon naming existing active account
  3. Exploit
    Supply password with backslash-apostrophe
  4. Execution
    Break out of JScript string literal
  5. Persist
    Instantiate WScript.Shell COM object
  6. Impact
    Execute 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
1 PoC candidate (unverified) Patch available 1.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

hMailServer 6.0.0 <6.3.4

Affected Packages

euvd hmailserver fix: 6.3.4

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

Vendor (GitLab) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.1 HIGH

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitLab).

CVSS VectorVendor: GitLab

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Sep 27, 2026 - 08:15 EUVD
CVE Published
Sep 27, 2026 - 07:12 cve.org
CRITICAL 9.8

DescriptionCVE.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.

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
1.7%
Top 23% exploitable
Prevalence
Medium
popular free open-source Windows mail server, common but not enterprise-ubiquitous
Social Media
6
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 1.7%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

71
Low Medium High Critical
KEV: 0
EPSS: +2
CVSS: +49
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

CVE-2026-126617 HIGH
8.8 Nov 11

SQL injection in the database layer of hMailServer 6.0.0-B1 through 6.2.18 allows a remote attacker to alter the SQL sta

CVE-2026-114489 HIGH
8.1 Oct 21

Cross-tenant configuration takeover in hMailServer 6.0.0 through 6.3.6 lets an authenticated user holding only a domain-

CVE-2026-103647 HIGH
8.0 Oct 08

Cross-site scripting in Progressive Robot hMailServer 6.3.2 through 6.3.5 can let a remote, unauthenticated attacker exe

CVE-2026-126607 HIGH
7.8 Nov 11

Local privilege escalation in Progressive Robot hMailServer 6.2.3 through 6.3.7 on Windows allows an authenticated local

CVE-2026-126612 HIGH
7.8 Nov 11

Local privilege escalation in the Windows installer of Progressive Robot hMailServer 6.0.0 through 6.3.7 lets a local au

CVE-2026-114490 HIGH
7.8 Oct 21

Incorrect authorization in the COM administration API of hMailServer 6.3.4 through 6.3.6 lets a credential holding the s

CVE-2026-107571 HIGH
7.8 Oct 19

Local privilege escalation in Progressive Robot hMailServer 6.0.0 through 6.3.6 allows any authenticated, non-administra

CVE-2026-107573 HIGH
7.8 Oct 08

Incorrect default permissions in the Windows installer for Progressive Robot hMailServer 6.0.0 through 6.3.5 let any loc

CVE-2026-103010 HIGH
7.8 Oct 08

Heap-based buffer overflow in hMailServer 6.0.0 through 6.3.3 on Windows lets a local interactive user - with no hMailSe

CVE-2026-104660 HIGH
7.8 Oct 08

Local privilege escalation in hMailServer 6.0.0 through 6.3.5 on Windows allows an authenticated local user-one with an

CVE-2026-104658 HIGH
7.8 Oct 08

Local privilege escalation in Progressive Robot hMailServer 6.3.4 and 6.3.5 on Linux allows an attacker who already has

CVE-2026-126623 HIGH
7.5 Nov 11

Crafted JSON member names drive quadratic parsing time in hMailServer 6.3.6 and 6.3.7, allowing remote attackers to pin

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy