CVE-2025-59689
CONFIRMED EXPLOITEDLibraesva Email Security Gateway Command Injection Vulnerability
Is Libraesva Email Security Gateway affected by CVE-2025-59689?
Libraesva Email Security Gateway is listed in the CISA Known Exploited Vulnerabilities catalog for CVE-2025-59689, added on 2025-09-29. CISA only adds a CVE once it has evidence of exploitation in the wild, so the patching question is not whether it can be attacked but how soon your instances must be updated.
Affected products published by NIST NVD (6 vulnerable CPE entries): libraesva email_security_gateway.
Published CPE version bounds mark releases below 5.5.7 as vulnerable. Those bounds describe what is affected, not what patches it: upgrade to the fixed release named in the vendor advisory below, then confirm the installed version with your package manager or scanner.
The CISA remediation deadline for this entry is 2025-10-20.
RELATED VULNERABILITY DOSSIERS
Other catalog entries that share this product, vendor, or weakness, or that sit next to this advisory in the CISA KEV timeline.
- CVE-2026-116779Shared weaknessSignalWire FreeSwitch
SignalWire FreeSwitch Code Injection Vulnerability
- CVE-2026-105134Shared weaknessAhsay AhsayCBS
Ahsay AhsayCBS Command Injection Vulnerability
- CVE-2026-96951Shared weaknessMicrosoft Windows
Microsoft Windows Command Injection Vulnerability
- CVE-2016-3081Shared weaknessApache Struts
Apache Struts Command Injection Vulnerability
- CVE-2025-32463Neighboring entrySudo Sudo
Sudo Inclusion of Functionality from Untrusted Control Sphere Vulnerability
- CVE-2014-6278Neighboring entryGNU GNU Bash
GNU Bash OS Command Injection Vulnerability
1. VULNERABILITY OVERVIEW & TECHNICAL MECHANISM
Libraesva Email Security Gateway (ESG) contains a command injection vulnerability which allows command injection via a compressed e-mail attachment.
Get Stack Watch email when a KEV hits your stack ($99/year or $12/month)
Libraesva ESG 4.5 through 5.5.x before 5.5.7 allows command injection via a compressed e-mail attachment. For ESG 5.0 a fix has been released in 5.0.31. For ESG 5.1 a fix has been released in 5.1.20. For ESG 5.2 a fix has been released in 5.2.31. For ESG 5.4 a fix has been released in 5.4.8. For ESG 5.5. a fix has been released in 5.5.7.
2. AFFECTED VERSIONS, PRODUCTS & VERIFIED CPE CONFIGURATIONS
3. EXPLOITATION EVIDENCE, IMPACT & HOW TO DETECT IT
This vulnerability was added to the CISA Known Exploited Vulnerabilities (KEV) catalog on 2025-09-29. Inclusion in KEV requires verified evidence of active exploitation in the wild. Known ransomware campaign use is recorded by CISA as: "Unknown".
Note: KEV inclusion confirms that threat actors have exploited this flaw in real-world incidents; it does not imply every deployment of Email Security Gateway has been compromised.
- Scope Change (S:C) in CVSS vector: exploitation can cross trust boundaries beyond the vulnerable component itself (e.g., container/sandbox/hypervisor escape or downstream host impact).
- Client / parser surface (Libraesva Email Security Gateway): exploitation typically involves rendering crafted web content, documents, or media. Monitor endpoint EDR / process trees for sandbox escapes, unexpected child processes spawned by client applications, and anomalous outbound connections (`Zeek dns.log`, `conn.log`).
- Command/Argument Injection class (CWE-77/78/88): monitor process trees for `/bin/sh`, `bash`, `cmd.exe`, `powershell`, `curl`, or `wget` spawned as child processes of the service daemon.
- Inventory all hosts running Libraesva Email Security Gateway and compare installed package/build versions against the NVD CPE configurations and vendor advisory below.
4. FIXED VERSION, MITIGATIONS & OFFICIAL ADVISORY CITATIONS
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
SCORING & VECTOR TELEMETRY
NIST NVD score not yet provided. Score attributed to MITRE (cve@mitre.org, Secondary / CNA assessment distributed via NVD).
EPSS estimates the statistical probability of exploitation activity in the next 30 days—it is not proof of confirmed exploitation.
RELEVANT DEFENSIVE TOOLS
Curated open-source defensive and verification utilities from The Loot applicable to this asset class:
Endpoint visibility, digital forensics, and incident response (DFIR) platform
Network security monitoring (NSM) and protocol metadata extraction framework
Multi-threaded IDS, IPS, and network security monitoring engine
VirusTotal's memory-safe Rust rewrite of YARA for binary & implant hunting