Command Injection in Libraesva Email Security Gateway
CVE-2025-59689 is an operating system command injection vulnerability in Libraesva Email Security Gateway (ESG), affecting releases from 4.5 through unpatched 5.5.x versions. Improper sanitization during removal of active code from files within certain compressed archive formats allows a specially crafted email attachment to bypass sanitization and trigger arbitrary shell command execution as a non-privileged user. The vulnerability has been exploited in the wild and is listed in CISA's Known Exploited Vulnerabilities Catalog.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation enables remote execution of arbitrary shell commands with the permissions of a non-privileged account on the email gateway. This compromises the integrity of the gateway and exposes resources accessible to that account. Further system compromise may be possible, but privilege escalation or root access is not established as a direct consequence of this vulnerability.
If you can’t patch tonight, do this now.
No vendor-specific workaround is identified. Follow Libraesva security guidance and apply the security update; compensating controls are not established as an equivalent substitute for patching.
Patch, then assume compromise.
Upgrade to the fixed release for the installed branch: ESG 5.0.31, 5.1.20, 5.2.31, 5.3.16, 5.4.8, or 5.5.7, or a later supported release containing the fix. ESG 4.x is end-of-life and has no fix; migrate affected 4.x installations to a supported, patched release. Prioritize remediation because exploitation is confirmed.
No public exploits tracked yet. Mallory keeps watching.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
58 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.