What is Roundcube Webmail?
Roundcube is one of the most widely deployed open-source webmail platforms, providing browser-based IMAP email access for millions of users globally. It is bundled with cPanel, Plesk, ISPConfig, DirectAdmin, and other popular web hosting control panels — meaning a single vulnerability affects a vast number of shared hosting environments simultaneously. Roundcube has been repeatedly targeted by state-sponsored threat actors (particularly APT28/Fancy Bear and Winter Vivern) because email access provides intelligence on user communications, credentials, and organizational activities. A code execution vulnerability on the Roundcube server grants the attacker access to all mail data for all users on the instance.
Overview
CVE-2025-49113 is a critical PHP object deserialization vulnerability (CWE-502, CVSS 9.9) in Roundcube Webmail. The _from URL parameter in the settings upload action (program/actions/settings/upload.php) is passed to session handling code without adequate sanitization. A specially crafted _from value corrupts the session state and injects a malicious serialized PHP object, triggering arbitrary code execution in the context of the webmail server. Exploitation requires a valid authenticated session (any regular user account), hence PR:L. The vulnerability existed undetected for approximately 10 years. An exploit appeared on underground forums within 48 hours of the patch; Shadowserver counted 84,925 vulnerable internet-exposed instances one week later. CISA added it to the KEV catalog in February 2026.
Affected Versions
| Branch | Vulnerable | Fixed |
|---|---|---|
| Roundcube 1.6.x | 1.6.0 through 1.6.10 | 1.6.11 |
| Roundcube 1.5.x | 1.5.0 through 1.5.9 | 1.5.10 |
| Roundcube 1.4.x and earlier | All versions (unsupported) | Must upgrade to 1.5.10 or 1.6.11 |
Technical Details
The vulnerability (CWE-502) is in program/actions/settings/upload.php. The function processes the _from URL parameter via rcube_utils::get_input_string(), strips an add- or edit- prefix via regex, and replaces dots with hyphens — but applies no further sanitization. The processed value is then used to reference a session variable name.
When the _from value begins with !, PHP's session handling mechanism interprets this as a special session namespace indicator. By crafting a _from value that begins with ! followed by a serialized PHP object, an attacker can corrupt the session state in a way that causes PHP to deserialize the malicious object during session processing. This triggers a PHP gadget chain available in Roundcube's dependency set, ultimately executing arbitrary OS commands as the web server user.
Exploitation requires a valid Roundcube user account (PR:L), but any regular mailbox user is sufficient — no administrative privileges are needed. The CVSS Scope:Changed (S:C) rating reflects that the OS command execution crosses the PHP application boundary to the underlying server.
Discovery
Discovered by Kirill Firsov (founder/CEO of FearsOff). Firsov described the situation as "email armageddon" and published technical details to help defenders, after observing that attackers had already reverse-engineered the patch within 48 hours of release and began actively exploiting the vulnerability.
Exploitation Context
Exploit appeared on underground cybercriminal forums within 48 hours of the June 1, 2025 patch. Shadowserver Foundation counted 84,925 vulnerable internet-exposed Roundcube instances as of June 8, 2025. Roundcube's bundling with cPanel, Plesk, ISPConfig, and DirectAdmin amplifies the attack surface to cover a substantial fraction of shared web hosting globally. CISA added CVE-2025-49113 to the KEV catalog on 20 February 2026 alongside companion CVE-2025-68461 (a Roundcube XSS). Historical Roundcube attackers include APT28 (Russian GRU) and Winter Vivern (Belarus/Russia-linked) — both known to target webmail for email intelligence. Rapid7 published a Metasploit module for the vulnerability.
Remediation
- Upgrade Roundcube immediately to 1.6.11 (for 1.6.x installs) or 1.5.10 (for 1.5.x installs). For cPanel/Plesk/DirectAdmin/ISPConfig deployments, apply the hosting panel's built-in Roundcube update.
- Verify the installed version: check
program/include/iniset.phpor/etc/roundcubemail/config.inc.phpfor the$rcmail_config['version']value. - Audit user accounts for unauthorized email access or forwarding rules added by attackers post-exploitation.
- Review web server logs for unusual requests to
/program/actions/settings/upload.phpwith anomalous_fromparameter values — particularly values starting with!. - Also apply CVE-2025-68461 patch — the same 1.6.11/1.5.10 release addresses this companion XSS vulnerability.
- Restrict Roundcube access to authenticated users only — disable guest/anonymous access. Consider IP-restricting admin-level functions.
Key Details
| Property | Value |
|---|---|
| CVE ID | CVE-2025-49113 |
| Vendor / Product | Roundcube — Webmail |
| NVD Published | 2025-06-02 |
| NVD Last Modified | 2026-02-23 |
| CVSS 3.1 Score | 9.9 |
| CVSS 3.1 Vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| Severity | CRITICAL |
| CWE | CWE-502 find similar ↗ |
| CISA KEV Added | 2026-02-20 |
| CISA KEV Deadline | 2026-03-13 |
| Known Ransomware Use | No |
CVSS 3.1 Breakdown
Required Action
Timeline
| Date | Event |
|---|---|
| 2025-06-01 | Roundcube 1.6.11 and 1.5.10 released — patching the deserialization vulnerability |
| 2025-06-02 | CVE published |
| 2025-06-03 | Attackers reverse-engineer the patch within 48 hours; exploit appears on underground forums |
| 2025-06-08 | Shadowserver counts 84,925 vulnerable internet-exposed Roundcube instances |
| 2026-02-20 | CISA adds to Known Exploited Vulnerabilities catalog (alongside companion CVE-2025-68461 XSS) |
| 2026-03-13 | CISA BOD 22-01 remediation deadline |
References
| Resource | Type |
|---|---|
| Roundcube Security Updates 1.6.11 and 1.5.10 | Vendor Advisory |
| Roundcube 1.6.11 Release | Vendor Advisory |
| NVD — CVE-2025-49113 | Vulnerability Database |
| CISA KEV Catalog Entry | US Government |
| OffSec — CVE-2025-49113 Technical Analysis | Security Research |
| FearsOff — Roundcube Research (Kirill Firsov) | Security Research |
| BleepingComputer — Over 84,000 Roundcube Instances Vulnerable | News |
| Censys — CVE-2025-49113 Internet Exposure | Security Research |