---
id: "CVE-2025-59689"
kind: "vulnerability"
aliases: ["CVE-2025-59689"]
title: "libraesva email security gateway: Libraesva ESG 4.5 through 5.5.x before 5.5.7 allows command injection via a compressed e-mail attachment"
severity: "medium"
cvss: 6.1
epss: null
exploited: true
status: "open"
category: "vendor"
products: [{"name": "libraesva email security gateway", "fixed": ["5.0.31"], "affected": ">= 4.5, < 5.0.31", "ecosystem": "vendor"}, {"name": "libraesva email security gateway", "fixed": ["5.1.20"], "affected": ">= 5.1.0, < 5.1.20", "ecosystem": "vendor"}, {"name": "libraesva email security gateway", "fixed": ["5.2.31"], "affected": ">= 5.2.0, < 5.2.31", "ecosystem": "vendor"}, {"name": "libraesva email security gateway", "fixed": ["5.3.16"], "affected": ">= 5.3.0, < 5.3.16", "ecosystem": "vendor"}, {"name": "libraesva email security gateway", "fixed": ["5.4.8"], "affected": ">= 5.4.0, < 5.4.8", "ecosystem": "vendor"}, {"name": "libraesva email security gateway", "fixed": ["5.5.7"], "affected": ">= 5.5.0, < 5.5.7", "ecosystem": "vendor"}, {"name": "Libraesva Email Security Gateway", "fixed": [], "affected": "", "ecosystem": "vendor"}]
ecosystems: ["vendor"]
tags: ["email-security", "exploited", "libraesva", "self-hosted", "vendor"]
not_affected_if: ["unknown"]
published_at: "2025-09-19T20:15:40+00:00"
first_seen_at: "2026-10-23T19:11:51+00:00"
updated_at: "2026-10-24T00:09:50+00:00"
sources: [{"source": "kev", "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2025-59689", "first_seen_at": "2026-10-23T19:11:51+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-59689", "first_seen_at": "2026-10-23T23:44:51+00:00"}]
---

# libraesva email security gateway: Libraesva ESG 4.5 through 5.5.x before 5.5.7 allows command injection via a compressed e-mail attachment

Libraesva Email Security Gateway contains a command injection flaw triggered by a compressed email attachment. An attacker who sends a crafted attachment can run operating system commands on the gateway.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- vendor:libraesva email security gateway affected >= 4.5, < 5.0.31 fixed 5.0.31
- vendor:libraesva email security gateway affected >= 5.1.0, < 5.1.20 fixed 5.1.20
- vendor:libraesva email security gateway affected >= 5.2.0, < 5.2.31 fixed 5.2.31
- vendor:libraesva email security gateway affected >= 5.3.0, < 5.3.16 fixed 5.3.16
- vendor:libraesva email security gateway affected >= 5.4.0, < 5.4.8 fixed 5.4.8
- vendor:libraesva email security gateway affected >= 5.5.0, < 5.5.7 fixed 5.5.7
- vendor:Libraesva Email Security Gateway affected ? fixed ?

## Fix

Apply the mitigations from the vendor per CISA guidance; the sources do not name a fixed version.

## Timeline

- 2026-10-23T19:11:51+00:00 kev https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2025-59689
- 2026-10-23T23:44:51+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2025-59689

## From the sources

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.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
