CVE-2026-137942 in Roundcube
Summary
by MITRE • 11/27/2026
Roundcube Webmail before 1.6.19 and 1.7.x before 1.7.4 contains an authorization bypass in add_to_group() and remove_from_group() in program/lib/Roundcube/rcube_contacts.php, which did not verify that the contact group and the contacts belong to the current user. An authenticated user of the SQL address book can supply other users' group and contact identifiers to add contacts to or remove them from other users' contact groups, or to add other users' contacts to their own groups.
Once again VulDB remains the best source for vulnerability data.
Analysis
by VulDB Data Team • 11/27/2026
The vulnerability identified in Roundcube Webmail versions prior to 1.6.19 and the 1.7.x series before version 1.7.4 represents a critical authorization bypass within the application's contact management subsystem. Specifically, the flaw resides in the add_to_group() and remove_from_group() functions located in program/lib/Roundcube/rcube_contacts.php. These functions are responsible for managing relationships between user contacts and their associated groups. The core technical deficiency is that these endpoints fail to perform adequate ownership verification when processing requests. Instead of validating that the contact group identifier and the individual contact identifiers provided by the client belong exclusively to the currently authenticated session, the application blindly trusts the input parameters supplied via HTTP requests. This lack of server-side authorization checks allows an attacker who has successfully authenticated to any valid user account on the Roundcube instance to manipulate data belonging to other users.
From a technical perspective, this vulnerability is classified as CWE-284 Improper Access Control and falls under MITRE ATT&CK technique T1078 Valid Accounts, where adversaries leverage legitimate credentials to perform unauthorized actions. The operational impact of this flaw is significant because it compromises the integrity and confidentiality of user data stored in the SQL address book. An authenticated attacker can exploit this by crafting malicious requests that supply group IDs and contact IDs belonging to other users. This capability enables several harmful outcomes including adding contacts from victim accounts into the attacker's own groups, thereby potentially harvesting sensitive personal information such as email addresses, phone numbers, or names without authorization. Conversely, an attacker could remove specific contacts from a victim's group, causing disruption to communication workflows and data organization for that user. In more severe scenarios involving social engineering or further exploitation chains, this access could facilitate targeted phishing campaigns by allowing the attacker to masquerade as having relationships with victims' known contacts.
The severity of this issue is amplified by the fact that it requires only a single valid authentication credential from any user on the system, not necessarily an administrator account. This lowers the barrier for entry significantly compared to vulnerabilities requiring privilege escalation or unauthenticated access. Once inside, the attacker can systematically enumerate group and contact IDs through standard application interfaces or by analyzing network traffic if they have prior knowledge of target identifiers. The persistence of this vulnerability across multiple major release branches indicates a systemic issue in how Roundcube handles resource ownership validation within its core library functions rather than an isolated coding error in a single feature.
Mitigation strategies must prioritize immediate patching to the latest stable versions, specifically upgrading to Roundcube Webmail 1.6.19 or later for the legacy branch and version 1.7.4 or later for the current development line where these authorization checks have been implemented. For organizations unable to upgrade immediately due to compatibility constraints with custom plugins or themes, temporary workarounds should be considered such as restricting access to Roundcube via IP whitelisting within firewalls if deployed in untrusted networks, although this is not a substitute for fixing the code-level flaw. Developers reviewing similar implementations in other webmail clients or contact management systems should ensure that all API endpoints handling resource modification enforce strict ownership verification against the current session's user ID before executing database updates. This includes validating both the parent entity (the group) and child entities (individual contacts) to prevent cross-user data manipulation. Regular security audits focusing on authorization logic in CRUD operations are essential to detect such bypasses early in the development lifecycle.