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.
Published: 2026-07-20
Score: 8.6 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

In EGroupware versions 26.0 and prior, an authenticated administrator can upload a malicious .xet XML file to the VFS /etemplates directory. The Widget::expand_name method inserts the file content directly into a PHP eval call with only double‑quote escaping, leaving backtick characters unescaped. In PHP, backticks execute shell commands, so the attacker can invoke arbitrary commands on the host. This is an OS‑level Remote Code Execution flaw that exploits CWE‑78 (OS Command Injection) and CWE‑95 (Eval Injection).

Affected Systems

The vulnerability is present in the EGroupware product (EGroupware:egroupware) for all releases 26.0 and older. Any deployment running those versions where administrators retain write permissions to the /etemplates VFS mount is affected; this includes installations that allow administrators to freely upload eTemplates.

Risk and Exploitability

The CVSS score of 8.6 indicates high severity, while the EPSS score of <1% suggests a low probability of exploitation at present, and the defect is not listed in CISA’s KEV catalog. Based on the description, it is inferred that an attacker would need authenticated administrator access to upload a crafted eTemplate. Once uploaded, the evaluated code triggers backtick shell execution, granting the attacker full control over the operating system from the web application layer.

Generated by OpenCVE AI on July 30, 2026 at 18:55 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to an EGroupware release newer than 26.0 in which the vulnerable eval call has been removed.
  • If an upgrade is not immediately possible, deny write access to the /etemplates VFS mount or delete the directory to prevent template uploads.
  • Restrict administrator privileges to only those users who truly require template upload rights, minimizing the number of accounts that can exploit the flaw.

Generated by OpenCVE AI on July 30, 2026 at 18:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-8737-2x9g-xjj7 EGroupware has Authenticated RCE via Malicious eTemplate Upload
History

Mon, 20 Jul 2026 23:30:00 +0000

Type Values Removed Values Added
First Time appeared Egroupware
Egroupware egroupware
Vendors & Products Egroupware
Egroupware egroupware

Mon, 20 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Mon, 20 Jul 2026 17:15:00 +0000

Type Values Removed Values Added
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.
Title Authenticated RCE via Malicious eTemplate Upload in EGroupware
Weaknesses CWE-78
CWE-95
References
Metrics cvssV4_0

{'score': 8.6, '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'}


Subscriptions

Egroupware Egroupware
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-20T17:34:06.076Z

Reserved: 2026-04-09T20:59:17.620Z

Link: CVE-2026-40187

cve-icon Vulnrichment

Updated: 2026-07-20T17:34:01.032Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T19:00:09Z

Weaknesses
  • 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')