Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-59689

CVE-2025-59689: Libraesva Email Security Gateway RCE Flaw

CVE-2025-59689 is a remote code execution vulnerability in Libraesva Email Security Gateway allowing command injection through compressed email attachments. This article covers technical details, affected versions, and patches.

Published: March 11, 2026

CVE-2025-59689 Overview

CVE-2025-59689 is a command injection vulnerability affecting Libraesva Email Security Gateway (ESG) versions 4.5 through 5.5.x before 5.5.7. The vulnerability exists in the email attachment processing functionality, where specially crafted compressed e-mail attachments can be leveraged to execute arbitrary commands on the affected system. This represents a significant security risk for organizations relying on Libraesva ESG for email security filtering.

Critical Impact

This vulnerability is actively exploited in the wild and has been added to the CISA Known Exploited Vulnerabilities (KEV) catalog. Attackers can achieve command injection through malicious compressed email attachments, potentially compromising the email security gateway and gaining unauthorized access to the underlying system.

Affected Products

  • Libraesva Email Security Gateway version 4.5 through 5.0.x (before 5.0.31)
  • Libraesva Email Security Gateway version 5.1.x (before 5.1.20)
  • Libraesva Email Security Gateway version 5.2.x (before 5.2.31)
  • Libraesva Email Security Gateway version 5.4.x (before 5.4.8)
  • Libraesva Email Security Gateway version 5.5.x (before 5.5.7)

Discovery Timeline

  • September 19, 2025 - CVE-2025-59689 published to NVD
  • November 05, 2025 - Last updated in NVD database

Technical Details for CVE-2025-59689

Vulnerability Analysis

This command injection vulnerability (CWE-77) stems from improper neutralization of special elements used in a command when processing compressed email attachments. The Libraesva Email Security Gateway fails to adequately sanitize or validate input from compressed file contents before passing them to system shell commands for processing.

When the ESG processes email attachments, compressed files undergo extraction and analysis. The vulnerability lies in how the gateway handles filenames or content within these compressed archives. Malicious actors can craft compressed attachments containing specially formatted data that, when processed by the gateway, results in arbitrary command execution on the underlying operating system.

The network-accessible nature of the vulnerability means attackers can exploit it remotely by sending a malicious email to any address protected by the vulnerable gateway. No authentication is required on the attacker's part, though user interaction is needed for the attack to succeed.

Root Cause

The root cause of CVE-2025-59689 is improper input validation in the compressed attachment handling routines of the Libraesva ESG. Specifically, the application fails to properly sanitize shell metacharacters and command sequences contained within compressed archive contents before incorporating them into system command execution contexts. This allows attackers to break out of the intended command structure and inject arbitrary shell commands.

Attack Vector

The attack vector for CVE-2025-59689 involves sending a specially crafted email with a malicious compressed attachment to any recipient whose email is processed by the vulnerable Libraesva ESG. The attack flow is as follows:

  1. Attacker crafts a compressed file (e.g., ZIP, RAR, or similar) containing malicious command injection payloads within filenames or file metadata
  2. The malicious compressed file is attached to an email and sent to a target organization
  3. The Libraesva ESG intercepts the email for security scanning
  4. During attachment processing, the gateway extracts or analyzes the compressed file
  5. The malicious payload is passed unsanitized to a shell command
  6. Arbitrary commands execute with the privileges of the ESG service account

The vulnerability requires user interaction in the attack chain, which may involve the email being received and processed by the gateway's scanning mechanisms. For more technical details, refer to the Libraesva Security Advisory.

Detection Methods for CVE-2025-59689

Indicators of Compromise

  • Unusual process spawning from the Libraesva ESG service, particularly shell processes (/bin/sh, /bin/bash) with suspicious command-line arguments
  • Unexpected network connections originating from the email gateway server to external IP addresses
  • Presence of compressed email attachments with unusual or obfuscated filenames containing shell metacharacters (;, |, $(), backticks)
  • Abnormal file system activity or new files created in unexpected directories on the gateway server

Detection Strategies

  • Monitor email gateway logs for attachment processing errors or anomalies associated with compressed file handling
  • Implement network-based detection rules for emails containing compressed attachments with suspicious filename patterns
  • Deploy endpoint detection and response (EDR) solutions on the ESG server to identify and alert on command injection attempts
  • Review system command execution logs for unexpected shell activity correlating with email processing events

Monitoring Recommendations

  • Enable verbose logging on Libraesva ESG for attachment processing and archive extraction operations
  • Configure SIEM rules to correlate email receipt timestamps with unusual process execution on the gateway
  • Monitor for outbound connections from the ESG server that deviate from normal operational patterns
  • Implement file integrity monitoring on critical ESG directories and configuration files

How to Mitigate CVE-2025-59689

Immediate Actions Required

  • Immediately upgrade to the patched version corresponding to your ESG branch: 5.0.31, 5.1.20, 5.2.31, 5.4.8, or 5.5.7
  • If immediate patching is not possible, consider temporarily blocking or quarantining emails with compressed attachments pending update deployment
  • Review gateway logs for evidence of exploitation attempts and investigate any suspicious activity
  • Ensure the ESG server is segmented from critical internal networks to limit lateral movement potential

Patch Information

Libraesva has released security patches addressing CVE-2025-59689 across all affected version branches. Organizations should apply the appropriate patch based on their current ESG version:

Current VersionPatched Version
ESG 5.0.x5.0.31
ESG 5.1.x5.1.20
ESG 5.2.x5.2.31
ESG 5.4.x5.4.8
ESG 5.5.x5.5.7

For detailed patch information and upgrade instructions, consult the Libraesva Security Advisory and the Libraesva Security Blog.

Workarounds

  • Implement upstream email filtering to strip or quarantine compressed attachments before they reach the vulnerable ESG
  • Configure network-level controls to restrict outbound connections from the ESG server, limiting the impact of successful exploitation
  • Deploy Web Application Firewall (WAF) or email security gateway rules to detect and block emails containing potentially malicious compressed attachments
  • Consider implementing additional sandboxing for attachment analysis to isolate the processing of compressed files from the main ESG system

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechLibraesva Email Security Gateway

  • SeverityMEDIUM

  • CVSS Score6.1

  • EPSS Probability6.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CISA KEV Information
  • In CISA KEVYes
  • CWE References
  • CWE-77
  • Technical References
  • CISA Exploited Vulnerabilities Catalog
  • Vendor Resources
  • Libraesva Security Advisory

  • Libraesva Security Blog
  • Latest CVEs
  • CVE-2025-52793: Esselink.nu Settings CSRF Vulnerability

  • CVE-2025-52772: Virtual Moderator CSRF Vulnerability

  • CVE-2025-48279: WC MyParcel Belgium XSS Vulnerability

  • CVE-2025-39381: KiotViet Sync CSRF Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English