Skip to main content

EGroupware CVE-2026-45016

| EUVDEUVD-2026-126624 MEDIUM
External Control of File Name or Path (CWE-73)
2026-07-07 https://github.com/EGroupware/egroupware GHSA-c8m7-r2jv-rw63
6.5
CVSS 3.0 · Vendor: https://github.com/EGroupware/egroupware
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Authenticate as low-privileged EGroupware mail user
  2. Delivery
    Open HTML email compose window
  3. Exploit
    Inject file:// URI in img src attribute
  4. Install
    Submit compose request to server
  5. C2
    Server calls file_get_contents() on target path
  6. Execute
    File contents embedded as inline MIME attachment
  7. Impact
    Attacker retrieves file from received email

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File name/path control
Exploitation Conditions

Exploitation requires a valid EGroupware account with permission to compose HTML emails via the mail module - this is a standard user capability, not an administrative one. The attacker must have network access to the EGroupware web interface. The target file must be readable by the operating-system user under which the PHP/web server process runs (typically www-data or apache); root-owned files with mode 600 are not accessible. No special server configuration beyond having the mail compose feature enabled is required. Limiting factors: authentication (PR:L) is the primary barrier - unauthenticated exploitation is not possible; file exfiltration is bounded by web server OS-level file permissions; and the attacker receives the stolen content only via the email channel they control, meaning the target email account must be reachable by the attacker.

Impact

The NVD-reported CVSS 3.0 score is 6.5 (Medium) with vector AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N, which is consistent with the technical description: network-reachable, low-complexity, authenticated (PR:L), with high confidentiality impact and no integrity or availability consequence. A public proof-of-concept is confirmed in the GitHub Security Advisory (GHSA-c8m7-r2jv-rw63), elevating practical risk beyond what the score alone suggests. No EPSS data was provided in the input; no CISA KEV listing is present. Real-world severity is significant for EGroupware deployments: any low-privileged mail user can silently exfiltrate web-server-readable files - including /etc/passwd, database credential files, TLS private keys, and .env files - without administrator awareness, because the files are embedded as MIME parts in emails the attacker controls. The 'RCE' tag in the intelligence metadata appears to be a mis-classification; nothing in the description, code, or PoC supports code execution - this is a file read (LFI) via SSRF-like scheme injection. SSVC signals: exploitation status = PoC public, automatable = yes (single authenticated HTTP request), technical impact = partial (confidentiality only). Priority is HIGH for organizations running EGroupware with multi-user mail access.

Exploit ScenarioDerived

An authenticated EGroupware user with standard mail access opens the compose window, switches to HTML body mode, and embeds <img src="file:///etc/passwd"> (or targets application configuration files such as /var/www/egroupware/config.php). Upon submission, the server's processURL2InlineImages function reads the specified file via file_get_contents() and attaches its contents as an inline MIME part in the outgoing email, which the attacker then receives and extracts. A public PoC demonstrating this exact technique is referenced in the GitHub advisory.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 07, 2026

Arbitrary file read in EGroupware's mail composition module allows any authenticated user with mail access to exfiltrate files readable by the web server process. The vulnerability stems from a defective URI scheme check in api/src/Mail.php that correctly rejects data: URIs but inadvertently permits file:// URIs, which PHP's file_get_contents() resolves natively against the local filesystem. A publicly available proof-of-concept exists demonstrating /etc/passwd extraction via a crafted HTML email body; no active exploitation (CISA KEV) has been confirmed at time of analysis.

RemediationAI

Apply the vendor-released patch as documented in the GitHub Security Advisory GHSA-c8m7-r2jv-rw63 (https://github.com/EGroupware/egroupware/security/advisories/GHSA-c8m7-r2jv-rw63); an exact fixed release version was not confirmed in the provided input data, so administrators should consult the advisory directly to identify the minimum safe version. The recommended code fix is to replace the flawed !str_starts_with($myUrl, 'http') check with a strict allowlist: if (!preg_match('#^https?://#i', $myUrl)) { continue; } - this rejects file://, php://, ftp://, data://, and any other non-HTTP/HTTPS scheme before file_get_contents() is reached. As an interim compensating control where patching is not immediately possible, restrict web server process permissions to limit the set of files readable by the www-data (or equivalent) user, and consider blocking outbound MIME embedding by disabling HTML inline image processing at the mail server configuration level; note this degrades email rendering fidelity. Web application firewall rules blocking file:// or php:// strings in POST request bodies targeting the mail compose endpoint can reduce exploitability but should not be treated as a substitute for the code fix.

Affected VersionsENISA

egroupware 26.0.20251208, < 26.5.20260507
egroupware < 23.1.20260601

Affected Packages

composer egroupware/egroupware fix: 23.1.20260601, 26.5.20260507
euvd egroupware fix: 23.1.20260601, 26.5.20260507

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected code is in the processURL2InlineImages function within api/src/Mail.php of the EGroupware PHP groupware platform (CPE: pkg:composer/egroupware_egroupware). The function is designed to convert externally linked images in HTML email bodies into inline MIME attachments. The root-cause class is CWE-73 (External Control of File Name or Path): the URI scheme guard !str_starts_with($myUrl, 'http') was intended to distinguish remote HTTP resources from local relative paths, but file:///etc/passwd does not start with 'http', so the condition evaluates to true and file_get_contents($basedir . urldecode($myUrl)) is called with an attacker-controlled absolute file path. The additional urldecode() call prior to filesystem access may also permit percent-encoded path traversal sequences. PHP's file_get_contents() transparently supports file://, php://, ftp://, and other schemes unless explicitly restricted, making a simple prefix check wholly insufficient as a security boundary.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/EGroupware/egroupware) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 6.5 MEDIUM

Network-reachable exploit requiring only authenticated mail-user session; no integrity or availability impact; high confidentiality loss via arbitrary file read.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/EGroupware/egroupware).

CVSS VectorVendor: https://github.com/EGroupware/egroupware

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

DescriptionCVE.org

Summary

The function processes image URLs embedded in an HTML email body without validating or restricting URI schemes. The check !str_starts_with($myUrl, 'http') evaluates to true for file:// URIs, causing file_get_contents($basedir . urldecode($myUrl)) to read arbitrary files from the server filesystem and embed them as inline MIME attachments in outgoing email.

str_starts_with('file:///etc/passwd', 'http') → false !false → true

php
// api/src/Mail.php
foreach($images[2] as $i => $url)
			{
				//$isData = false;
				$basedir = $data = '';
				$needTempFile = true;
				$attachmentData = ['name' => '', 'type' => '', 'file' => '', 'tmp_name' => ''];
				try
				{
					// do not change urls for absolute images (thanks to corvuscorax)
					if (!str_starts_with($url, 'data:'))
					{
						$attachmentData['name'] = basename($url); // need to resolve all sort of url
						if (($directory = dirname($url)) == '.') $directory = '';
						$ext = pathinfo($attachmentData['name'], PATHINFO_EXTENSION);
						$attachmentData['type'] = MimeMagic::ext2mime($ext);
						if ( strlen($directory) > 1 && !str_ends_with($directory, '/')) { $directory .= '/'; }
..
...
....
// processURL2InlineImages function
if ( $myUrl[0]!='/' && strlen($basedir) > 1 && !str_ends_with($basedir, '/')) { $basedir .= '/'; }
						if ($needTempFile && empty($attachment) && !str_starts_with($myUrl, "http"))
						{
							try {
								$data = file_get_contents($basedir.urldecode($myUrl));
							}
							catch (\Throwable $e) {
								_egw_log_exception($e);
							}
						}
					}
					if (str_starts_with($url, 'data:'))

PoC

  1. Log in as any authenticated EGroupware user with mail access and open the mail compose window.
  2. Switch to HTML body mode and insert: <img src="file:///etc/passwd">.
  3. The server executes file_get_contents('file:///etc/passwd'), writes the content to a temp file, and attaches it as an inline MIME part.

Impact

An authenticated attacker can read arbitrary files accessible by the web server process, including /etc/passwd, application configuration files containing database credentials, private TLS keys, and environment files.

Remediation

Enforce a strict URI scheme allowlist before calling file_get_contents(). Replace the check !str_starts_with($myUrl, 'http') with if (!preg_match('#^https?://#i', $myUrl)) { continue; } to reject file://, ftp://, php://, data://, and any other non-HTTP scheme.

Threat Intelligence Overview

EPSS Score
0.3%
Top 74% exploitable
Prevalence
Low
niche PHP groupware, limited enterprise footprint versus major platforms
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

52
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy