GajIPS - IPS Signature Update — GS EXPLOIT: Roundcube Webmail pre-authentication SQL injection, CVE-2026-48842
Severity: HIGH · Priority: P2 — active exploitation of a pre-auth webmail SQLi, escalate on hit
These rules detect attempts to exploit CVE-2026-48842, a pre-authentication SQL injection vulnerability in Roundcube Webmail, the open-source webmail platform used widely in hosted email environments and self-managed mail servers. The flaw sits in an optional plugin that maps login usernames to mailbox addresses using an administrator-configured SQL query. The plugin attempted to prevent injection by escaping quote characters, but its escaping logic was built on PHP's preg_replace() in a way that a backslash placed before a quote character causes the escaper to treat the backslash as the escaped character, leaving the quote raw and unescaped. A login attempt that never succeeds is sufficient to trigger the injection — no valid credentials, no session token, and no prior access are required.
A hit indicates an attempted SQL injection against your Roundcube server through the login form. Confirm first whether the targeted Roundcube installation has the virtuser_query plugin enabled — installations that do not have this plugin active are not vulnerable to this specific flaw, and a hit in that case may indicate a scanner probing your server. If the plugin is enabled, treat an alert as an active exploitation attempt: escalate and check database and authentication logs for signs that the injection was successful — unexpected query errors, unusual authentication events, or database modifications. Roundcube should be upgraded to version 1.6.16 or 1.7.1 as the definitive fix; until then, disabling the virtuser_query plugin if it is not actively required removes the vulnerable code path entirely.