Description
Exim before 4.99.5 allows .forward privilege escalation because force_command for a pipe transport is mishandled.
Published: 2026-07-24
Score: 7.4 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Exim versions older than 4.99.5 mishandle the force_command directive for a pipe transport within .forward files, which allows an attacker to execute arbitrary commands with the privileges of the Exim daemon. This flaw is classified as a privilege‑elevation vulnerability (CWE‑829) and can compromise the confidentiality, integrity, and availability of the mail server environment.

Affected Systems

All instances of Exim running a version prior to 4.99.5 are affected. The vulnerability applies regardless of the operating system or host configuration, as long as the mail server processes .forward files and supports pipe transports.

Risk and Exploitability

The CVSS score of 7.4 indicates a high severity of the flaw, but the EPSS score of less than 1% suggests a very low probability of exploitation in the wild. The vulnerability is not listed in the CISA KEV catalog. Based on the description, the likely attack vector involves creating or modifying a .forward file that Exim reads; an attacker must have the ability to write such a file. No publicly released exploit is documented, but the lack of an exploit does not mitigate the risk of privileged execution if an attacker can influence the .forward content.

Generated by OpenCVE AI on August 3, 2026 at 20:41 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Exim to version 4.99.5 or newer, which resolves the force_command mishandling bug.
  • If upgrading cannot be performed immediately, disable pipe transports in the Exim configuration to eliminate the vulnerable execution path.
  • Restrict write access to directories that contain .forward files, ensuring that only privileged or trusted users can create or modify these files.

Generated by OpenCVE AI on August 3, 2026 at 20:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DSA Debian DSA DSA-6400-1 exim4 security update
History

Mon, 03 Aug 2026 21:00:00 +0000

Type Values Removed Values Added
Title Privilege Escalation via .forward File in Exim before 4.99.5

Mon, 27 Jul 2026 07:00:00 +0000

Type Values Removed Values Added
Title Privilege Escalation via .forward File in Exim before 4.99.5

Fri, 24 Jul 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 24 Jul 2026 04:45:00 +0000

Type Values Removed Values Added
Description Exim before 4.99.5 allows .forward privilege escalation because force_command for a pipe transport is mishandled.
First Time appeared Exim
Exim exim
Weaknesses CWE-829
CPEs cpe:2.3:a:exim:exim:*:*:*:*:*:*:*:*
Vendors & Products Exim
Exim exim
References
Metrics cvssV3_1

{'score': 7.4, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-07-24T18:42:19.559Z

Reserved: 2026-07-24T04:37:45.699Z

Link: CVE-2026-66141

cve-icon Vulnrichment

Updated: 2026-07-24T18:42:13.349Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-24T05:16:49.890

Modified: 2026-07-30T14:15:31.167

Link: CVE-2026-66141

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T20:45:03Z

Weaknesses
  • CWE-829

    Inclusion of Functionality from Untrusted Control Sphere