Security Resilience

CVE-2025-59689

Command Injection in Libraesva Email Security Gateway 4.5 – 5.0.31

CISA KEVActive ExploitationEUVD ExploitedCommand Injection
Published
19 September 2025
Modified
05 November 2025
KEV Added
29 September 2025
Patch / advisory
CVSS Score v3.1 6.1
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS Score 0.020 81th percentile
Risk Priority 75 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2025-59689 is a medium-severity Command Injection (CWE-77) vulnerability in Libraesva Email Security Gateway. Its CVSS base score is 6.1 (Medium).

Operationally, ranked in the top 19% of CVEs by exploit likelihood; CISA has added it to the Known Exploited Vulnerabilities catalog.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SI-10 (Information Input Validation) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2025-59689 is a command injection vulnerability (CWE-77) in Libraesva ESG versions 4.5 through 5.5.x prior to 5.5.7. The issue arises from inadequate handling of compressed email attachments, enabling attackers to inject and execute arbitrary commands on the affected system.

A remote unauthenticated attacker can exploit this vulnerability over the network with low complexity by sending a malicious compressed email attachment to a target running a vulnerable ESG instance. Exploitation requires user interaction, such as processing or scanning the attachment, after which the attacker gains low-level confidentiality and integrity impacts with a changed scope, as reflected in the CVSS v3.1 base score of 6.1 (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).

Libraesva advisories detail patches for affected branches: version 5.0.31 for ESG 5.0, 5.1.20 for 5.1, 5.2.31 for 5.2, 5.4.8 for 5.4, and 5.5.7 for 5.5. Security teams should apply these updates immediately and review the vendor's knowledgebase advisory at https://docs.libraesva.com/knowledgebase/security-advisory-command-injection-vulnerability-cve-2025-59689/ and security blog at https://www.libraesva.com/security-blog/ for implementation guidance.

The vulnerability appears in CISA's Known Exploited Vulnerabilities Catalog (https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-59689), indicating active real-world exploitation.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)
KEV Date Added
29 September 2025

Related Threats

CVEs Like This One

CVE-2023-1671Shared CWE-77both on KEV
CVE-2022-40765Shared CWE-77both on KEV
CVE-2026-8037Shared CWE-77both on KEV
CVE-2024-12356Shared CWE-77both on KEV
CVE-2015-2051Shared CWE-77both on KEV
CVE-2026-22719Shared CWE-77both on KEV
CVE-2016-3081Shared CWE-77both on KEV
CVE-2019-0541Shared CWE-77both on KEV
CVE-2017-6327Shared CWE-77both on KEV
CVE-2010-5330Shared CWE-77both on KEV

Affected Assets

libraesva
email security gateway
4.5 — 5.0.31 · 5.1.0 — 5.1.20 · 5.2.0 — 5.2.31

Mitigating Controls

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Developer testing and evaluation can discover command-construction flaws before deployment.

Input validation directly stops construction of commands from untrusted data containing special elements.

Secure engineering principles include proper neutralization and safe command construction practices.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing in development catches command-injection vulnerabilities before release.

prevents

Secure coding standards require proper escaping and parameterization of commands, directly eliminating CWE-77.

Hardening callouts derived

DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.

  • No fine-grained STIG row for CWE-77, a class-level weakness, and none of its children carries one either.

References