# EGroupware has Authenticated RCE via Malicious eTemplate Upload

High severity, published 2026-07-07. Update egroupware/egroupware to the fixed version of your branch (26.4.20260413, 23.1.20260601): composer update egroupware/egroupware.

Canonical URL: https://buzzphp.com/security/ghsa-8737-2x9g-xjj7 · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high |
| Published | 2026-07-07 |
| Updated | 2026-07-07 |
| CVE | [CVE-2026-40187](https://nvd.nist.gov/vuln/detail/CVE-2026-40187) |
| GHSA | [GHSA-8737-2x9g-xjj7](https://github.com/advisories/GHSA-8737-2x9g-xjj7) |
| Weakness | CWE-78, CWE-95 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| egroupware/egroupware | >= 26.0.20251208, < 26.0.20260113 or < 23.1.20260601 | 26.4.20260413, 23.1.20260601 |

## What to do

Update egroupware/egroupware to the fixed version of your branch (26.4.20260413, 23.1.20260601): composer update egroupware/egroupware.

Check which version you run with `composer show egroupware/egroupware`, and every affected package with `composer audit`.

## About this advisory

Summary

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::expandname() 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.

------------------------------------------------------------------------

Details



## Links

- [GHSA-8737-2x9g-xjj7 on GitHub](https://github.com/advisories/GHSA-8737-2x9g-xjj7)
- [CVE-2026-40187 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-40187)
- [All Composer security advisories](https://buzzphp.com/security)
