A critical command injection vulnerability in Libraesva Email Security Gateway (ESG) has been confirmed under CVE-2025-59689, exposing installations to arbitrary code execution via specially crafted compressed email attachments.
The flaw stems from improper sanitization of active code removal routines in archive formats, enabling non-privileged shell commands to run on affected appliances.
With one confirmed state-sponsored exploitation, organizations must verify remediation status and ensure timely upgrades.
Vulnerability Details and Impact
Libraesva ESG versions 4.5 and later are impacted by this command injection flaw.
An attacker can trigger the vulnerability by sending a maliciously crafted compressed archive via email; specific formats bypass the sanitization logic when active code is stripped from contained files.
After successful exploitation, arbitrary shell commands execute under a non-privileged user context, potentially allowing attackers to pivot within the compromised network or exfiltrate data.
One confirmed incident involving a foreign hostile state actor highlights the real-world danger of CVE-2025-59689.
Affected Versions and Remediation
All ESG 5.x installations received an emergency patch through the automatic updates channel. Remediation releases include:
- 5.0.31
- 5.1.20
- 5.2.31
- 5.3.16
- 5.4.8
- 5.5.7
Versions before 5.0 have reached End of Support and require a manual upgrade to a supported release.
Cloud customers have been automatically upgraded, while on-premise customers can verify patch status via the admin dashboard.
Organizations running 4.x appliances must follow the migration guide to upgrade to ESG 5.x and regain automatic updates.
Timeline and Threat Landscape
The vulnerability was discovered and patched within 17 hours, underscoring Libraesva’s rapid response capabilities.
The emergency patch not only corrects the sanitization flaw but also introduces an automated IoC scan and a self-assessment module on every appliance to confirm patch integrity and detect lingering threats.
This precision in remediation reflects the targeted nature of the attack and the necessity for swift, comprehensive defense measures.
Table: CVE Overview for Libraesva ESG Vulnerability
| CVE Identifier | Vulnerability Type | Affected Versions | Patch Versions | CVSS Score |
|---|---|---|---|---|
| CVE-2025-59689 | Command Injection | 4.5–5.5.x | 5.0.31, 5.1.20, | TBD |
| (4.x EOS – manual upgrade) | 5.2.31, 5.3.16, | |||
| 5.4.8, 5.5.7 |
Organizations should validate their ESG installations and apply the available automated updates immediately.
Ensuring the latest patched version is critical to prevent exploitation, given the confirmed state-sponsored activity.
Continuous monitoring, combined with patch integrity verification, will help maintain robust protection against emerging command injection threats.
Find this Story Interesting! Follow us on Google News, LinkedIn, and X to Get More Instant Updates