Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. egroupware/egroupware
  4. ›
  5. CVE-2026-40187

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

July 7, 2026

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.


References

  • github.com/EGroupware/egroupware/security/advisories/GHSA-8737-2x9g-xjj7
  • github.com/advisories/GHSA-8737-2x9g-xjj7
  • nvd.nist.gov/vuln/detail/CVE-2026-40187

Code Behaviors & Features

Detect and mitigate CVE-2026-40187 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 23.1.20260601, all versions starting from 26.0.20251208 before 26.4.20260413

Fixed versions

  • 23.1.20260601
  • 26.4.20260413

Solution

Upgrade to versions 23.1.20260601, 26.4.20260413 or above.

Impact 7.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

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

Source file

packagist/egroupware/egroupware/CVE-2026-40187.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 11 Nov 2026 00:16:24 +0000.