{"id":"CVE-2026-40187","published":"2026-07-20T17:00:38Z","modified":"2026-07-20T17:34:06Z","title":"Authenticated RCE via Malicious eTemplate Upload in EGroupware","vendor":"EGroupware","product":"egroupware","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00857,"percentile":0.5929,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"},{"id":"CWE-95","name":"Improper Neutralization of Directives in Dynamically Evaluated Code"}],"references":[{"url":"https://github.com/EGroupware/egroupware/security/advisories/GHSA-8737-2x9g-xjj7","tags":["x_refsource_CONFIRM"]}],"priority":{"score":17.9,"factors":[{"name":"EPSS percentile","points":11.86},{"name":"CVSS severity","points":6.02}]},"vendorSlug":"egroupware","affectedVersions":[{"vendor":"EGroupware","product":"egroupware","versions":["<= 26.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-07-20T17:33:53.704724Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"egroupware/egroupware","vulnerableRanges":[">=26.0.20251208, <26.4.20260413","<23.1.20260601"],"patched":["26.4.20260413","23.1.20260601"],"from":["GHSA-8737-2x9g-xjj7"],"provenance":"source"}],"summary":{"text":"A flaw in EGroupware version 26.0 and earlier lies in the Widget::expand_name() method, which passes template widget attribute values into a PHP eval() call with only double-quote escaping, leaving backtick characters unescaped. An authenticated administrator who uploads a malicious eTemplate XML (.xet) file to the VFS /etemplates mount can use those backticks to execute arbitrary operating system commands on the server, escalating from web application access to OS-level remote code execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:29Z"},"euvd":{"id":"EUVD-2026-46033","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-40614","published":"2024-07-07","fixed":"23.1.20240624","kev":false},{"cve":"CVE-2026-22243","published":"2026-01-28","fixed":"26.0.20260113","kev":false},{"cve":"CVE-2026-27823","published":"2026-07-20","fixed":"26.2.20260224","kev":false,"link":{"from":"CVE-2026-27823","to":"CVE-2026-40187","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:egroupware/egroupware","fromFixed":"26.2.20260224","toFixed":"26.4.20260413","daysApart":0},{"kind":"version-step","provenance":"source","package":"Packagist:egroupware/egroupware","fromFixed":"23.1.20260224","toFixed":"23.1.20260601","daysApart":0}]}},{"cve":"CVE-2026-40187","published":"2026-07-20","fixed":"26.4.20260413","kev":false},{"cve":"CVE-2026-45016","published":"2026-11-16","fixed":"26.5.20260507","kev":false,"link":{"from":"CVE-2026-40187","to":"CVE-2026-45016","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:egroupware/egroupware","fromFixed":"26.4.20260413","toFixed":"26.5.20260507","daysApart":119}]}},{"cve":"CVE-2026-63672","published":"2026-11-16","fixed":"26.6.20260616","kev":false}],"package":"Packagist:egroupware/egroupware"}}