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

CVE-2026-114723: Roundcube Webmail DOS Vulnerability

CVE-2026-114723 is a denial of service vulnerability in Roundcube Webmail that allows attackers to exhaust server memory through crafted images during thumbnail generation. This article covers technical details, affected versions, and mitigation.

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-114723 Overview

CVE-2026-114723 is a resource consumption vulnerability in Roundcube Webmail affecting versions before 1.6.20 and 1.7.x before 1.7.5. The flaw allows attackers to bypass ImageMagick resource limits during thumbnail generation. When rcube_image falls back to the GD graphics library, the available-memory check only executed on Windows platforms. On Linux and other non-Windows systems, a crafted image with large dimensions is processed by GD without any memory limit, which can exhaust server memory.

The weakness is classified under [CWE-770] Allocation of Resources Without Limits or Throttling.

Critical Impact

An authenticated or unauthenticated attacker able to trigger thumbnail generation can exhaust server memory on non-Windows Roundcube installations, causing denial of service to the webmail service.

Affected Products

  • Roundcube Webmail versions prior to 1.6.20
  • Roundcube Webmail 1.7.x versions prior to 1.7.5
  • Non-Windows deployments where the GD library is used as a fallback for image processing

Discovery Timeline

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

Technical Details for CVE-2026-114723

Vulnerability Analysis

Roundcube Webmail generates thumbnails of email image attachments using ImageMagick as the primary backend. ImageMagick enforces configurable resource limits that cap memory and disk usage during image processing. When ImageMagick is unavailable or fails, Roundcube falls back to the PHP GD extension via the rcube_image class.

GD does not honor ImageMagick's policy file. To compensate, rcube_image implements its own mem_check() routine that inspects image dimensions and estimates memory required for decoding. The pre-patch code only invoked this check when PHP_OS began with WIN. On Linux, BSD, and macOS, the dimension check was skipped entirely, allowing GD to attempt allocation for arbitrarily large images.

Root Cause

The root cause is a platform-conditional guard in program/lib/Roundcube/rcube_image.php that limited the memory validation to Windows hosts. A crafted image declaring very large width and height values is accepted by GD and triggers unbounded memory allocation, exhausting the PHP process or the host system.

Attack Vector

The attack vector is network-based. An attacker sends an email containing a crafted image attachment, or otherwise places a crafted image where Roundcube will generate a thumbnail. When the user opens the message and Roundcube falls back to GD, the server attempts to decode the oversized image and consumes available memory.

php
         $props = $this->props();
 
         // do we have enough memory? (#1489937)
-        if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN' && !$this->mem_check($props)) {
+        if (!$this->mem_check($props)) {
             return false;
         }

Source: Roundcube Commit 0bea81

The patch removes the PHP_OS check so that mem_check($props) runs on every platform, aborting the fallback when the image would exceed available memory.

Detection Methods for CVE-2026-114723

Indicators of Compromise

  • PHP worker processes terminated by the out-of-memory killer with rcube_image or imagecreatefrom* entries in stack traces or error logs
  • Repeated HTTP requests to Roundcube thumbnail endpoints (for example ?_action=get with image attachment identifiers) from a single source
  • Inbound email messages containing image attachments with abnormally large declared dimensions relative to small file size

Detection Strategies

  • Monitor Roundcube and PHP-FPM error logs for Allowed memory size fatal errors originating from image processing code paths
  • Correlate spikes in system memory usage with concurrent IMAP mailbox activity and thumbnail generation requests
  • Inspect inbound SMTP traffic for image attachments whose metadata reports dimensions inconsistent with payload size

Monitoring Recommendations

  • Alert on repeated PHP process restarts or OOM kill events on web servers hosting Roundcube
  • Track thumbnail endpoint request rates per authenticated user and flag anomalous bursts
  • Verify that installed Roundcube versions match 1.6.20, 1.7.5, or later across all webmail hosts

How to Mitigate CVE-2026-114723

Immediate Actions Required

  • Upgrade Roundcube Webmail to version 1.6.20 or 1.7.5 as published in the Roundcube Security Updates Announcement
  • Audit php.ini and set a conservative memory_limit for the Roundcube PHP pool to contain memory exhaustion attempts
  • Review ImageMagick policy.xml to enforce strict memory, width, and height resource limits

Patch Information

The fix is available in Roundcube Release 1.6.20 and Roundcube Release 1.7.5. The upstream commits 0bea81 and d28a57 remove the Windows-only guard in rcube_image.php so the mem_check() function executes on all platforms. Debian users should track Debian Bug #1151279 for distribution packaging status.

Workarounds

  • Ensure ImageMagick is installed and functional so Roundcube does not fall back to GD, keeping ImageMagick policy limits in effect
  • Disable image thumbnail generation in Roundcube configuration until the patch is applied
  • Place a reverse proxy rate limit on thumbnail generation endpoints to reduce abuse surface
bash
# ImageMagick policy.xml hardening example
# /etc/ImageMagick-6/policy.xml
<policymap>
  <policy domain="resource" name="memory" value="256MiB"/>
  <policy domain="resource" name="map" value="512MiB"/>
  <policy domain="resource" name="width" value="8KP"/>
  <policy domain="resource" name="height" value="8KP"/>
  <policy domain="resource" name="disk" value="1GiB"/>
</policymap>

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.