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-114720 Overview
CVE-2026-114720 is an IMAP command injection vulnerability in Roundcube Webmail affecting versions before 1.6.20 and 1.7.x before 1.7.5. A remote authenticated attacker can inject carriage return and line feed (CRLF) sequences into the _flag parameter of the mail/mark action to execute arbitrary IMAP commands against the backing mail server. The flaw is tracked under CWE-93: Improper Neutralization of CRLF Sequences. Roundcube released patched builds 1.6.20 and 1.7.5 on October 19, 2026 to address the issue.
Critical Impact
Authenticated users of a vulnerable Roundcube instance can smuggle arbitrary IMAP commands into the user's active mailbox session, enabling tampering with messages, flags, and folders on the IMAP backend.
Affected Products
- Roundcube Webmail versions prior to 1.6.20
- Roundcube Webmail 1.7.x versions prior to 1.7.5
- Downstream distributions packaging vulnerable Roundcube builds (see Debian Bug Report #1151279)
Discovery Timeline
- 2026-10-19 - Roundcube publishes security updates 1.6.20 and 1.7.5
- 2026-10-22 - CVE-2026-114720 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-114720
Vulnerability Analysis
The vulnerability resides in Roundcube's IMAP client wrapper, specifically in program/lib/Roundcube/rcube_imap_generic.php. The mail/mark action accepts a user-supplied _flag parameter that is passed into IMAP STORE command construction without neutralizing control characters. Because the IMAP protocol uses CRLF (\r\n) to terminate commands, an attacker who injects these sequences can terminate the intended command and append arbitrary IMAP verbs. The attacker must be authenticated to the webmail interface, which limits exposure but still allows any logged-in user, including attackers using stolen credentials, to abuse the backend protocol channel.
Root Cause
The root cause is missing input validation on flag values before they are serialized into an IMAP command line. Roundcube accepted any string as a flag, including bytes in the control-character range and IMAP-special characters such as (, ), {, ", *, and %. Without rejection or escaping, these characters break out of the flag token and are interpreted by the IMAP server as new protocol elements.
Attack Vector
Exploitation requires network access to the Roundcube web interface and valid user credentials. The attacker submits a crafted mail/mark request containing CRLF sequences inside the _flag parameter. The injected bytes close the current IMAP command and introduce additional commands executed in the authenticated IMAP session, which can alter mailbox state or interact with other folders the user can access.
$flag = $this->flags[strtoupper($flag)];
}
+ if (preg_match('/[\\x00-\\x20\\x7f(){"*%]/', $flag)) {
+ return false;
+ }
+
// if PERMANENTFLAGS is not specified all flags are allowed
if (!empty($this->data['PERMANENTFLAGS'])
&& !in_array($flag, (array) $this->data['PERMANENTFLAGS'])
Source: Roundcube Commit 242c6d6. The patch rejects any flag containing control characters (\\x00-\\x20), DEL (\\x7f), whitespace, or IMAP-special characters, causing the function to return false before the flag reaches the IMAP command stream.
Stop Remote Code Execution Before It Runs
Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.
Stop Exploit AttemptsDetection Methods for CVE-2026-114720
Indicators of Compromise
- HTTP requests to the mail/mark endpoint whose _flag POST parameter contains URL-encoded CRLF sequences such as %0d%0a or raw control bytes.
- Flag values in web server logs containing IMAP-special characters including (, ), {, ", *, or %.
- Unexpected IMAP STORE, COPY, DELETE, or EXPUNGE activity in mail server logs that does not correlate with normal Roundcube UI actions.
Detection Strategies
- Inspect web application and reverse proxy logs for mail/mark requests with _flag values outside the expected set (SEEN, FLAGGED, DELETED, ANSWERED, DRAFT, FORWARDED, MDNSENT).
- Correlate Roundcube session identifiers with IMAP server command logs to identify sessions issuing commands not initiated by the webmail UI.
- Deploy a web application firewall (WAF) rule that blocks any _flag value containing non-alphanumeric characters.
Monitoring Recommendations
- Enable verbose IMAP command logging on the backend mail server (for example Dovecot mail_debug or Cyrus imapd telemetry) during triage windows.
- Alert on authenticated Roundcube sessions issuing high volumes of flag changes or cross-folder operations in short time intervals.
- Track User-Agent and source IP anomalies for accounts interacting with mail/mark outside normal browser flows.
How to Mitigate CVE-2026-114720
Immediate Actions Required
- Upgrade Roundcube Webmail to 1.6.20 or 1.7.5 as soon as possible.
- Rotate credentials for any Roundcube accounts suspected of compromise, since exploitation requires an authenticated session.
- Review IMAP server logs for anomalous command sequences originating from the Roundcube host.
Patch Information
The fix is implemented in commits 242c6d6 and 6c3c189. Both patches add a preg_match check in rcube_imap_generic.php that rejects flags containing control, whitespace, and IMAP-special characters before the value is used in an IMAP command. Downstream package maintainers tracking Debian Bug #1151279 have published rebuilt packages incorporating these commits.
Workarounds
- If patching is delayed, restrict Roundcube access with network controls or VPN gating to limit the pool of potential authenticated attackers.
- Deploy a WAF rule that blocks mail/mark requests whose _flag parameter contains characters outside [A-Za-z0-9$\\].
- Enforce strong authentication (MFA) on all Roundcube accounts to reduce the risk of credentialed abuse.
# Example ModSecurity rule to block malformed _flag values on mail/mark
SecRule REQUEST_URI "@contains /mail/mark" \
"chain,phase:2,deny,status:400,id:1026114720,\
msg:'CVE-2026-114720 Roundcube IMAP flag injection attempt'"
SecRule ARGS:_flag "@rx [^A-Za-z0-9$\\\\]" "t:none"
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

