Skip to main content

Exim CVE-2026-66141

| EUVDEUVD-2026-48479 HIGH
Inclusion of Functionality from Untrusted Control Sphere (CWE-829)
2026-07-24 mitre GHSA-mffw-2crm-m32h
7.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Obtain local shell account
  2. Delivery
    Write malicious pipe directive to ~/.forward
  3. Exploit
    Send or receive mail to trigger delivery
  4. Execution
    Exim invokes pipe transport for .forward processing
  5. Persist
    force_command constraint bypassed due to mishandling
  6. Impact
    Execute 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv2 – 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)
v1 Jul 24, 2026 - 05:17 CVSS 7.4

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

exim 4.82 <4.99.5

Affected Packages

euvd exim fix: 4.99.5

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

Vendor (mitre) PRIMARY HIGH
NVD 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.8 HIGH

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.

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

Primary rating from Vendor (mitre).

CVSS VectorNVD

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

Lifecycle Timeline

4
Analysis Updated
Aug 17, 2026 - 19:16 vuln.today
v2 - CVSS changed
CVSS changed
Aug 17, 2026 - 19:07 NVD
7.4 (HIGH) 7.8 (HIGH)
Patch available
Jul 24, 2026 - 06:02 EUVD
CVE Published
Jul 24, 2026 - 04:37 cve.org
HIGH 7.4

DescriptionNVD

Exim before 4.99.5 allows .forward privilege escalation because force_command for a pipe transport is mishandled.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 99% exploitable
Prevalence
High
default MTA on Debian/Ubuntu, widespread Linux server deployment
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor VulDB

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 HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

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

Attack Technique

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

More in Exim

View all
CVE-2017-16943 CRITICAL POC
9.8 Nov 25

The receive_msg function in receive.c in the SMTP daemon in Exim 4.88 and 4.89 allows remote attackers to execute arbitr

CVE-2017-16944 HIGH POC
7.5 Nov 25

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

CVE-2016-1531 HIGH POC
7.0 Apr 07

Exim before 4.86.2, when installed setuid root, allows local users to gain privileges via the perl_startup argument. Rat

CVE-2025-26794 HIGH
7.5 Feb 21

Exim mail server version 4.98 before 4.98.1 contains a remote SQL injection vulnerability when SQLite hints and ETRN ser

CVE-2019-10149 CRITICAL POC
9.8 Jun 05

A flaw was found in Exim versions 4.87 to 4.91 (inclusive). Rated critical severity (CVSS 9.8), this vulnerability is re

CVE-2012-5671 MEDIUM
6.8 Oct 31

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

CVE-2022-37452 CRITICAL POC
9.8 Aug 07

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

CVE-2019-16928 CRITICAL POC
9.8 Sep 27

Exim 4.92 through 4.92.2 allows remote code execution, a different vulnerability than CVE-2019-15846. Rated critical sev

CVE-2018-6789 CRITICAL POC
9.8 Feb 08

An issue was discovered in the base64d function in the SMTP listener in Exim before 4.90.1. Rated critical severity (CVS

CVE-2020-8015 HIGH POC
7.8 Apr 02

A UNIX Symbolic Link (Symlink) Following vulnerability in the packaging of exim in openSUSE Factory allows local attacke

CVE-2022-37451 HIGH POC
7.5 Aug 06

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

CVE-2020-12783 HIGH POC
7.5 May 11

Exim through 4.93 has an out-of-bounds read in the SPA authenticator that could result in SPA/NTLM authentication bypass

Vendor StatusVendor

SUSE

Severity: Important

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