Skip to main content

Exim CVE-2025-67896

CRITICAL
Heap-based Buffer Overflow (CWE-122)
2025-12-14 cve@mitre.org
Critical
Disputed · 9.8 NVD
View

Attack ChainAIDerived

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

  1. Access
    Reach internet-facing Exim SMTP service
  2. Delivery
    Send crafted messages hitting ratelimit path
  3. Exploit
    Poison ratelimit database records
  4. Execution
    Trigger heap overflow on unvalidated cast
  5. Impact
    Execute code in Exim process

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the target Exim server (version before 4.99.1) to be running with certain NON-DEFAULT rate-limit configurations - i.e., the ratelimit ACL feature must be enabled in a way that causes stored rate-limit database records to be read and cast directly into internal structures without validation; default installations are not stated to be affected. Given PR:N/UI:N in the published vector, no authentication or user interaction is needed once that configuration is present, and the attacker interacts remotely over SMTP. The primary LIMITING factor is this configuration dependency: servers using default rate-limiting (or none) are not exposed, which narrows the realistic attack surface well below what the 9.8 score alone implies.

Impact

The input CVSS is 9.8 (AV:N/AC:L/PR:N/UI:N, C:H/I:H/A:H), which on its face signals a remote, unauthenticated heap overflow with full RCE-grade impact in a network-facing mail server. However, the description qualifies the flaw as reachable only 'with certain non-default rate-limit configurations,' which materially contradicts the AC:L assumption baked into the published score - the NVD/MITRE vector does not account for the non-default configuration dependency. No EPSS score, SSVC decision, KEV listing, or POC was provided in the input: exploitation status is therefore 'no public exploit identified at time of analysis.' The absence of KEV and the explicit non-default-config gate together suggest this is NOT yet a mass-exploitation priority despite the 9.8, and is better characterized as a high-ceiling but config-gated issue; real-world exposure depends entirely on how many Exim deployments actually enable the affected ratelimit configuration. CONFLICT TO VERIFY: published vector says AC:L but the description's 'certain non-default rate-limit configurations' implies a specialized precondition - in my independent assessment this lowers the effective score. Priority is high for any organization that has confirmed the non-default ratelimit feature in use, and medium otherwise pending config audit.

Exploit ScenarioDerived

A remote attacker sends crafted SMTP traffic to an internet-facing Exim server that has been configured with the specific non-default rate-limit settings, causing poisoned database records to be cast directly into internal structures and triggering a heap-based buffer overflow in the Exim process. Because the Exim daemon typically runs with elevated privileges, a successful overflow can lead to remote code execution on the mail host. No public exploit code was identified in the provided data, so weaponization effort would currently fall on the attacker.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.5% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Oct 14, 2026

Remote heap-based buffer overflow in Exim before 4.99.1 allows an unauthenticated attacker to corrupt memory when the server runs certain non-default rate-limit configurations, potentially achieving code execution or denial of service. The published CVSS is 9.8, but the independent assessment sets attack complexity to High because exploitation hinges on the non-default rate-limit setup and default installations are not exposed. No public exploit code or confirmed active exploitation has been identified at time of analysis.

RemediationAI

Upgrade to Exim 4.99.1 or later (Vendor-released patch: 4.99.1) as the primary fix; the vendor advisory is at https://exim.org/static/doc/security/EXIM-Security-2025-12-09.1/report.txt. If immediate upgrade is not possible, disable or avoid the non-default rate-limit ACL configuration that triggers the vulnerable code path - reverting to default rate-limiting or disabling rate-limit ACLs removes exposure, at the trade-off of losing rate-limiting functionality. Because default installations are not stated to be affected, deployments that have not enabled the affected non-default rate limits are not exposed. Additional compensating controls include restricting SMTP access to trusted networks or hosts and monitoring for crafted rate-limit database records, though these measures may reduce legitimate mail flow and are not a substitute for patching. See also https://exim.org/static/doc/security/ and http://www.openwall.com/lists/oss-security/2025/12/14/1 for further guidance.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in Exim's rate-limit ACL feature. When certain non-default rate-limit configurations are used, Exim stores rate-limit data in a database and later reads those records, casting them directly into internal structures without validating size or type. This missing validation is a classic CWE-122 heap-based buffer overflow: an attacker who can trigger the vulnerable code path over SMTP can supply crafted data that overflows a heap buffer, leading to memory corruption that may be exploited for remote code execution or crash the mail server. The CPE cpe:2.3:a:exim:exim:*:*:*:*:*:*:*:* points to Exim as the affected product; the description and vendor advisory specify versions before 4.99.1, and the configuration prerequisite (non-default rate limiting) narrows exposure. References include the Exim security advisory at https://exim.org/static/doc/security/EXIM-Security-2025-12-09.1/report.txt and OSS-Security discussions at https://www.openwall.com/lists/oss-security/2025/12/11/2 and subsequent threads.

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

Sources disagree (Medium–Critical)
NVD PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.1 HIGH

Remote unauthenticated over SMTP (AV:N/PR:N/UI:N), but AC:H because the vulnerable code path exists only under specific non-default rate-limit configurations; heap overflow in the Exim process yields full C:H/I:H/A:H.

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

vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.

CVSS VectorNVD

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

DescriptionNVD

Exim before 4.99.1, with certain non-default rate-limit configurations, allows a remote heap-based buffer overflow because database records are cast directly to internal structures without validation.

Executive ViewAI

Why It Matters

Exim mail servers running non-default rate-limit configurations are exposed to a critical heap-based buffer overflow (CVE-2025-67896, CVSS 9.8) that can corrupt memory and potentially enable remote code execution or denial of service. The risk is concentrated rather than universal: default Exim installations are not exposed, but any mail gateway customized for anti-abuse throttling or traffic shaping becomes a candidate for compromise, and the independent assessment rates attack complexity as High because exploitation depends on that configuration. Leadership should care because a compromised or halted mail gateway disrupts a business-critical communication channel and can serve as a foothold for lateral movement into the internal network; no public exploit has been identified at time of analysis, but no vendor-released patch has been identified either.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: remove or disable non-default rate-limit configuration (the precondition for exploitation) on any Internet-facing Exim instance; restrict SMTP access on ports 25/465/587 to known relay and partner IP ranges; deploy network or host-level filtering in front of affected servers; enable crash and process-monitoring alerts on mail gateways; and plan an upgrade to Exim 4.99.1 or later as soon as a vendor or distribution build is available.

Threat Intelligence Overview

EPSS Score
0.5%
Top 61% exploitable
Prevalence
High
Exim is among the most widely deployed internet mail transfer agents
Data Quality
2 sources
Confidence: Low

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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.5%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

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

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.

Affected Products (CPE)NVD

cpe:2.3:a:exim:exim:*:*:*:*:*:*:*:*

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

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