Vulnerability · Published Jul 20, 2026 · Assigned by GitHub_M

CVE-2026-40187Authenticated RCE via Malicious eTemplate Upload in EGroupware

High 8.6

In plain English

A high-severity OS command injection in egroupware from EGroupware. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 59% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)8.6High
Exploit odds (30 days)0.9%top 41.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Packagistegroupware/egroupware26.4.20260413GHSA-8737-2x9g-xjj7
Packagistegroupware/egroupware23.1.20260601GHSA-8737-2x9g-xjj7

Affected products (as reported)

VendorProductVersions
EGroupware egroupware <= 26.0

Weakness: CWE-78, CWE-95 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

References