The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2024-37385

CVE-2024-37385: Roundcube Webmail RCE Vulnerability

CVE-2024-37385 is a command injection vulnerability in Roundcube Webmail on Windows that enables remote code execution. This article covers the technical details, affected versions, security impact, and mitigation strategies.

Published: April 1, 2026

CVE-2024-37385 Overview

CVE-2024-37385 is a command injection vulnerability affecting Roundcube Webmail before version 1.5.7 and versions 1.6.x before 1.6.7 when deployed on Windows systems. The vulnerability exists in the im_convert_path and im_identify_path configuration parameters, which are used for ImageMagick integration. This issue represents an incomplete fix for CVE-2020-12641, allowing attackers to inject and execute arbitrary system commands through crafted configuration paths.

Critical Impact

This command injection vulnerability allows unauthenticated remote attackers to execute arbitrary system commands on Windows-based Roundcube installations, potentially leading to complete system compromise.

Affected Products

  • Roundcube Webmail versions prior to 1.5.7
  • Roundcube Webmail versions 1.6.x prior to 1.6.7
  • Microsoft Windows (as the target operating system)

Discovery Timeline

  • 2024-06-07 - CVE-2024-37385 published to NVD
  • 2026-02-06 - Last updated in NVD database

Technical Details for CVE-2024-37385

Vulnerability Analysis

This command injection vulnerability (CWE-77) affects the image processing functionality in Roundcube Webmail on Windows platforms. The vulnerability stems from insufficient validation of the im_convert_path and im_identify_path configuration parameters within the rcube_image.php library. When ImageMagick is configured for image manipulation, these parameters specify the paths to ImageMagick executables. On Windows systems, attackers can craft malicious path values that bypass the existing validation checks, enabling command injection through network share paths or specially formatted strings.

The issue is particularly noteworthy as it represents a bypass of the original fix implemented for CVE-2020-12641. The previous patch failed to adequately address all Windows-specific path manipulation techniques, leaving the application vulnerable to command injection via UNC paths and other Windows path formats.

Root Cause

The root cause lies in the rcube_image.php file's init() method, which performs validation on the ImageMagick executable paths. The original fix for CVE-2020-12641 attempted to prevent command injection by checking if the path begins with a backslash to block network shares. However, the validation failed to account for:

  1. Forward-slash network path notation (//server/share)
  2. Improper string type handling when the configuration value is null or non-string
  3. Whitespace manipulation that could bypass path validation

The incomplete sanitization allowed attackers to craft paths that passed validation but ultimately executed malicious commands when processed by the system.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker targeting a vulnerable Windows-based Roundcube installation could exploit this vulnerability through:

  1. Manipulating configuration settings if administrative access is obtained through other means
  2. Exploiting scenarios where configuration values can be influenced through application-level attacks
  3. Leveraging path manipulation techniques specific to Windows file system handling

The following patch demonstrates the security fix applied to address this vulnerability:

php
     {
         static $error = [];
 
-        $cmd = rcube::get_instance()->config->get($opt_name);
+        $cmd = (string) rcube::get_instance()->config->get($opt_name);
 
         if (empty($cmd)) {
             return false;
         }
 
+        $cmd = trim($cmd);
+
         if (preg_match('/^(convert|identify)(\.exe)?$/i', $cmd)) {
             return $cmd;
         }
 
         // Executable must exist, also disallow network shares on Windows
-        if ($cmd[0] != "\\" && file_exists($cmd)) {
+        if ($cmd[0] !== '\\' && strpos($cmd, '//') !== 0 && file_exists($cmd)) {
             return $cmd;
         }

Source: GitHub Commit Update

Detection Methods for CVE-2024-37385

Indicators of Compromise

  • Unexpected process execution spawning from the Roundcube web application process
  • Unusual network connections originating from the webmail server to external hosts
  • Modifications to im_convert_path or im_identify_path configuration values in Roundcube configuration files
  • Web server error logs showing failed command execution attempts with malformed paths

Detection Strategies

  • Monitor web application logs for requests containing path traversal sequences or UNC path patterns
  • Implement file integrity monitoring on Roundcube configuration files, particularly config.inc.php
  • Deploy endpoint detection rules to identify command interpreter spawning from web server processes
  • Analyze network traffic for unusual outbound connections from the Roundcube server

Monitoring Recommendations

  • Enable verbose logging for the Roundcube application to capture configuration access attempts
  • Implement alerting for any changes to ImageMagick-related configuration parameters
  • Monitor Windows Security Event logs for process creation events linked to the web server service account
  • Deploy network segmentation to limit outbound connectivity from web application servers

How to Mitigate CVE-2024-37385

Immediate Actions Required

  • Upgrade Roundcube Webmail to version 1.5.7 or later for the 1.5.x branch
  • Upgrade Roundcube Webmail to version 1.6.7 or later for the 1.6.x branch
  • Review and validate all ImageMagick configuration paths in Roundcube settings
  • Consider disabling ImageMagick integration if not required for operations

Patch Information

The Roundcube development team has released patched versions that address this command injection vulnerability. The fix ensures proper type casting of configuration values, implements whitespace trimming, and adds validation to block forward-slash UNC path notation (//) in addition to the existing backslash check.

Official releases are available:

  • GitHub Release 1.5.7
  • GitHub Release 1.6.7

Workarounds

  • Disable ImageMagick integration by setting $config['im_convert_path'] and $config['im_identify_path'] to empty values in the Roundcube configuration
  • Restrict file system permissions on the Roundcube configuration directory to prevent unauthorized modifications
  • Implement web application firewall rules to filter requests containing suspicious path patterns
  • Run Roundcube on Linux/Unix platforms where this specific vulnerability does not apply
bash
# Configuration example - Disable ImageMagick integration in config.inc.php
# Add or modify these lines in your Roundcube config.inc.php
$config['im_convert_path'] = '';
$config['im_identify_path'] = '';

# Alternatively, set to absolute local paths only (after patching)
# $config['im_convert_path'] = 'C:\\ImageMagick\\convert.exe';
# $config['im_identify_path'] = 'C:\\ImageMagick\\identify.exe';

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechRoundcube Webmail

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.83%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-77
  • Technical References
  • GitHub Release 1.5.7

  • GitHub Release 1.6.7
  • Vendor Resources
  • GitHub Commit Update
  • Related CVEs
  • CVE-2020-12641: Roundcube Webmail RCE Vulnerability

  • CVE-2025-68461: Roundcube Webmail XSS Vulnerability

  • CVE-2020-35730: Roundcube Webmail XSS Vulnerability

  • CVE-2023-43770: Roundcube Webmail XSS Vulnerability
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