medium CVSS 4.8 EPSS 0.67%

CVE-2026-40687·Exim vulnerability

In Exim before 4.99.2, when the SPA authentication driver is used with an adversarial SPA resource, there can be an out-of-bounds write that crashes the connection instance, or erroneous data processing that divulges data from uninitialized heap memory.

Severity
medium
Software
Exim
Fixed in
4.99.2
Published

How likely is exploitation

FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.67% — higher than 50% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.

Affected versions

Until: 4.99.2

Fixed in: 4.99.2

How to fix this CVE

Exim administrators using the SPA (Simple Protocol Authentication) authentication driver must upgrade to version 4.99.2 or later to address a memory safety issue that can cause service disruption or information disclosure. Update your Exim installation immediately to prevent potential denial of service and heap memory leakage through crafted SPA authentication requests.

sudo dnf update exim

Defensia detects this vulnerability

How to check if you are affected

  1. Step 1: Check installed Exim version with: exim --version | head -1
  2. Step 2: Verify SPA driver is enabled in exim configuration by running: grep -i 'spa' /etc/exim4/exim4.conf or equivalent config path
  3. Step 3: Search Exim mainlog for authentication failures or crashes: grep -i 'spa\|authentication\|crash' /var/log/exim4/mainlog | tail -50
  4. Step 4: Confirm patch was applied by verifying version 4.99.2 or higher: exim --version | grep -E '4\.(99\.[2-9]|[0-9]{3,})'
  5. Step 5: Test SPA authentication is functioning normally by attempting a test login or monitoring for connection errors

FAQ

What is CVE-2026-40687?

CVE-2026-40687 is a memory safety vulnerability in Exim's SPA authentication driver that can be triggered when processing specially crafted SPA authentication requests, leading to out-of-bounds memory writes or uninitialized heap data exposure.

Is CVE-2026-40687 being actively exploited?

No, CVE-2026-40687 is not listed on CISA's Known Exploited Vulnerabilities (KEV) catalog and no public exploits are available. However, organizations using SPA authentication should still prioritize patching.

What versions of Exim are affected by CVE-2026-40687?

All Exim versions before 4.99.2 are affected. The vulnerability is fixed in Exim 4.99.2 and later releases.

How do I check if my server is vulnerable to CVE-2026-40687?

Run 'exim --version' and compare the version number to 4.99.2. If your version is lower, you are vulnerable. Additionally, verify SPA authentication is in use by checking your Exim configuration file for spa authentication driver references.

Does Defensia detect CVE-2026-40687?

Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Exim is installed on a monitored server, CVE-2026-40687 will appear in your dashboard with remediation steps.

Related Exim CVEs

References

Track CVEs across your fleet automatically

Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-40687. Free for 1 server.

Get started free