PT-2026-56213 · Egroupware+1 · Egroupware+1

CVE-2026-40187

·

Published

2026-07-07

·

Updated

2026-07-23

CVSS v4.0

8.6

High

VectorAV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Name of the Vulnerable Software and Affected Versions egroupware versions 26.0 and earlier
Description 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 issue exists in the Widget::expand name() function within api/src/Etemplate/Widget.php, which passes template widget attribute values into a PHP eval() call. While double quotes are escaped, backtick characters are not. In PHP, backticks inside a double-quoted eval() string act as shell execution operators, allowing an attacker to execute arbitrary OS commands as the web server user. This can lead to the exposure of configuration files, database credentials, or full system compromise.
Recommendations Update egroupware to a version later than 26.0. As a temporary mitigation, configure the php.ini file to include disable functions = exec,passthru,shell exec,system,proc open,popen to block the execution of shell commands via PHP backticks.

Exploit

Fix

RCE

OS Command Injection

Eval Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-40187
GHSA-8737-2X9G-XJJ7

Affected Products

Egroupware
Egroupware/Egroupware