Out-of-bounds write in Exim - CVE-2026-40687
Published: May 7, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service.
The vulnerability exists due to out-of-bounds read/write in the SPA authentication driver when handling a hostile or compromised external SPA/NTLM connection. A remote attacker can provide crafted SPA/NTLM responses to cause a denial of service.
The issue is exposed in configurations that use the SPA authentication driver and may also leak heap data to the instance.
Affected software
Debian Linux
Gentoo Linux
Ubuntu
exim4 (Ubuntu package)
exim4-base (Ubuntu package)
exim4-daemon-heavy (Ubuntu package)
exim4-daemon-light (Ubuntu package)
exim4-dev (Ubuntu package)
eximon4 (Ubuntu package)
mail-mta/exim
exim4 (Debian package)
How to mitigate CVE-2026-40687
exim4 (Ubuntu package) - addressed in versions 4.93-13ubuntu1.12+esm1, 4.95-4ubuntu2.7, 4.97-4ubuntu4.4, 4.98.2-1ubuntu2.1, 4.99.1-1ubuntu1.1
exim4-base (Ubuntu package) - addressed in versions 4.93-13ubuntu1.12+esm1, 4.95-4ubuntu2.7, 4.97-4ubuntu4.4, 4.98.2-1ubuntu2.1, 4.99.1-1ubuntu1.1
exim4-daemon-heavy (Ubuntu package) - update to 4.93-13ubuntu1.12+esm1
exim4-daemon-light (Ubuntu package) - update to 4.93-13ubuntu1.12+esm1
exim4-dev (Ubuntu package) - update to 4.93-13ubuntu1.12+esm1
eximon4 (Ubuntu package) - addressed in versions 4.93-13ubuntu1.12+esm1, 4.95-4ubuntu2.7, 4.97-4ubuntu4.4, 4.98.2-1ubuntu2.1, 4.99.1-1ubuntu1.1
mail-mta/exim - update to 4.99.4
exim4 (Debian package) - addressed in versions 4.96-15+deb12u9, 4.98.2-1+deb13u2