UBUNTU-CVE-2026-126813: Command Injection
Roundcube Webmail before 1.6.21 and 1.7.x before 1.7.6 contains an IMAP command injection vulnerability that allows attackers to inject commands via CRLF in the uid parameter when messagescache is enabled. Attackers can lure logged-in victims into opening crafted GET links to mail/show or mail/get, executing IMAP commands that delete messages, change flags, or grant mailbox access via SETACL.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Roundcube Webmailto a version that resolves this vulnerability.Fixed in 1.6.21 - Upgrade
Upgrade
Roundcube Webmailto a version that resolves this vulnerability.Fixed in 1.7.6
Event History
Frequently Asked Questions
Who is exposed to this issue?
Roundcube users who are already logged in are exposed when messages_cache is enabled and they open a crafted GET link to the mail/show or mail/get endpoint. The affected versions are before 1.6.21 and 1.7.x before 1.7.6.
What does an attacker need to exploit it?
The attacker needs to lure a logged-in victim into opening a crafted URL containing CRLF characters in the _uid parameter. The vulnerability requires messages_cache to be enabled.
What could an attacker do through a successful exploit?
Injected IMAP commands can delete messages, modify message flags, or grant mailbox access through SETACL. The actions occur through the victim's authenticated Roundcube session.