Skip to main content

Exim CVE-2026-40685

| EUVDEUVD-2026-26443 MEDIUM
Incorrect Provision of Specified Functionality (CWE-684)
2026-04-30 mitre
6.5
CVSS 3.1 · NVD
Share

Severity by source

NVD PRIMARY
6.5 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
SUSE
MEDIUM
qualitative

Primary rating from NVD.

CVSS VectorNVD

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

Lifecycle Timeline

6
Patch released
May 01, 2026 - 17:51 nvd
Patch available
Patch available
Apr 30, 2026 - 23:02 EUVD
Analysis Generated
Apr 30, 2026 - 22:00 vuln.today
EUVD ID Assigned
Apr 30, 2026 - 21:45 euvd
EUVD-2026-26443
Analysis Generated
Apr 30, 2026 - 21:45 vuln.today
CVE Published
Apr 30, 2026 - 00:00 nvd
MEDIUM 6.5

DescriptionCVE.org

In Exim before 4.99.2, when JSON lookup is enabled, an out-of-bounds heap write can occur when a JSON operator encounters malformed JSON in an untrusted header, because of an incorrect implementation of \ skipping.

AnalysisAI

Out-of-bounds heap write in Exim before 4.99.2 allows unauthenticated remote attackers to cause denial of service and potentially corrupt memory when the JSON lookup feature is enabled and malformed JSON is present in untrusted email headers, due to incorrect backslash escape sequence handling in the JSON operator.

Technical ContextAI

Exim is a mail transport agent (MTA) that processes email headers and message content. The vulnerability exists in Exim's JSON lookup functionality, which parses JSON-formatted data within email processing contexts. The root cause (CWE-684: Incorrect Type Conversion or Cast) stems from improper implementation of backslash escape sequence skipping in the JSON operator-specifically, the parser fails to correctly handle malformed escape sequences, leading to out-of-bounds writes into heap memory. When JSON lookup is enabled and an untrusted email header contains specially crafted malformed JSON, the parser writes beyond allocated buffer boundaries, corrupting heap structures. The vulnerability is triggered during mail message processing, a network-facing operation in typical MTA deployments.

RemediationAI

Upgrade Exim to version 4.99.2 or later to apply the vendor-released patch. The upstream fix is confirmed by commit 9fdc057e71b87c87a0d3d2288b2810a0efaaba57 in the Exim repository. For organizations unable to patch immediately, the primary mitigation is to disable the JSON lookup feature in the Exim configuration file unless it is actively required for mail processing logic-edit the configuration to remove or comment out JSON lookup operators and restart the service. As a compensating control, restrict email routing through the vulnerable server to trusted internal sources only and implement strict rate-limiting on mail submission ports to reduce exposure window. However, these controls do not eliminate the vulnerability if JSON lookup remains enabled. Detailed assessment and patch availability information is available at https://exim.org/static/doc/security/cve-2026-04.1/CVE2026-40685.assessment and the Exim security advisory at https://exim.org/static/doc/security/CVE-2025-40685.txt.

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

Share

CVE-2026-40685 vulnerability details – vuln.today

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