External risk intelligence

Exim mail server can leak customer data or crash when handling specific authentication requests

CVE advisorySeverity: CRITICAL (CVSS 9.1)

CVE-2026-40687

Exim is a widely deployed Mail Transfer Agent (MTA) typically configured to listen on the network edge to accept incoming email traffic from the internet. Because it handles public-facing SMTP authentication, the vulnerable authentication driver is directly reachable by external network entities.

Halo Surface Signal: 5 out of 5 — more likely to be public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

This critical issue in Exim, a mail server, could allow an attacker to crash a connection instance or reveal sensitive data from uninitialized memory. This vulnerability is especially concerning because it can be triggered remotely without any authentication.

  • Attackers can crash server connections.
  • Sensitive data may be exposed.
  • It affects internet-facing mail servers.

Attack Path

How an attacker could exploit the issue

An unauthenticated attacker can exploit this flaw by sending specially crafted data to the Exim mail server. This could lead to a denial-of-service by crashing the server instance, or potentially disclose sensitive information from the server's memory.

  • Remote attackers can abuse flaw.
  • No authentication required.
  • SPA authentication driver must be used.

Live Threat

Current exploitation, exposure, and threat context

This critical vulnerability in Exim's SPA authentication driver presents a significant risk due to its network-accessible nature and potential for denial-of-service or data leakage. Attackers are likely to target this given Exim's common deployment as a public-facing mail server. The vulnerability allows for remote exploitation without authentication, making it an attractive target for broad attacks.

  • Network-accessible vulnerability.
  • Critical impact: crash or data disclosure.
  • Published with exploitability details.

Operational Fix

Recommended remediation, mitigation, and detection steps

Prioritize identifying and isolating Exim instances using the SPA authentication driver. Given the critical severity and potential for unauthenticated remote code execution, actively exploited configurations present a significant risk. Focus on verifying if your Exim deployment is vulnerable and taking immediate containment measures.

  • Upgrade Exim to version 4.99.2 or later.
  • Block external access to vulnerable Exim instances.
  • Monitor logs for suspicious authentication attempts.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is the impact of CVE-2026-40687 on Exim email servers?

CVE-2026-40687 can cause an out-of-bounds write in Exim when the SPA authentication driver is used with an adversarial SPA resource. This can lead to a crash of the connection instance or erroneous data processing that divulges data from uninitialized heap memory.

What is the weakness class for CVE-2026-40687 in Exim?

The weakness identified for CVE-2026-40687 is CWE-909, which relates to issues with memory management and writing beyond allocated boundaries, potentially leading to data corruption or disclosure.

How can CVE-2026-40687 be triggered, and what is the scope of its impact?

The vulnerability can be triggered when the SPA authentication driver is used with an adversarial SPA resource. An unauthenticated remote attacker can exploit this flaw by sending specially crafted data to the Exim mail server. The impact can be a crash of the connection instance or disclosure of data from uninitialized heap memory.

How relevant is CVE-2026-40687 for internet-facing systems, and what is its exploitability?

This critical vulnerability in Exim's SPA authentication driver is very likely to be exploited because Exim is a widely deployed, public-facing Mail Transfer Agent (MTA). The vulnerability is network-accessible and requires no authentication, making it an attractive target for remote attackers.

What are the recommended actions to mitigate CVE-2026-40687?

To mitigate this vulnerability, it is recommended to upgrade Exim to version 4.99.2 or later. If an upgrade is not immediately possible, consider blocking external access to vulnerable Exim instances and monitor logs for suspicious authentication attempts.

References