Authenticated code execution via certificate stream deserialization
Published Apr 28, 2025 · Updated Nov 19, 2025
Unsafe .NET deserialization in GFI MailEssentials before 21.8 allows remote authenticated users to execute arbitrary code during Multi-Server joining. InstallClientCertificate copies the supplied certificate stream into memory and passes it to BinaryFormatter.Deserialize without type restrictions. Any successfully authenticated domain or local account can reach the service because the method performs no administrator authorization check, resulting in code execution on the receiving server.
Summary
What happened
Unsafe .NET deserialization in GFI MailEssentials before 21.8 allows remote authenticated users to execute arbitrary code during Multi-Server joining. InstallClientCertificate copies the supplied certificate stream into memory and passes it to BinaryFormatter.Deserialize without type restrictions. Any successfully authenticated domain or local account can reach the service because the method performs no administrator authorization check, resulting in code execution on the receiving server.
The record
- CVE
- CVE-2025-34491
- Published
- Apr 28, 2025
- Updated
- Nov 19, 2025
- Vendor
- GFI Software
- Product
- GFI MailEssentials
- Classifications
- CWE-502, T1190
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Apr 28, 2025CVE publishedPublication date reported by the CVE source.
- Nov 19, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <21.8
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- GFI MailEssentials Multi-Server BinaryFormatter demonstrationfunctional · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo