Skip to main content
Vulnerability Database/CVE-2026-103011

CVE-2026-103011: hMailServer Buffer Overflow Vulnerability

CVE-2026-103011 is a heap-based buffer overflow in hMailServer 6.0.0 through 6.3.5 affecting the Blowfish encryption routine. Attackers can trigger service crashes and potentially achieve code execution. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-103011 Overview

CVE-2026-103011 is a heap-based buffer overflow [CWE-122] in the legacy Blowfish encryption routine of Progressive Robot hMailServer 6. The flaw resides in BlowFishEncryptor::Encode, invoked by EncryptToString, and affects versions 6.0.0 through 6.3.5. An authenticated mailbox user can trigger a service crash, resulting in denial of service. In versions 6.3.4 and 6.3.5, the flaw is reachable remotely through the self-service REST API when enabled. On Windows, any local interactive user can trigger it through the unauthenticated COM method Utilities.BlowfishEncrypt.

Critical Impact

Authenticated remote attackers can crash the hMailServer service by submitting fetch account passwords of specific lengths through the personal data export endpoint.

Affected Products

  • Progressive Robot hMailServer 6.0.0 through 6.3.3 (local and stored-secret write paths)
  • Progressive Robot hMailServer 6.3.4 (remote path via self-service REST API)
  • Progressive Robot hMailServer 6.3.5 (remote path via self-service REST API)

Discovery Timeline

  • 2026-10-08 - CVE CVE-2026-103011 published to NVD
  • 2026-10-08 - Last updated in NVD database

Technical Details for CVE-2026-103011

Vulnerability Analysis

The vulnerability stems from a padding loop in BlowFishEncryptor::Encode that writes beyond the bounds of a 255-byte heap buffer. When the input password length falls between 129 and 247 characters and is not a multiple of 8, the padding logic writes up to 7 zero bytes between 2 and 232 bytes past the end of the allocated buffer. The returned ciphertext remains correct, so the condition can go unnoticed until the heap corruption manifests as a service crash. The CWE-122 classification reflects heap memory corruption rather than stack corruption.

Root Cause

The legacy Blowfish padding routine fails to validate that the padded output fits within the fixed 255-byte heap allocation. For inputs between 129 and 247 bytes that are not aligned to the 8-byte Blowfish block boundary, the loop overwrites adjacent heap memory with zero bytes. Secondary reachability conditions compound the exposure: the Windows COM method Utilities.BlowfishEncrypt performs no authentication checks, and every stored-secret write path is reachable when ProtectStoredSecretsWithDPAPI is set to 0.

Attack Vector

In versions 6.3.4 and 6.3.5 with the self-service REST API enabled, an authenticated mailbox user adds a fetch account with a password 129 to 247 characters long that is not a multiple of 8. The user then issues GET /api/v1/me/export.zip to request a personal data export. The export process encrypts the stored password with the legacy scheme, triggering the overflow. On Windows hosts, any local interactive user can invoke the COM method Utilities.BlowfishEncrypt directly without supplying hMailServer credentials. The self-service REST API is disabled by default, reducing default remote exposure.

The exploitation flow is described in the GitLab work item. See the hMailServer Work Item #49 for technical details.

Detection Methods for CVE-2026-103011

Indicators of Compromise

  • Unexpected crashes of the hMailServer.exe service process, particularly following requests to /api/v1/me/export.zip
  • Fetch account records containing passwords between 129 and 247 characters that are not multiples of 8
  • Local process activity invoking the Utilities.BlowfishEncrypt COM method on Windows hosts running hMailServer

Detection Strategies

  • Monitor Windows Application and System event logs for hMailServer service termination events and faulting module entries referencing the Blowfish routine
  • Inspect REST API access logs for authenticated GET /api/v1/me/export.zip requests correlated with fetch account creation events containing abnormally long passwords
  • Audit the hMailServer configuration for ProtectStoredSecretsWithDPAPI=0, which expands the set of reachable code paths

Monitoring Recommendations

  • Enable verbose logging on the hMailServer self-service REST API and forward logs to a centralized analytics platform
  • Track process crash telemetry on hosts running hMailServer and alert on repeated service restarts within short windows
  • Review COM activation events on Windows for calls to hMailServer utility interfaces from unexpected local users

How to Mitigate CVE-2026-103011

Immediate Actions Required

  • Upgrade to hMailServer 6.3.6 or later, which contains the fix for the padding overflow
  • Disable the self-service REST API on versions 6.3.4 and 6.3.5 until the upgrade is applied
  • Restrict local interactive logon on Windows hosts running hMailServer to administrative accounts only
  • Set ProtectStoredSecretsWithDPAPI=1 to reduce the number of code paths that reach the vulnerable routine

Patch Information

Progressive Robot released hMailServer 6.3.6 to address this vulnerability. Administrators should install the fixed release from the hMailServer Release v6.3.6 page. The release notes and work item describe the corrected padding behavior in BlowFishEncryptor::Encode.

Workarounds

  • Leave the self-service REST API disabled, which is the default configuration, until patching is complete
  • Enforce password length limits on fetch account creation to prevent values between 129 and 247 characters that are not multiples of 8
  • Audit and remove local user accounts that do not require interactive logon on the hMailServer host
bash
# Configuration example: ensure DPAPI protection is enabled in hMailServer.ini
[Security]
ProtectStoredSecretsWithDPAPI=1

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.