Exim
CVE-2025-67896
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach internet-facing Exim SMTP service
-
DeliverySend crafted messages hitting ratelimit path
-
ExploitPoison ratelimit database records
-
ExecutionTrigger heap overflow on unvalidated cast
-
ImpactExecute 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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)AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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.
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
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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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
The receive_msg function in receive.c in the SMTP daemon in Exim 4.88 and 4.89 allows remote attackers to execute arbitr
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
Exim before 4.86.2, when installed setuid root, allows local users to gain privileges via the perl_startup argument. Rat
Exim mail server version 4.98 before 4.98.1 contains a remote SQL injection vulnerability when SQLite hints and ETRN ser
A flaw was found in Exim versions 4.87 to 4.91 (inclusive). Rated critical severity (CVSS 9.8), this vulnerability is re
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
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
Exim 4.92 through 4.92.2 allows remote code execution, a different vulnerability than CVE-2019-15846. Rated critical sev
An issue was discovered in the base64d function in the SMTP listener in Exim before 4.90.1. Rated critical severity (CVS
A UNIX Symbolic Link (Symlink) Following vulnerability in the packaging of exim in openSUSE Factory allows local attacke
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
Exim through 4.93 has an out-of-bounds read in the SPA authenticator that could result in SPA/NTLM authentication bypass
NVD
CVE.org
EPSS
GitHub PoC
Exploit-DB