Skip to content
Self-Hosted Roundcube Gets Emergency Fix Against No-Login IMAP Attacks

Self-Hosted Roundcube Gets Emergency Fix Against No-Login IMAP Attacks

Techtimes • August 10, 2026

Roundcube shipped emergency security updates on August 9, 2026, patching eleven distinct vulnerabilities across both its LTS and current stable branches simultaneously — a batch that includes a pre-authentication IMAP command injection discovered by Horizon3.ai's chief attack engineer, Zach Hanley, and a low-privileged remote code execution path in the bundled markasjunk plugin. Any administrator running a self-hosted Roundcube instance — and there are over two million internet-exposed deployments worldwide — needs to update to 1.6.18 or 1.7.3 immediately.

The release addresses nine years of recurring sanitization failures alongside two attack paths that do not require an attacker to hold valid credentials or wait for a user to click anything. CISA has already placed prior Roundcube remote code execution and cross-site scripting vulnerabilities on its Known Exploited Vulnerabilities catalog, and at least one prior Roundcube RCE was weaponized for sale on underground forums within 48 hours of the patch being published.

Most software vulnerability advisories describe flaws that require some degree of attacker access — a valid account, a user who clicks a link, an existing session. The August 9 batch is different in two respects.

First, the pre-authentication IMAP command injection reported by Hanley exploits a desynchronization between Roundcube's mail functionality and the IMAP LITERAL+ extension's byte-count handling, as documented in the full 1.6.18 release changelog . The IMAP LITERAL+ extension — defined in RFC 2088 — allows email clients to send literal data to a server without waiting for the server's confirmation, using a byte-count prefix in the format {N+} . When a webmail application incorporates LITERAL+ into user-facing functionality and fails to validate the declared byte count against actual data length, an attacker can craft a LITERAL+ sequence whose declared length encompasses additional IMAP commands beyond the intended literal data. The IMAP server, reading the newline as a command terminator, parses what follows as a separate, attacker-controlled command.

What makes this pre-authentication is the protocol layer at which the injection occurs: LITERAL+ is processed during the IMAP negotiation phase, before the authentication exchange completes. An attacker with network access to a Roundcube deployment does not need a registered account to reach this code path. That is a qualitatively different threat model from an authenticated user exploiting a filter parameter — the target universe is every Roundcube instance reachable from the internet.

The Ostorlab research team documented a closely related, earlier IMAP injection variant in April 2026 (CVE-2026-35538, patched in version 1.6.14) that gave authenticated users the ability to inject arbitrary IMAP commands through the _filter URL parameter, as described in Ostorlab's April 2026 research . In that case, Ostorlab's Aziz Elbelaychy discovered that Roundcube's own codebase already contained an escape() function that would have neutralized the attack — it converts CRLF characters into safe IMAP literal strings — but the code path never called it. The Hanley finding uses a different mechanism (LITERAL+ byte-count desync rather than raw CRLF injection) and reaches a pre-authentication stage that the earlier variant did not.

The second most severe finding in the August 9 batch is a remote code execution vulnerability in the cmd_learn driver of the bundled markasjunk plugin, reported by researcher nept1337, per the official August 9 advisory . This is an authenticated attack — it requires a low-privileged user account on the Roundcube instance and requires the markasjunk plugin to be enabled and configured with the cmd_learn driver (which routes spam learning through an external command-line tool).

When the markasjunk plugin is configured to pass messages through a spam classifier, the cmd_learn driver interpolates format-string tokens — including %i for the user's identity email address — into a shell command string that PHP then executes. If the user's registered identity email address contains shell metacharacters, those metacharacters execute on the mail server host when the user marks any message as spam.

This is the same vulnerability class that security researcher Selim Enes Karaduman reported through SSD Secure Disclosure in 2023 , which affected the same plugin via an overlapping code path. The 2026 variant by nept1337 targets the cmd_learn driver specifically, suggesting the 2023 fix addressed the immediate path but left adjacent format-string substitution points unsanitized.

Administrators who do not actively use markasjunk should disable it in config.inc.php even after patching — the plugin is bundled by default and does nothing unless explicitly configured, so its attack surface is entirely optional for most deployments.

The August 9 release is not a routine quarterly update. It is the fifth emergency security release in nine months, following batches on March 18, March 29, May 24, and July 5, 2026, all documented in the Roundcube security news archive . Each release addressed flaws that are, individually, different CVEs — but the pattern is consistent enough that security researchers covering the July 5 batch explicitly noted it in coverage of the August 9 release: the recurring HTML sanitization failures point to a deeper architectural flaw that incremental patches cannot contain .

The core issue is architectural. Roundcube's PHP-based HTML sanitizer, rcube_washtml , operates on a blocklist model: it enumerates known dangerous elements and attributes and rejects them, while permitting everything else. Against the full complexity of HTML5, CSS, and SVG specifications — each of which regularly introduces new elements, attributes, and behaviors — a blocklist approach faces a structural disadvantage. Every new specification feature is a candidate bypass that the blocklist must explicitly anticipate and enumerate.

The recurring SVG tag bypasses illustrate this concretely. The March 2026 security batch (version 1.6.15) patched a bypass using the animate element's attributeName property set to fill , filter , or stroke to trigger remote content loading (CVE-2026-35545). The August 2026 batch patches a different bypass using the same element's by attribute as the evasion vector — the sanitizer blocked attributeName=fill/filter/stroke but did not account for by . The vulnerability class is unchanged; only the attribute path is different.

An allowlist-based sanitizer — one that permits only explicitly approved elements and attributes — would, by definition, remain safe as new SVG or CSS features are introduced. A blocklist-based sanitizer is structurally behind the moment any new feature ships that its list-builders did not anticipate.

Censys documented over 2.4 million internet-exposed Roundcube instances in June 2025. A separate Shadowserver Foundation scan from the same month found 84,925 instances still running versions vulnerable to a prior critical RCE (CVE-2025-49113, CVSS 9.9) — months after its patch was released.

The chronic patching lag in this ecosystem reflects the deployment profile of the software. Roundcube is the default webmail interface for cPanel, Plesk, and other shared hosting control panels, meaning the majority of its deployments are managed by hosting providers on behalf of small businesses and individuals who have no direct awareness they are running it. When a hosting provider does not update their bundled Roundcube installation, every tenant on that platform is exposed without any action or awareness on the tenant's part.

Nation-state actors have treated this exposure as a standing opportunity. Russia's APT28 exploited CVE-2020-35730 to steal email from European government entities. The Russian-linked group Winter Vivern exploited CVE-2023-5631 as a zero-day beginning October 11, 2023, targeting government agencies and think tanks across Europe — the attack that TechTimes previously reported . CISA added CVE-2025-49113 and CVE-2025-68461 to its Known Exploited Vulnerabilities catalog on February 20, 2026, requiring federal civilian agencies to remediate by March 13, 2026. The August 9 batch has not yet appeared in the KEV catalog as of this writing, but the historical pattern — weaponization within days of a public patch — makes the interval between publication and exploitation short for Roundcube vulnerabilities.

Beyond the headline attack paths, the August 9 batch closes three SSRF bypass paths, an LDAP filter injection, and an arbitrary Sieve script injection — each of which is independently exploitable and each of which has concrete consequences for cloud-hosted and enterprise deployments.

The three SSRF bypasses, all reported by Milan Hoppe and Dmytro Ivanenko, target the is_local_url() validation function that Roundcube uses to block internal network requests, per the August 9 release notes . The prior March 2026 batch (version 1.6.14) introduced is_local_url() as a fix for the Ostorlab-reported SSRF (CVE-2026-35540). The August 9 batch reveals three additional bypass vectors the function did not anticipate: the Shared Address Space range 100.64.0.0/10 (defined in RFC 6598 for use in carrier-grade NAT networks), IPv6 link-local addresses in the fe80::/10 range, and wildcard DNS services like nip.io and sslip.io that resolve attacker-chosen subdomains to internal IP addresses. A fourth bypass targets the unclosed url() CSS function call, which escaped content blocking in FuncIRI attribute contexts.

SSRF vulnerabilities in cloud-deployed Roundcube instances carry particular weight: Roundcube servers co-located in AWS, GCP, or Azure environments may have network access to cloud metadata endpoints. AWS IMDSv1 (at 169.254.169.254) returns IAM credentials as plain text — a successful SSRF can extract credentials sufficient to escalate across the entire cloud account. The Ostorlab April 2026 research confirmed this chain in a test environment, though AWS IMDSv2's session-token requirement blocks this specific path on properly hardened instances.

The LDAP filter injection — also reported by Hoppe — exploits unescaped substitution of the %u , %fu , and %d tokens into the search_filter configuration parameter. When a malformed username contains LDAP filter metacharacters, those characters are interpolated into the resulting query, potentially enabling an attacker to extract unintended directory data or manipulate authentication logic.

The Sieve injection allows a crafted mail filter rule name to bypass the managesieve_disabled_actions restriction list. A successful injection can create unauthorized mail forwarding rules, directing copies of incoming email to attacker-controlled addresses without the account owner's awareness.

Researcher Paulos Yibelo of pwn.ai found a stored XSS flaw in the "Add to address book" action, where attacker-controlled data is rendered without adequate HTML escaping, per the official August 9 advisory . A sender can craft a entry that, when saved by the victim, executes arbitrary JavaScript inside the victim's authenticated webmail session — enabling session hijacking or credential exfiltration. GitHub user meifukun reported a separate issue in the modoboa driver of the password plugin that leaks an authentication token to a user-controlled host under certain conditions, potentially exposing backend administrative credentials.

Researcher vectrain identified the SVG by attribute sanitization bypass — the latest in a sequence of SVG-based sanitizer bypasses that the blocklist model keeps failing to anticipate. The July 5, 2026 batch (version 1.6.17) had already patched a zero-click stored XSS in plain-text rendering (CVE-2026-54433) reported by Bohdan Kurinnoy of Samsung R&D Institute Ukraine.

Roundcube's official guidance is to update all production installations to 1.6.18 (LTS branch) or 1.7.3 (current stable) immediately and to back up data before doing so. Updated packages are available from roundcube.net/download and from the GitHub release pages for 1.6.18 and 1.7.3. Debian and downstream Linux distribution packages are expected to follow through their standard security channels.

Beyond the version upgrade, administrators should prioritize the following:

Disable markasjunk if the plugin is not actively in use. It is bundled in every Roundcube installation but does nothing unless explicitly configured with a spam-learning backend. Removing an optional attack surface requires a single configuration change.

Review LDAP search_filter configurations. Substitution tokens should operate on validated inputs only; consider scoping LDAP integration more narrowly where the directory integration is used primarily for address book lookups rather than authentication logic.

Audit existing Sieve filter rules. Inspect filter rule names for unusual characters or constructs that may indicate a prior injection attempt.

Assess SSRF exposure. For Roundcube instances hosted in cloud environments, verify whether the metadata endpoint is reachable from the Roundcube process's network interface. Apply outbound egress controls to the webmail process where possible. Ensure AWS IMDSv2 is enforced on any EC2 instances hosting Roundcube.

The pre-authentication IMAP command injection, reported by Zach Hanley of Horizon3.ai, is the most severe finding from a risk-surface perspective: it allows an attacker with no credentials to inject arbitrary IMAP commands into the server by exploiting a desynchronization in how Roundcube handles the IMAP LITERAL+ protocol extension during mail . The markasjunk plugin remote code execution is also high-severity, though it requires a low-privileged authenticated account and a specific plugin configuration.

Yes, but the update may need to come from your hosting provider rather than directly from you. Roundcube is bundled into cPanel and Plesk deployments; in those environments the provider controls the Roundcube version. your provider to confirm they have applied the August 9, 2026 security update, or check the Roundcube version exposed in the webmail interface footer. If your provider has not patched, the exposure exists regardless of any action you take at the account level.

The IMAP LITERAL+ extension (RFC 2088) lets a mail client send a block of data to an IMAP server without waiting for the server to explicitly accept it, declaring the data length in a byte-count prefix. Roundcube uses this mechanism in its mail functionality. If the declared byte count encompasses additional text after the intended data — including IMAP command syntax — the IMAP server interprets that extra text as a separate, fully authorized IMAP command. Because this byte-count negotiation happens at the protocol level before authentication is complete, an attacker who can reach the Roundcube server's network interface can trigger the injection without holding any account credentials.

If you are actively using it to route spam through an external classifier, apply the patch (version 1.6.18 or 1.7.3) and keep it enabled. If you are not using it — or are unsure whether it is in use — disable it in config.inc.php . The plugin has had two separate command injection vulnerability classes disclosed since 2023, both in the same driver file. An unused plugin that produces no benefit and has a history of RCE findings is a reasonable candidate for removal regardless of patch status.

Extracted Entities

Domains (1)

IP Addresses (1)