CVE-2026-27823: Egroupware/egroupware Remote Code Execution Vulnerability

CRITICAL
Advisory Identifier: GHSA-h9qx-v5xp-ph8p
CWE-639 CWE-94 CWE-22
Published
Advisory Summary

CVE-2026-27823 is a CRITICAL remote code execution vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting Egroupware/egroupware libraries in the Packagist ecosystem. The issue involves egroupware has a remote code execution vulnerability. Remediation is available by upgrading affected packages to version 26.2.20260224, 23.1.20260224.

CVE-2026-27823 at a Glance

CVE Identifier CVE-2026-27823
GHSA Identifier GHSA-h9qx-v5xp-ph8p
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification CWE-639: Authorization Bypass Through User-Controlled Key
Affected Product Egroupware/egroupware
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix CVE-2026-27823

To remediate this vulnerability, upgrade all affected Egroupware/egroupware dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

egroupware/egroupware fixed: 26.2.20260224
Upgrade egroupware/egroupware to 26.2.20260224
egroupware/egroupware fixed: 23.1.20260224
Upgrade egroupware/egroupware to 23.1.20260224
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for egroupware/egroupware

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-27823, inspect your project dependencies for Egroupware/egroupware:

inspect dependencies for egroupware/egroupware

Analyze the terminal output to locate any version of Egroupware/egroupware in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 26.2.20260224), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-639: Authorization Bypass Through User-Controlled Key, where the system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. In Egroupware/egroupware, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Summary A critical vulnerability has been identified in EGroupware that may lead to Remote Code Execution (RCE). The issue allows an authenticated attacker to execute arbitrary commands on the server. If user self-registration is enabled, the vulnerability may be exploitable without prior authentication. The vulnerability stems from improper authorization checks combined with a file write primitive and an arbitrary file read vulnerability, which together enable full system compromise. ## Details ### 1. Improper Authorization in SmallPartMediaRecorder::ajax_upload() The vulnerability originates in: `EGroupware\SmallParT\Widgets\SmallPartMediaRecorder::ajax_upload()` The function attempts to verify whether the current user is a teacher of the specified course ID before allowing a file upload. The critical authorization check ensures that the course access control list (ACL) contains: `$required_acl (self::ROLE_TEACHER, i.e., 3)` However, the `course_acl `value is derived from user-controlled request data. **_Bypass Technique_** A crafted request can manipulate the `participant_role `value inside the request body: ```json { "video": { "course_id": { "participants": [ { "account_id": "7", "name": "Test", "joined_at": "2026-01-10", "participant_role": 3 } ], "account_id": "7", "course_id": "1" }, "video_hash": ".", "video_type": "file_here" } } ``` Because the course ACL is taken from `participant_role`, setting it to 3 allows bypassing the `isTeacher `check. ### 2. Arbitrary File Write After bypassing authorization, the function uploads the provided file into a controllable file path. The file path is derived from the `video_type `(or video_path) value, enabling path traversal. Due to file permission restrictions (server running as www-data), writable targets are limited. One viable target is `./header.inc.php` ### 3. Constraints Writing a simple PHP webshell may not immediately execute due to OPcache. An invalid `header.inc.php` file will break the system and prevent the server from running. Therefore, a valid file structure must be preserved. ### 4. Arbitrary File Read A second vulnerability allows arbitrary file read via: `/egroupware/index.php?menuaction=importexport.importexport_export_ui.download&_filename=../../../usr/share/egroupware/header.inc.php&_suffix=txt&_type=text/plain&filename=leak` The issue resides in: `importexport_export_ui::download` The `_filename `parameter is user-controlled and used to read arbitrary files. This allows retrieving the original `header.inc.php` content. ### 5. Achieving Remote Code Execution By combining: Arbitrary file read (to retrieve valid header.inc.php); Arbitrary file write (to overwrite it with modified content), an attacker can inject controlled PHP code while preserving file validity. This results in Remote Code Execution after server restart, or OPcache expiration. An alternative impact includes modifying the admin setup password to gain full system control. ## Impact Remote Code Execution Full system compromise Arbitrary file read Arbitrary file write Potential complete takeover of EGroupware instance ## Reported by This finding was discovered by Huong Kieu of Cenobe Security (https://cenobe.com/)

CVE-2026-27823 Affected Egroupware/egroupware Versions

2 component(s)
Fixed Versions:
26.2.2026022423.1.20260224
Product / Package Ecosystem Affected Versions Fixed Version
egroupware/egroupware
Packagist
≥ 26.0.20251208
< 26.2.20260224
26.2.20260224
egroupware/egroupware
Packagist
< 23.1.20260224
23.1.20260224

References

Frequently Asked Questions

What is CVE-2026-27823?
CVE-2026-27823 is a security vulnerability in Egroupware/egroupware involving EGroupware has a Remote Code Execution Vulnerability under CWE-639: Authorization Bypass Through User-Controlled Key.
Which Egroupware/egroupware versions are affected?
Affected versions include releases prior to 26.2.20260224, 23.1.20260224 across affected packages: egroupware/egroupware.
What version fixes CVE-2026-27823?
Upgrading to 26.2.20260224, 23.1.20260224 (or the latest patched release for your respective branch) resolves the vulnerability.
Is egroupware/egroupware affected?
Yes, egroupware/egroupware is affected in releases prior to 26.2.20260224, 23.1.20260224. Upgrade your dependency to 26.2.20260224, 23.1.20260224 or later.
What CWE is associated with CVE-2026-27823?
CVE-2026-27823 is classified under CWE-639: Authorization Bypass Through User-Controlled Key (The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.).
How can I check Packagist dependencies for CVE-2026-27823?
Run the dependency tree command: 'inspect dependencies for egroupware/egroupware'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-h9qx-v5xp-ph8p",
  "modified" : "2026-07-07T13:01:01Z",
  "published" : "2026-07-07T13:01:01Z",
  "aliases" : [ "CVE-2026-27823" ],
  "summary" : "EGroupware has a Remote Code Execution Vulnerability",
  "details" : "## Summary\nA critical vulnerability has been identified in EGroupware that may lead to Remote Code Execution (RCE).\nThe issue allows an authenticated attacker to execute arbitrary commands on the server. If user self-registration is enabled, the vulnerability may be exploitable without prior authentication.\n\nThe vulnerability stems from improper authorization checks combined with a file write primitive and an arbitrary file read vulnerability, which together enable full system compromise.\n\n## Details\n### 1. Improper Authorization in SmallPartMediaRecorder::ajax_upload()\n\nThe vulnerability originates in:\n\n`EGroupware\\SmallParT\\Widgets\\SmallPartMediaRecorder::ajax_upload()`\n\nThe function attempts to verify whether the current user is a teacher of the specified course ID before allowing a file upload.\n\nThe critical authorization check ensures that the course access control list (ACL) contains:\n\n`$required_acl (self::ROLE_TEACHER, i.e., 3)`\n\nHowever, the `course_acl `value is derived from user-controlled request data.\n\n**_Bypass Technique_**\n\nA crafted request can manipulate the `participant_role `value inside the request body:\n\n```json\n{\n  \"video\": {\n    \"course_id\": {\n      \"participants\": [\n        {\n          \"account_id\": \"7\",\n          \"name\": \"Test\",\n          \"joined_at\": \"2026-01-10\",\n          \"participant_role\": 3\n        }\n      ],\n      \"account_id\": \"7\",\n      \"course_id\": \"1\"\n    },\n    \"video_hash\": \".\",\n    \"video_type\": \"file_here\"\n  }\n}\n```\n\nBecause the course ACL is taken from `participant_role`, setting it to 3 allows bypassing the `isTeacher `check.\n\n### 2. Arbitrary File Write\n\nAfter bypassing authorization, the function uploads the provided file into a controllable file path.\n\nThe file path is derived from the `video_type `(or video_path) value, enabling path traversal.\n\nDue to file permission restrictions (server running as www-data), writable targets are limited. One viable target is `./header.inc.php`\n\n### 3. Constraints\n\nWriting a simple PHP webshell may not immediately execute due to OPcache.\n\nAn invalid `header.inc.php` file will break the system and prevent the server from running.\n\nTherefore, a valid file structure must be preserved.\n\n### 4. Arbitrary File Read\n\nA second vulnerability allows arbitrary file read via:\n\n`/egroupware/index.php?menuaction=importexport.importexport_export_ui.download&_filename=../../../usr/share/egroupware/header.inc.php&_suffix=txt&_type=text/plain&filename=leak`\n\nThe issue resides in:\n\n`importexport_export_ui::download`\n\nThe `_filename `parameter is user-controlled and used to read arbitrary files.\n\nThis allows retrieving the original `header.inc.php` content.\n\n### 5. Achieving Remote Code Execution\n\nBy combining: Arbitrary file read (to retrieve valid header.inc.php); Arbitrary file write (to overwrite it with modified content), an attacker can inject controlled PHP code while preserving file validity.\n\nThis results in Remote Code Execution after server restart, or OPcache expiration. An alternative impact includes modifying the admin setup password to gain full system control.\n\n## Impact\nRemote Code Execution\nFull system compromise\nArbitrary file read\nArbitrary file write\nPotential complete takeover of EGroupware instance\n\n## Reported by\nThis finding was discovered by Huong Kieu of Cenobe Security (https://cenobe.com/)",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "egroupware/egroupware"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "26.0.20251208"
      }, {
        "fixed" : "26.2.20260224"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "egroupware/egroupware"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "23.1.20260224"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/EGroupware/egroupware/security/advisories/GHSA-h9qx-v5xp-ph8p"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/EGroupware/egroupware"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22", "CWE-639", "CWE-94" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-07T13:01:01Z",
    "nvd_published_at" : null
  }
}