The HMailServer Exploit: A Deep Dive into the GitHub Vulnerability
Local Information Disclosure (CVE-2025-52372):A local attacker can obtain sensitive information from components like hMailServerInnoExtension.iss and hMailServer.ini in v5.8.6. More details and advisories can be found on the NVD CVE-2025-52372 page and related GitHub Advisories. Remote Code Execution (RCE) Research:
According to the repository, the exploit works by sending a specially crafted HTTP request to the Hmailserver web interface. The request contains a malicious payload that is executed on the server, allowing the attacker to gain remote access.
The hMailServer project is maintained by a small team (primarily developer Martin Knafve). While they respond to CVEs quickly, the delay between a patch release and widespread admin adoption is where GitHub exploits flourish.
for the C# source code demonstrating the decryption exploit. hMailServer's GitHub Issue tracker
PoC snippet (conceptual):
encryption with non-secret keys, which was intended only to prevent "over-the-shoulder" viewing rather than robust security.