CVE-2026-40187

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.
CVSS

No CVSS.

Configurations

No configuration.

History

20 Jul 2026, 18:16

Type Values Removed Values Added
References () https://github.com/EGroupware/egroupware/security/advisories/GHSA-8737-2x9g-xjj7 - () https://github.com/EGroupware/egroupware/security/advisories/GHSA-8737-2x9g-xjj7 -

20 Jul 2026, 17:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-07-20 17:17

Updated : 2026-07-20 18:16


NVD link : CVE-2026-40187

Mitre link : CVE-2026-40187

CVE.ORG link : CVE-2026-40187


JSON object : View

Products Affected

No product.

CWE
CWE-78

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

CWE-95

Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')