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
Share

Severity by source

Vendor (mitre) PRIMARY
HIGH
qualitative
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
qualitative
Red Hat
7.4 HIGH
qualitative

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

6
Analysis Updated
Aug 17, 2026 - 19:16 vuln.today
v2 (cvss_changed)
Re-analysis Queued
Aug 17, 2026 - 19:07 vuln.today
cvss_changed
CVSS changed
Aug 17, 2026 - 19:07 NVD
7.4 (HIGH) 7.8 (HIGH)
Patch available
Jul 24, 2026 - 06:02 EUVD
Analysis Generated
Jul 24, 2026 - 05:17 vuln.today
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.

AnalysisAI

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.

Technical ContextAI

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).

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.

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

Share

CVE-2026-66141 vulnerability details – vuln.today

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