Roundcube Webmail Pre-authentication SQL Injection Vulnerability in virtuser_query Plugin

Vulnerability

A pre-authentication SQL injection vulnerability has been identified in the Roundcube Webmail virtuser_query plugin, affecting versions 1.6.x prior to 1.6.16 and 1.7.x prior to 1.7.1. The vulnerability arises from a backslash escape bypass in the preg_replace() function, allowing for malicious SQL queries to be injected and potentially executed.

Impact

Exploitation of this vulnerability allows for pre-authentication SQL injection, where an attacker can manipulate SQL queries to the database. This could lead to unauthorized data access, data manipulation, or in some cases, executing administrative operations on the database.

Reproduction

The vulnerability can be reproduced by sending a crafted request that exploits the backslash escape bypass in the virtuser_query plugin. This can be done by replacing certain placeholders in the SQL query with injected SQL code, taking advantage of the way user input is handled and sanitized before being executed as a database query.

Remediation

Users are advised to update to Roundcube Webmail versions 1.6.16 or 1.7.1, both of which include the necessary fix for this vulnerability. Instructions for updating can be found in the release notes on the Roundcube GitHub repository.

Added: May 26, 2026, 6:48 PM
Updated: May 26, 2026, 6:48 PM

Vulnerability Rating

Custom Algorithm
spread
6.4
impact
2.5
exploitability
8.9
remediation
7.7
relevance
9.4
threat
4.8
urgency
2.9
incentive
8.3

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.