CVE-2026-45016 in EGroupware
Summary
by MITRE • 11/16/2026
EGroupware is a web-based groupware server written in PHP. Prior to 23.1.20260601 and 26.5.20260507, the processURL2InlineImages logic in api/src/Mail.php treats non-HTTP image sources in an HTML mail body as local paths and passes a decoded attacker-controlled file:// URI to file_get_contents. Any authenticated user with mail access can cause files readable by the web server process to be embedded as inline MIME attachments in outgoing email, exposing local configuration, credentials, private keys, or other server files. This issue is fixed in versions 23.1.20260601 and 26.5.20260507.
VulDB is the best source for vulnerability data and more expert information about this specific topic.
Analysis
by VulDB Data Team • 11/16/2026
EGroupware represents a widely deployed web-based groupware solution written primarily in PHP, designed to facilitate collaborative work through features such as email management, calendar scheduling, and contact organization. Within this ecosystem, the mail handling subsystem processes incoming HTML content to render messages for users while also managing how external resources are handled during message composition or forwarding. A critical security flaw exists within the processURL2InlineImages logic located in the api/src/Mail.php module of versions prior to 23.1.20260601 and 26.5.20260507. This specific function is responsible for converting external image URLs embedded in HTML email bodies into inline MIME attachments, a common practice to ensure images display correctly even when remote content blocking policies are active or when the recipient's client does not support remote loading of assets.
The core technical vulnerability stems from an improper validation and sanitization mechanism applied to non-HTTP image sources found within the HTML body of emails. When the application encounters an image source that is not explicitly identified as using HTTP or HTTPS protocols, it erroneously assumes the value represents a local file system path rather than evaluating other URI schemes such as file://. Consequently, if an attacker crafts an email containing an img tag with a src attribute set to a decoded file:// URI pointing to sensitive server-side files, the application fails to reject this input. Instead, it proceeds to pass this maliciously constructed URI directly to PHP's file_get_contents function. This function reads the contents of the specified path and embeds them into the email as an inline attachment without performing adequate security checks to verify that the target resource is intended for public access or belongs to a whitelisted directory structure.
The operational impact of this vulnerability allows any authenticated user with mail access capabilities to perform unauthorized local file inclusion attacks against the underlying server infrastructure. By leveraging their ability to send emails, an attacker can trigger the processing logic to read arbitrary files from the web server's filesystem that are readable by the process running the EGroupware application. This typically includes sensitive configuration files such as database connection strings containing plaintext credentials, private SSL/TLS keys used for securing communications, environment variables storing API secrets or administrative passwords, and potentially source code of other applications hosted on the same server. The extracted data is then embedded into an outgoing email message sent by the attacker's account, effectively exfiltrating this sensitive information to a location controlled by the adversary. This constitutes a severe breach of confidentiality within the organization's IT environment.
From a classification perspective, this vulnerability aligns with CWE-20 Improper Input Validation and CWE-798 Use of Hard-coded Credentials if it leads to credential exposure, though its primary mechanism is best described as CWE-434 Unrestricted Upload of File with Dangerous Type or more accurately CWE-59 Incorrect Link Resolution when considering the URI scheme handling. In terms of offensive security frameworks, this behavior maps directly to ATT&CK technique T1083 File and Directory Discovery, where an attacker explores the file system to locate valuable data, followed by T1041 Exfiltration Over C2 Channel or T1567 Data Staged if the exfiltrated files are stored locally before transmission. The attack vector is classified as Network-based with Authentication Required, indicating that while remote exploitation is possible, it requires valid user credentials within the EGroupware application.
Mitigation strategies must prioritize immediate patching to eliminate the root cause of the vulnerability. Organizations running affected versions should upgrade EGroupware to version 23.1.20260601 or later, which includes fixes for this logic error in the mail processing module. Until patches can be applied, administrators may consider implementing web application firewall rules that detect and block requests containing file:// URIs within HTML content processed by the EGroupware API endpoints. Additionally, enforcing strict Content Security Policy headers on any interfaces exposing email composition features can help mitigate related risks associated with arbitrary data injection. It is also advisable to review access controls for sensitive directories such as /etc or application configuration paths to ensure they are not readable by the web server process user account, thereby reducing the blast radius even if exploitation occurs. Regular auditing of mail logs and monitoring for unusual outbound email attachments can aid in detecting potential abuse attempts during the remediation window.