EGroupware: Account Takeover via the Nextmatch get_rows Dispatch
An authenticated user without admin rights points Nextmatch::ajax_get_rows at Accounts::save through their own get_rows, sets the password of any account and logs in as that account.
Advisory ID: TP-2026-141
Product: EGroupware (open-source groupware with email, calendar, address book and file management)
Vulnerability type: Account takeover through a client-selected class and method (CWE-470) and missing authorization (CWE-862)
CVE: requested (GitHub CNA), assignment pending
CVSS 3.1: 9.9 (Critical) · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Vendor advisory: GHSA-f73m-7563-jjf9
Affected versions: up to and including 26.8.20260819, and 23.1 before 23.1.20261021 (verified live: 26.8.20260819)
Fixed in: 26.8.20260825 and 23.1.20261021
Reported: 21 August 2026
Summary
EGroupware is an open-source groupware for email, calendar, address book and file management; list views load their rows through the Nextmatch::ajax_get_rows endpoint. The endpoint reads the responsible get_rows callback from server-stored eTemplate content, but then merges the client's filters over it unchecked whenever form_name does not point to a nextmatch widget. A get_rows sent by the client thereby replaces the server's callback, and call_get_rows instantiates the named class and calls the named method with the client's array. With get_rows pointing at Api\Accounts::save, the application writes a new password for any account_id. Any authenticated user without admin rights sets the password of any account, administrators included, with a single request and logs in as that account.
Root cause
Line numbers refer to 26.8.20260819. Nextmatch::ajax_get_rows reads get_rows from the server-side eTemplate content (api/src/Etemplate/Widget/Nextmatch.php:404) and then merges the client's raw filters array over it (api/src/Etemplate/Widget/Nextmatch.php:452), so a client get_rows replaces the server's callback.
The filters are validated only when form_name resolves to a nextmatch widget; a made-up form_name leaves $template empty and skips validation (api/src/Etemplate/Widget/Nextmatch.php:423-432).
call_get_rows runs new $class() on the merged value and calls the named method with the client's array as its first argument (api/src/Etemplate/Widget/Nextmatch.php:691, api/src/Etemplate/Widget/Nextmatch.php:715, api/src/Etemplate/Widget/Nextmatch.php:748).
Json\Request::handleRequest exempts the namespace of the api application from the per-application rights check (api/src/Json/Request.php:180), so every authenticated user reaches the endpoint.
Api\Accounts::save performs no authorization check (api/src/Accounts.php:805), and the SQL backend writes account_pwd for the supplied account_id (api/src/Accounts/Sql.php:234, api/src/Accounts/Sql.php:260), past the admin check of the account management (admin/inc/class.admin_account.inc.php:45-53).
Proof of Concept
POST /egroupware/json.php?menuaction=EGroupware%5CApi%5CEtemplate%5CWidget%5CNextmatch%3A%3Aajax_get_rows HTTP/1.1
Content-Type: application/json
{"request":{"parameters":["<exec_id>",{"start":0,"num_rows":10},{"get_rows":".EGroupware\\Api\\Accounts.save","account_id":<victim id>,"account_passwd":"<new password>","account_lid":"<victim login>"},"bogus_nm_xyz",null,null]}}
HTTP/1.1 200
{"response":[{"type":"assign","data":{"key":"account_passwd","value":"{crypt}$2a$12$..."}}, ...]}
<exec_id> comes from any eTemplate page the attacker loads as an ordinary user; the made-up form_name bogus_nm_xyz skips filter validation, and get_rows routes the call to Accounts::save. Verified on the Docker image egroupware/egroupware:26.8.20260819 in the default configuration: a user of the Default group set the password of another user and of an account in the Admins group, then logged in as those accounts with the new password.
Impact
- Password of any account, administrators included, reset by any authenticated user without admin rights.
- Full account takeover: login as the victim with read and write access to their email, appointments, contacts and files.
- The same call reaches any autoloadable class method with an attacker-controlled array, including
Api\Vfs::removefor deleting files and directories within the caller's VFS scope. - One request is enough, with no CSRF token, no victim interaction, and in the default configuration.
References
Is Something Like This in Your Software?
Our team found this vulnerability during its work. Have your applications tested by the same specialists, with a penetration test from turingpoint.
