On 9 November 2026 the Roundcube project released security updates 1.6.21 and 1.7.6, fixing 17 vulnerabilities in the open-source webmail client. The most serious one now has an identifier: CVE-2026-126813, an IMAP command injection rated 7.4 (High). Through it, a crafted link can delete a user's messages or give someone else access to their mailbox.
Roundcube is one of the most widely deployed webmail interfaces. Organisations run it on their own servers, and hosting providers and Linux distributions bundle it. If you run it anywhere, Roundcube's own advice is clear: "We strongly recommend to update all productive installations of Roundcube 1.6.x and 1.7.x."
Who is affected
- Roundcube Webmail 1.6.20 and earlier (the long-term support branch). Fixed in 1.6.21.
- Roundcube Webmail 1.7.5 and earlier. Fixed in 1.7.6.
- Roundcube 1.5.x and older. These are no longer supported, according to Roundcube's announcement list, and get no fixes at all.
As of the reports from SecurityOnline and the oss-security mailing list, there is no confirmed exploitation in the wild. That is not a reason to wait. SecurityOnline notes that CISA's Known Exploited Vulnerabilities catalog already lists 11 older Roundcube flaws, and webmail is a frequent target because it sits on the internet with a direct line into mailboxes.
The IMAP command injection (CVE-2026-126813)
IMAP is the protocol Roundcube uses to talk to the mail server behind it. Each action in the web interface becomes IMAP commands, separated by line breaks (CRLF). According to NVD, an attacker could hide extra line breaks and commands in the _uid parameter of the mail/show or mail/get pages. If a logged-in user opens a crafted link, Roundcube sends those commands with the user's session. The attacker could:
- delete messages,
- change message flags, or
- grant another account access to the mailbox through the IMAP
SETACLcommand.
The last one is the most dangerous. Shared-mailbox rights given to an attacker can quietly survive password changes. There is an important condition: the flaw only works when Roundcube's messages_cache option is enabled. Rapid7 also tracks this CVE.
The same release fixes a similar injection through the _flag parameter of the mark-message action.
The other 16 fixes
The Roundcube announcement lists every fix. Grouped by type:
- Injection: two Sieve script injections (Sieve is the server-side filtering language behind rules like auto-forwarding), mail header injection through a read-receipt (MDN) subject, and HTTP request injection through the spellcheck ATD backend.
- Server-side request forgery (SSRF): where the server can be tricked into making requests to internal systems. One bypass in the CSS proxy used nip.io/sslip.io hostnames, and another used 6to4 (
2002::/16) IPv6 addresses. - Cross-site request forgery (CSRF): where another website makes your browser perform actions. Fixes cover file-only POST requests, mail purge/expunge commands, and managesieve actions that could be triggered via GET.
- Other: an open redirect via attachment downloads, a bypass of the
disabled_actionssetting, unsafe attachment content passed to ImageMagick during image conversion, a CPU-exhausting denial of service in session handling, stricter validation of IMAP host input, and a fix so theReceived:header only trusts configured proxies.
According to the oss-security post and SecurityOnline, CVE identifiers had not been published for most of these when the updates came out.
How to check
1. Find your version. In Roundcube, open Settings and then About. On the server, the version is defined in program/include/iniset.php:
grep "RCMAIL_VERSION" /path/to/roundcube/program/include/iniset.php
Anything below 1.6.21 on the 1.6 branch, or below 1.7.6 on the 1.7 branch, needs updating.
2. Check whether message caching is on. This tells you whether CVE-2026-126813 applies right now:
grep -n "messages_cache" /path/to/roundcube/config/config.inc.php
If it is set to true, your installation is exposed to the IMAP injection until you patch.
3. If you use distro or control-panel packages, check the package version and your vendor's security tracker. LinuxCompatible warns that packaged versions may lag behind the official releases.
How to fix it
- Back up first. Back up the Roundcube database, the
config/directory and any custom plugins or skins. LinuxCompatible notes that an upgrade also runs database schema migrations. - Upgrade. Download 1.6.21 or 1.7.6 from the official 1.6.21 or 1.7.6 GitHub releases (also available on roundcube.net). For a tarball install, unpack the new version and run the bundled update script against your existing installation:
For packaged installs, apply your distribution's or panel's update as soon as it is available.cd roundcubemail-1.7.6 ./bin/installto.sh /path/to/roundcube - If you cannot patch today, set
messages_cachetofalseinconfig/config.inc.php. This only blocks CVE-2026-126813. The other 16 fixes still need the upgrade. - Check mailbox permissions. If your IMAP server supports ACLs (shared folders), look for unexpected grants on user mailboxes. On Dovecot, for example:
doveadm acl debug -u user@example.com INBOX - Review Sieve filters for forwarding rules users didn't create, since two of the fixes concern Sieve script injection.
Plan the move off 1.6
The announcement carries a warning: "The 1.6 branch is four years old. Please, plan your upgrade to 1.7 soon." Roundcube says 1.6 "will be discontinued rather soon" but has not given a date. Installations still on 1.5 already get no security fixes. If you are on 1.6, schedule and test the 1.7 upgrade now, rather than rushing it after the next advisory.
What this means for your organisation
Webmail is the part of your email system that faces the internet and that every user touches, often from links in messages. A bug that turns one click into deleted mail or shared mailbox access is exactly what phishing campaigns aim for. For MSPs and hosting providers with many Roundcube installs, the job is mainly an inventory: find every instance, including old ones bundled in control panels, and confirm each one is on a fixed version.
Actions
- Inventory every Roundcube installation and note its version.
- Upgrade to 1.6.21 or 1.7.6, after backing up the database and config.
- Until patched, set
messages_cachetofalse. - Check IMAP ACLs and Sieve forwarding rules for unexpected changes.
- Retire any 1.5.x installations and plan the 1.6 to 1.7 upgrade.
Frequently asked questions
Which Roundcube versions are vulnerable?
Roundcube 1.6.20 and earlier and 1.7.5 and earlier are affected. The fixed versions are 1.6.21 and 1.7.6, released on 9 November 2026. The 1.5 series is no longer supported.
What is CVE-2026-126813?
It is an IMAP command injection in Roundcube via line breaks in the _uid parameter, rated 7.4 on NVD. If messages_cache is enabled, a crafted link opened by a logged-in user can delete messages, change flags or grant mailbox access via SETACL.
Is the Roundcube vulnerability being exploited?
No exploitation in the wild had been confirmed at the time of the reports. Older Roundcube flaws have been exploited, so patch promptly.
How do I check my Roundcube version?
Open Settings and then About in Roundcube, or check RCMAIL_VERSION in program/include/iniset.php on the server.
Sources
- Roundcube: Security updates 1.6.21 and 1.7.6
- NVD: CVE-2026-126813
- oss-security post
- Rapid7: CVE-2026-126813
- SecurityOnline coverage
- LinuxCompatible coverage
- Roundcube announce list