CVE-2026-66140

exim: Exim: Privilege escalation via directory traversal due to mishandled queue-name arguments

Published Jul 24, 2026 CVSS 3.1 · 8.4 High EPSS < 1% KEV · Not listed
Description
Exim before 4.99.5 allows directory traversal to access files outside of the spool area, and consequently gain privileges, because arguments related to queue-name are mishandled.

Analysis

AI-generated

Technical impact

Exim versions prior to 4.99.5 are susceptible to a directory traversal flaw that is triggered through the queue-name argument. An attacker can construct a queue name containing path traversal characters, causing Exim to read files outside its spool directory. This flaw allows the attacker to view sensitive files and gain privileges within the host system, effectively escalating their access.

Affected Systems

All Exim releases older than 4.99.5 run on any platform that serves mail via SMTP. The vulnerability affects the mail transfer agent itself, independent of the underlying operating system. Systems with a deployed Exim installation that has not applied the 4.99.5 update remain at risk.

Risk and Exploitability

The CVSS score of 8.4 signals a high severity risk, while the EPSS score of less than 1% implies that exploitation is currently unlikely. The vulnerability is not cataloged in CISA’s KEV registry. Based on the description the attack vector is through specially crafted SMTP traffic targeting the queue-name handling logic. Successful exploitation would permit an attacker to read arbitrary files and elevate privileges on the afflicted host.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Exim to version 4.99.5 or later to fix the directory traversal flaw.
  • If an immediate upgrade is not possible, restrict access to the Exim SMTP service by using firewall rules or network segmentation to limit connections to trusted hosts.
  • Disable or filter queue-name input that contains path traversal sequences, ensuring the application enforces strict validation of queue identifiers.

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
Type Values Removed Values Added
Title Directory Traversal Exploiting Queue-Name Argument in Exim exim: Exim: Privilege escalation via directory traversal due to mishandled queue-name arguments
Weaknesses CWE-22
References
Metrics threat_severity

None

threat_severity

Important

Type Values Removed Values Added
Title Directory Traversal Exploiting Queue-Name Argument in Exim
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description Exim before 4.99.5 allows directory traversal to access files outside of the spool area, and consequently gain privileges, because arguments related to queue-name are mishandled.
First Time appeared Exim
Exim exim
Weaknesses CWE-24
CPEs cpe:2.3:a:exim:exim:*:*:*:*:*:*:*:*
Vendors & Products Exim
Exim exim
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-24

    Path Traversal: '../filedir'

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Jul 24, 2026, 12:25 PM
Reserved
Jul 24, 2026, 4:32 AM
Status
Analyzed
Published
Jul 24, 2026, 5:16 AM
Modified
Aug 17, 2026, 7:04 PM
Severity
Important
Public date
Jul 24, 2026, 4:32 AM