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

egroupware/egroupware Updated 07 Jul 2026

Summary

07/07/2026
Yes i
High
8.6

CVE-2026-40187: EGroupware has Authenticated RCE via Malicious eTemplate Upload. Affects egroupware/egroupware across 2 version ranges.

< 23.1.20260601 >= 26.0.20251208, < 26.4.20260413

Fixed in 23.1.20260601 or 26.4.20260413, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

EGroupware is an open-source groupware application that provides tools for collaboration, project management, and communication. It allows users to manage tasks, calendars, and files in a shared environment. However, a critical vulnerability has been identified that allows authenticated administrators to execute arbitrary OS commands through the upload of malicious eTemplate XML files.

Vulnerability Detail

The vulnerability arises from the Widget::expand_name() method in the api/src/Etemplate/Widget.php file, which uses PHP's eval() function to process template widget attribute values. The method only escapes double quotes, leaving backtick characters unescaped. This oversight allows an attacker with admin privileges to inject shell commands into the eval string, leading to Remote Code Execution (RCE) on the server. This vulnerability can be exploited by uploading a crafted eTemplate file that contains backticks, enabling the execution of arbitrary commands as the web server user.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 23.1.20260601 23.1.20260601
    composer require egroupware/egroupware:23.1.20260601
  • >= 26.0.20251208, < 26.4.20260413 26.4.20260413
    composer require egroupware/egroupware:26.4.20260413

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

If immediate patching is not possible, consider applying the following workaround: Set the disable_functions directive in your php.ini file to include exec,passthru,shell_exec,system,proc_open,popen. This will block the execution of shell commands through backticks in PHP, mitigating the risk of exploitation.

Conclusion

The CVE-2026-40187 vulnerability in EGroupware allows authenticated administrators to execute arbitrary OS commands through the upload of malicious eTemplate files. It is crucial for users to update to the latest patched versions or apply the recommended workarounds to mitigate the risk of exploitation.

See every vulnerability recorded for egroupware/egroupware →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 8.6, indicating a high severity level.

Any EGroupware installation where an admin account is compromised or a malicious admin exists, and the server is not configured with disable_functions blocking shell execution.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without needing to sign up.

An attacker can escalate from web application access to arbitrary OS command execution, potentially allowing them to read sensitive configuration files and pivot to other services.

No, the official Docker deployment is not affected due to the disable_functions setting in php.ini, which blocks shell execution.

Related vulnerabilities

Recent vulnerabilities recorded for egroupware/egroupware.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • < 23.1.20260601 23.1.20260601
    composer require egroupware/egroupware:23.1.20260601
  • >= 26.0.20251208, < 26.4.20260413 26.4.20260413
    composer require egroupware/egroupware:26.4.20260413

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback