Skip to main content

Exim MTA CVE-2026-40684

| EUVDEUVD-2026-26442 HIGH
Incorrect Provision of Specified Functionality (CWE-684)
2026-04-30 mitre
7.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Connect to musl-based Exim server
  2. Exploit
    Serve malformed PTR DNS record
  3. Execution
    Trigger dn_expand octal oddity
  4. Impact
    Crash connection instance

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Incorrect provision of specified functionality
Exploitation Conditions

Exploitation requires three specific conditions: (1) the Exim binary must be linked against musl libc (e.g. Alpine Linux and other musl distributions) - glibc builds are explicitly NOT affected; (2) the Exim version must be before 4.99.2; and (3) the attacker must be able to supply malformed DNS data in a PTR (reverse-lookup) record for a connecting client, which in practice means controlling or poisoning the reverse-DNS zone for an IP that connects to the server. The musl-only requirement is the dominant limiting factor, excluding the majority of mainstream Linux mail deployments. No authentication or user interaction is required (PR:N/UI:N). Impact is limited to a crash of the connection-handling instance, not confirmed full-service outage.

Impact

Signals converge on LOW real-world urgency despite the 7.5/CVSS 'High' label. The CVSS vector (AV:N/AC:L/PR:N/UI:N) describes a network-reachable, unauthenticated condition, but the only impact is availability (C:N/I:N/A:H), and the description states the effect is to 'crash the connection instance' - i.e. the forked per-connection child, not the master Exim daemon - so the input's A:H likely overstates the true blast radius. EPSS is very low (0.05%, 15th percentile) and SSVC records Exploitation: none, Automatable: no, Technical Impact: partial, all consistent with a non-weaponized, low-probability issue. There is no CISA KEV listing and no confirmed working exploit, so this is best treated as a high-CVSS-but-low-real-risk denial-of-service bug rather than an active threat. One important qualifier: the vulnerability only affects Exim built against musl libc (Alpine and similar), NOT the far more common glibc builds - the CPE string cpe:2.3:a:exim:exim does not encode this libc constraint, so automated CPE matching will over-report exposure. The vendor priority label is 'this_week', which is a patch-management cadence, not an emergency.

Exploit ScenarioDerived

An attacker who controls the reverse-DNS (PTR) record for a client IP connects to a musl-based Exim server (e.g. on Alpine Linux) running a version before 4.99.2; during the connection Exim performs a reverse lookup and processes the attacker's malformed PTR data, triggering a dn_expand octal-printing oddity that crashes the handling process. The result is denial of the affected connection instance rather than remote code execution. No confirmed working exploit code is identified at time of analysis; only a VulDB advisory reference exists.

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

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

Alert me

AnalysisAIv2 – Nov 11, 2026

Malformed DNS data in PTR records can crash an Exim connection instance, but only on builds linked against musl libc (such as Alpine Linux) running Exim before 4.99.2 - glibc builds are explicitly not affected. The crash is unauthenticated and requires no user interaction, yet even the independently assessed impact is limited to termination of the individual connection-handling process rather than a confirmed full-service outage (assessed CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L, below the 7.5 score in the CVE record). Exploitation additionally requires the attacker to control or poison the reverse-DNS zone for an IP that connects to the server, and SSVC rates exploitation as none with EPSS at 0.05% (15th percentile); no public exploit has been identified at time of analysis, and a vendor patch exists in Exim 4.99.2.

Earlier versions of this analysis (1)
v1 Apr 30, 2026 - 22:00 CVSS 5.9

Denial of service in Exim before 4.99.2 on musl libc systems allows remote attackers to crash mail server connection instances by sending malformed DNS PTR records that trigger an octal printing bug in the dn_expand function. The vulnerability requires high network complexity to exploit but results in service unavailability for affected connections. No patch version confirmation available from provided references.

RemediationAI

Vendor-released patch: upgrade to Exim 4.99.2 or later; the upstream fix is commit 628bbaca7672748d941a12e7cd5f0122a4e18c81 (https://code.exim.org/exim/exim/commit/628bbaca7672748d941a12e7cd5f0122a4e18c81), and the vendor advisory is at https://exim.org/static/doc/security/CVE-2026-40684.txt. Triage first on libc: run the affected host's Exim binary against ldd (or check the base image) and, if it is glibc-linked, no action is required for this CVE at all - that single check removes most of the reported exposure. For musl-linked builds (for example Alpine-based containers and appliances), schedule the 4.99.2 rebuild within the current week, since the fixed binary must be recompiled against musl to pick up the corrected behaviour rather than merely swapping a package version string. Where an immediate upgrade is not possible, exposure is bounded by the third exploitation prerequisite - the attacker must control or poison the PTR record for a connecting IP - so restricting which hosts can reach the SMTP listener and keeping reverse-DNS resolution for those peers inside zones you control reduces the attack surface; this is a containment measure, not a fix, and it does not address malformed PTR data originating from zones outside your control. No public exploit code has been identified, so emergency out-of-band change procedures are not indicated, but confirm whether any musl-based mail gateway is internet-facing before deprioritising it.

Affected VersionsENISA

exim 0 <4.99.2

Affected Packages

euvd exim fix: 4.99.2

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 performs reverse-DNS (PTR) lookups on connecting clients for logging, access control and policy decisions. That resolution relies on the C library's dn_expand-style name decompression routine, and musl libc's implementation differs from glibc's in how it renders certain expanded labels - the CVE description attributes the crash to 'a dn_expand oddity in octal printing'. Because the difference lives in the libc resolver rather than in Exim itself, the flaw is conditional on the toolchain: the same Exim source is safe when linked against glibc and crashable when linked against musl, which is why Alpine and other musl-based images are the relevant exposure surface. The assigned CWE-684 (Incorrect Provision of Specified Functionality) captures that the resolver helper does not deliver the behaviour the caller expects. The exact code path and the precise shape of the malformed PTR payload are not described in the available sources, so the trigger should be treated as characterised only at the level of 'malformed DNS data in a PTR record reaching the musl name-expansion routine'. Availability impact is confined to the connection instance handling the lookup; the sources do not establish that the daemon as a whole or other concurrent connections are affected.

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

NVD PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 5.3 MEDIUM

Network-reachable, unauthenticated malformed-PTR trigger (AV:N/AC:L/PR:N/UI:N); A:L not A:H because the description crashes only the per-connection instance, not the master daemon; musl-only is a platform constraint, not an access-complexity factor.

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

Primary rating from NVD.

CVSS VectorNVD

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

Lifecycle Timeline

6
Analysis Updated
Nov 11, 2026 - 21:36 vuln.today
v2 - CVSS changed
Severity Changed
Nov 11, 2026 - 21:22 NVD
MEDIUM HIGH
CVSS changed
Nov 11, 2026 - 21:22 NVD
5.9 (MEDIUM) 7.5 (HIGH)
Patch released
May 01, 2026 - 18:16 nvd
Patch available
Patch available
Apr 30, 2026 - 23:02 EUVD
CVE Published
Apr 30, 2026 - 00:00 nvd
MEDIUM 5.9

DescriptionNVD

In Exim before 4.99.2, on systems using musl libc (not glibc), an attacker can crash the connection instance when malformed DNS data is present in PTR records. This is caused by a dn_expand oddity in octal printing.

Executive ViewAI

Why It Matters

CVE-2026-40684 is a high-severity vulnerability in the Exim mail server that affects only deployments running on musl libc-based systems (e.g., Alpine Linux). A malformed DNS PTR record can crash an individual connection handler, causing limited disruption; however, exploitation requires attacker control of reverse DNS, no public exploit exists, and the vendor has released a patch. Leadership should prioritize patching affected systems to close the window of risk and ensure operational resilience for customer-facing email services.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 85% exploitable
Prevalence
High
Exim is one of the most widely deployed MTAs, though musl builds narrow exposure
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.0%
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
Open
Automatable
No
Human Impact
Medium
Technical Impact
Partial

Priority Score

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

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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: Medium

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