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

- Severity: High 8.6 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.21%, higher than 69% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-07T13:01:31.000Z
- Modified: 2026-09-10T03:50:51.563Z
- Also known as: GHSA-8737-2x9g-xjj7
- Weaknesses: CWE-78, CWE-95
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- EGroupware egroupware: <= 26.0
- egroupware/egroupware (Packagist): from 26.0.20251208 before 26.4.20260413; before 23.1.20260601

## Every score

- GitHub_M: CVSS:4.0 8.6 High `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`
- GitHub: CVSS:4.0 High `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

- <https://github.com/EGroupware/egroupware/security/advisories/GHSA-8737-2x9g-xjj7> (exploit, web)
- <https://github.com/EGroupware/egroupware> (package)

## Sources

- CVE List: [CVE-2026-40187](https://www.cve.org/CVERecord?id=CVE-2026-40187), CVE Terms of Use, modified 2026-07-20
- GitHub Advisory Database: [GHSA-8737-2x9g-xjj7](https://github.com/advisories/GHSA-8737-2x9g-xjj7), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-40187](https://nvd.nist.gov/vuln/detail/CVE-2026-40187), Public domain, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-40187 · Whole record: https://cve.day/CVE-2026-40187.json · Rebuilt by cve.day 2026-11-25T22:59:29.249Z
