CVE-2026-40187

HIGH CVSS 4.0: 8.6 EPSS 0.86%
Updated Jul 23, 2026
PHP
Parameter Value
CVSS 8.6 (HIGH)
Type CWE-78 (OS Command Injection), CWE-95
Vendor PHP
Public PoC No

In egroupware version 26.0 and earlier, an authenticated administrator can achieve OS-level Remote Code Execution (RCE) by uploading a malicious eTemplate XML file (`.xet`) to the VFS `/etemplates` mount. The `Widget::expand_name()` method passes template widget attribute values directly into a PHP `eval()` call with only double-quote escaping applied - **backtick characters are not escaped**. In PHP, backticks inside a double-quoted `eval()` string execute shell commands.

This allows an admin-level user to escalate from web application access to arbitrary OS command execution on the server.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Attack Requirements
None
No additional conditions
Privileges Required
High
Admin privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v4.0