CVE-2025-59689: Command Injection in Libraesva Email Security Gateway
- Vendor
- Libraesva
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.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
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.
Mitigation
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.
Remediation
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.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2025-59689 exploited in the wild?
- Yes. As of Oct 21, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Sep 29, 2025.
- Is there a public exploit for CVE-2025-59689?
- As of Oct 21, 2026, Mallory has found no public exploit for CVE-2025-59689.
- Is there a patch for CVE-2025-59689?
- 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.
- What products are affected by CVE-2025-59689?
- Libraesva Email Security Gateway.
- How severe is CVE-2025-59689?
- CVE-2025-59689 has a CVSS v3.1 score of 6.1 (Medium) and an EPSS score of 2.0% (81st percentile) as of Oct 21, 2026.
Recent activity
58 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.