Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain local shell account
-
DeliveryWrite malicious pipe directive to ~/.forward
-
ExploitSend or receive mail to trigger delivery
-
ExecutionExim invokes pipe transport for .forward processing
-
Persistforce_command constraint bypassed due to mishandling
-
ImpactExecute arbitrary commands with Exim delivery privileges
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V15 - Secure Coding and Architecture Trusted source inclusion only
|
| Exploitation Conditions | Exploitation requires a local shell account on the target system (CVSS PR:L, AV:L) with the ability to write to the account's home directory to create or modify ~/.forward. The Exim installation must be configured to process .forward files for local mail delivery, and pipe transport must be enabled and accessible to local user accounts - this is a common Exim configuration but not universally deployed. Exploitation is triggered when mail is delivered to the attacker's local account, causing Exim to process the malicious .forward file through the pipe transport. Remote unauthenticated exploitation is not possible. Configurations that disable .forward processing (e.g., no_process_forward in the local delivery router), restrict pipe transport usage to trusted accounts, or set force_command correctly would prevent exploitation. Shared hosting environments and multi-user Unix systems where untrusted local users exist represent the highest-risk deployment scenario. |
| Impact | The CVSS 3.1 score of 7.8 High with vector AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H accurately reflects the local privilege escalation profile: a standard user account is sufficient, complexity is low, no interaction is required, and full CIA impact results upon success. However, multiple signals temper immediate urgency: EPSS at 0.10% (1st percentile) places this well below typical exploitation thresholds; SSVC independently rates exploitation status as 'none' and automatable as 'no,' consistent with the local-only attack vector that precludes mass exploitation. SSVC rates technical impact as 'total,' matching the H/H/H CVSS impact triad. This vulnerability is absent from CISA KEV with no public exploit code identified. Realistic risk is highest in multi-user Linux environments where untrusted local accounts exist - shared hosting, academic or research servers, legacy Unix systems. In containerized or single-tenant deployments, exploitation is constrained to scenarios where an attacker already has local shell access, significantly reducing the threat surface relative to the raw CVSS score. |
| Exploit ScenarioDerived | A local user on a multi-user Linux server running a vulnerable Exim version crafts a ~/.forward file containing a pipe directive designed to execute a privilege-escalating shell command. When Exim processes incoming mail for that user's account, the mishandling of force_command in the pipe transport allows the user-controlled command to execute under the elevated privileges of the Exim mail delivery context rather than being overridden by the administrator-defined force_command. No public exploit code has been identified at the time of this analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Aug 17, 2026
Privilege escalation in Exim versions 4.82 through 4.99.4 permits local users with shell access to execute arbitrary commands with elevated mail delivery privileges by crafting a malicious ~/.forward file that exploits mishandled force_command logic in the pipe transport. The affected deployment window is substantial - covering a wide span of Exim releases present across Debian, Ubuntu, and other Linux distributions. No confirmed active exploitation or public exploit code has been identified at the time of analysis; SSVC rates this as non-automatable with no observed exploitation, though technical impact is assessed as total given full CIA compromise upon success.
Earlier versions of this analysis (1)
Local privilege escalation in Exim mail transfer agent before 4.99.5 lets an unprivileged local user with mailbox access escalate privileges by abusing mishandled force_command handling in the pipe transport during .forward file processing. CWE-829 (inclusion of functionality from an untrusted control sphere) allows a user-controlled .forward file to run pipe commands under a privilege context the operator did not intend, yielding full confidentiality, integrity, and availability compromise (CVSS 7.4). No public exploit identified at time of analysis; disclosed via oss-security on 2026-07-22.
RemediationAI
Upgrade Exim to version 4.99.5 or later, the vendor-confirmed fixed release that corrects force_command mishandling in the pipe transport. The upstream disclosure is available via the oss-security mailing list (https://openwall.com/lists/oss-security/2026/07/22/9) and tracked as EUVD-2026-48479. If an immediate upgrade is not feasible, administrators should restrict or disable pipe transport delivery in Exim's configuration: removing pipe transport definitions or setting 'allow_filter = false' for local delivery routers prevents untrusted .forward pipe directives from being processed. Disabling .forward file inclusion entirely for non-trusted accounts eliminates the attack surface at the cost of removing user-level mail forwarding functionality. These workarounds address exploitability but do not fix the underlying logic error; upgrading to 4.99.5 remains the definitive remediation.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Exim is a Unix/Linux mail transfer agent (MTA) identified by CPE cpe:2.3:a:exim:exim:*:*:*:*:*:*:*:*. The vulnerability lies in Exim's .forward file processing mechanism, which allows local users to define mail forwarding rules - including piping mail to shell commands via pipe transports. The force_command directive in a pipe transport configuration is intended to override any user-specified command in .forward files with a fixed, administrator-defined command, providing a security boundary. CWE-829 (Inclusion of Functionality from Untrusted Control Sphere) identifies the root cause: the mishandling of force_command allows a user-controlled .forward file to influence command execution in a context that should be restricted to administrator-defined commands only. This enables escalation from local user privileges to those of the Exim mail delivery process, which typically runs with elevated credentials (mail group, setuid, or root depending on system configuration).
Know when Exim 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
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Requires low-privileged local shell account to write .forward file; no interaction or elevated auth needed; full CIA impact on privilege escalation to mail delivery context.
Primary rating from Vendor (mitre).
CVSS VectorNVD
Lifecycle Timeline
4DescriptionNVD
Exim before 4.99.5 allows .forward privilege escalation because force_command for a pipe transport is mishandled.
Executive ViewAI
Exim mail servers running versions 4.82 through 4.99.4 contain a privilege escalation vulnerability enabling local users to execute arbitrary commands with elevated email-processing privileges; no public exploit code has been identified at time of analysis. This impacts organizations across Linux infrastructure-particularly those running Debian and Ubuntu-threatening email integrity, system access, and operational continuity. Prioritized patching of all affected Exim instances is essential to address this escalation vector.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.
The receive_msg function in receive.c in the SMTP daemon in Exim 4.88 and 4.89 allows remote attackers to execute arbitr
The receive_msg function in receive.c in the SMTP daemon in Exim 4.88 and 4.89 allows remote attackers to cause a denial
Exim before 4.86.2, when installed setuid root, allows local users to gain privileges via the perl_startup argument. Rat
Exim mail server version 4.98 before 4.98.1 contains a remote SQL injection vulnerability when SQLite hints and ETRN ser
A flaw was found in Exim versions 4.87 to 4.91 (inclusive). Rated critical severity (CVSS 9.8), this vulnerability is re
Heap-based buffer overflow in the dkim_exim_query_dns_txt function in dkim.c in Exim 4.70 through 4.80, when DKIM suppor
Exim before 4.95 has a heap-based buffer overflow for the alias list in host_name_lookup in host.c when sender_host_name
Exim 4.92 through 4.92.2 allows remote code execution, a different vulnerability than CVE-2019-15846. Rated critical sev
An issue was discovered in the base64d function in the SMTP listener in Exim before 4.90.1. Rated critical severity (CVS
A UNIX Symbolic Link (Symlink) Following vulnerability in the packaging of exim in openSUSE Factory allows local attacke
Exim before 4.96 has an invalid free in pam_converse in auths/call_pam.c because store_free is not used after store_mall
Exim through 4.93 has an out-of-bounds read in the SPA authenticator that could result in SPA/NTLM authentication bypass
EUVD-2026-48479
GHSA-mffw-2crm-m32h
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB