Skip to main content
Vulnerability Database/CVE-2026-114727

CVE-2026-114727: Roundcube Webmail XXE Vulnerability

CVE-2026-114727 is an XXE vulnerability in Roundcube Webmail affecting image upload processing. Attackers can exploit unsafe ImageMagick handling of SVG and EPS files. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Published:

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-114727 Overview

CVE-2026-114727 affects Roundcube Webmail versions before 1.6.20 and 1.7.x before 1.7.5. The vulnerability allows authenticated users to pass unsafe content into ImageMagick during contact photo upload and image resize operations. Roundcube accepted Scalable Vector Graphics (SVG) and Encapsulated PostScript (EPS) as valid image types for contact photo processing. Both formats can reference external resources and invoke ImageMagick delegates when processed, creating an avenue for abuse by low-privileged attackers. The flaw is tracked as [CWE-829: Inclusion of Functionality from Untrusted Control Sphere].

Critical Impact

Low-privileged authenticated attackers can leverage SVG and EPS parsing to invoke ImageMagick delegates, potentially leading to remote content inclusion, information disclosure, and server-side command execution through delegate abuse.

Affected Products

  • Roundcube Webmail versions prior to 1.6.20
  • Roundcube Webmail 1.7.x versions prior to 1.7.5
  • Deployments using ImageMagick for contact photo resizing

Discovery Timeline

  • 2026-10-19 - Roundcube publishes security updates 1.6.20 and 1.7.5
  • 2026-10-22 - CVE-2026-114727 published to NVD
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2026-114727

Vulnerability Analysis

The vulnerability resides in Roundcube's contact photo upload and image resize workflow. The upload_photo.php action and rcube_image.php library accepted SVG and EPS as valid image types alongside standard raster formats. When Roundcube delegated resize operations to ImageMagick, these vector formats were processed through ImageMagick delegates. ImageMagick delegates invoke external programs, such as Ghostscript for EPS or XML parsers for SVG, to render the content. Attackers can craft SVG or EPS files that reference external URLs, read local files via file:// handlers, or trigger known delegate command-injection chains. The CWE-829 classification reflects the inclusion of untrusted content in a trusted processing pipeline.

Root Cause

The $IMAGE_TYPES array in program/actions/contacts/upload_photo.php included svg and eps as accepted types. The $valid_types list in program/lib/Roundcube/rcube_image.php similarly permitted these formats during resize. Neither code path isolated ImageMagick delegate behavior or stripped external references before invoking conversion.

Attack Vector

An authenticated Roundcube user uploads a malicious SVG or EPS file as a contact photo. The server passes the attachment to ImageMagick for resizing. ImageMagick invokes a delegate to process the vector content, which then dereferences attacker-controlled external resources or triggers Ghostscript execution paths.

php
// Patch: program/actions/contacts/upload_photo.php
// Removes 'eps' from accepted image types
-    public static $IMAGE_TYPES = ['jpeg','jpg','jp2','tiff','tif','bmp','eps','gif','png','png8','png24','png32','svg','ico'];
+    public static $IMAGE_TYPES = ['jpeg', 'jpg', 'jp2', 'tiff', 'tif', 'bmp', 'gif', 'png', 'png8', 'png24', 'png32', 'svg', 'ico'];

// Patch: program/lib/Roundcube/rcube_image.php
// Removes svg and eps from valid resize types
-                $valid_types = "bmp,eps,gif,jp2,jpg,png,svg,tif";
+                // Note: We don't support types like svg or eps for security reasons
+                $valid_types = 'bmp,gif,jp2,jpg,png,tif';

Source: Roundcube Commit 895d88a

Detection Methods for CVE-2026-114727

Indicators of Compromise

  • Contact photo uploads with .svg or .eps extensions in Roundcube temp directories
  • ImageMagick or Ghostscript child processes spawned from the PHP-FPM or Apache worker handling Roundcube
  • Outbound DNS or HTTP requests originating from the webmail host to unexpected destinations during photo upload events
  • Access log entries targeting ?_action=upload-photo with non-standard content types

Detection Strategies

  • Inspect Roundcube attachment directories for SVG files containing <image xlink:href="...">, <foreignObject>, or external DTD references
  • Correlate web server POST requests to upload_photo with subsequent convert, gs, or magick process executions
  • Monitor for ImageMagick policy violations in /var/log/syslog or dedicated ImageMagick logs

Monitoring Recommendations

  • Enable PHP execution logging for the Roundcube actions/contacts directory
  • Alert on any Roundcube process making outbound network connections during contact edit workflows
  • Track Roundcube version strings via server banners to confirm patched builds across deployments

How to Mitigate CVE-2026-114727

Immediate Actions Required

  • Upgrade Roundcube Webmail to version 1.6.20 or 1.7.5 as released on 2026-10-19
  • Audit ImageMagick policy.xml to disable coders for EPS, PS, PDF, SVG, and MVG on webmail hosts
  • Review existing contact photo attachments for malicious SVG or EPS content submitted prior to patching

Patch Information

Roundcube resolved the issue in commits 895d88a (1.6.x branch) and 8f0dc2d4 (1.7.x branch). The fix removes svg and eps from the accepted and valid image type lists in upload_photo.php and rcube_image.php. See the Roundcube Security Updates Announcement, Roundcube Release 1.6.20, and Roundcube Release 1.7.5 for release details. Debian tracking is available in Debian Bug Report #1151279.

Workarounds

  • Harden ImageMagick by setting <policy domain="coder" rights="none" pattern="{EPS,PS,PS2,PS3,PDF,SVG,MVG,XPS}" /> in /etc/ImageMagick-6/policy.xml
  • Restrict Roundcube contact photo uploads at the web server layer by blocking .svg and .eps MIME types
  • Run the webmail PHP worker under a sandboxed user without outbound network access to constrain delegate abuse
bash
# Harden ImageMagick policy on Roundcube host
sudo sed -i 's|</policymap>|<policy domain="coder" rights="none" pattern="EPS" />\n<policy domain="coder" rights="none" pattern="PS" />\n<policy domain="coder" rights="none" pattern="PDF" />\n<policy domain="coder" rights="none" pattern="SVG" />\n<policy domain="coder" rights="none" pattern="MVG" />\n</policymap>|' /etc/ImageMagick-6/policy.xml

# Verify Roundcube version after upgrade
grep RCMAIL_VERSION /var/www/roundcube/program/include/iniset.php

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.