{
  "id": "CVE-2026-40187",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-40187",
  "published_at": "2026-07-20T17:00:38.515Z",
  "title": "Authenticated RCE via Malicious eTemplate Upload in EGroupware",
  "vendor": "EGroupware",
  "product": "egroupware",
  "cvss": {
    "score": 8.6,
    "source": "cna",
    "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"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-78",
  "cvss_by_source": {
    "cna": 8.6
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "EGroupware",
        "product": "egroupware",
        "ranges": [
          "\u003c= 26.0"
        ],
        "fixed_in": null
      },
      {
        "vendor": "",
        "product": "egroupware/egroupware",
        "ranges": [
          "\u003e= 26.0.20251208, \u003c 26.4.20260413"
        ],
        "fixed_in": [
          "26.4.20260413"
        ],
        "ecosystem": "Packagist",
        "advisory": "GHSA-8737-2x9g-xjj7"
      },
      {
        "vendor": "",
        "product": "egroupware/egroupware",
        "ranges": [
          "\u003c 23.1.20260601"
        ],
        "fixed_in": [
          "23.1.20260601"
        ],
        "ecosystem": "Packagist",
        "advisory": "GHSA-8737-2x9g-xjj7"
      }
    ],
    "upgrade": [
      "Upgrade egroupware/egroupware to 26.4.20260413 or later.",
      "Upgrade egroupware/egroupware to 23.1.20260601 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/EGroupware/egroupware/security/advisories/GHSA-8737-2x9g-xjj7"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
