A serious security flaw in Exim, one of the internet’s most widely used mail transfer agents, is putting thousands of production email servers at risk.
Tracked as EXIM-Security-2026-05-01.1 and publicly disclosed on May 12, 2026, the vulnerability allows a remote attacker to corrupt server memory and potentially execute malicious code, no credentials, no special access, no prior foothold required.
Security researcher Federico Kirschbaum of XBOW Security reported the issue to the Exim maintainers on May 1, 2026.
Led by Heiko Schlittermann, the Exim team quickly confirmed the flaw, developed a fix in a private repository, and notified distributors under restricted early access before publishing the public advisory.
The coordinated disclosure process reflects how seriously the team treated the report.
The vulnerability affects all Exim builds from version 4.97 through 4.99.2 compiled with GnuTLS support, covering a large share of Linux-based mail servers running in production environments today.
Exim BDAT Vulnerability Exposes GnuTLS Servers
The flaw lives inside Exim’s GnuTLS backend, the component responsible for handling TLS-encrypted email communication.
It is triggered through a specific interaction between the BDAT command part of the CHUNKING SMTP extension used to send large email bodies in pieces and TLS session teardown behavior.
When an attacker sends a TLS close_notify alert before a BDAT body transfer completes, Exim begins tearing down the TLS session internally.
The problem is that the input processing stack is not properly reset at this point, leaving stale memory pointers behind.
The attacker then sends one final byte in cleartext over the same TCP connection. Exim attempts to write data using a pointer that now references already-freed memory, corrupting the heap.
This is a classic use-after-free condition, a memory bug class well known for enabling code execution.
In the right conditions, an attacker can exploit the heap corruption to redirect execution flow and run arbitrary commands on the compromised server.
What makes this especially dangerous is the low barrier to entry: anyone who can open a standard TLS connection to an Exim server and use the BDAT extension can attempt this attack.
Both are completely standard features of modern email infrastructure.
It is worth noting that only Exim builds compiled with the USE_GNUTLS=yes flag are vulnerable.
Servers using OpenSSL or other TLS libraries are not affected by this specific attack path, but that still leaves a significant number of systems fully exposed.
Patch and Recommended Action
The Exim development team released version 4.99.3 on May 12, 2026, which fully resolves the vulnerability.
The fix properly resets the input processing stack whenever a TLS close_notify arrives during an active BDAT transfer, cutting off the entire exploitation chain before heap corruption can occur.
No known workaround or configuration change can substitute for upgrading. Administrators running Exim 4.97 through 4.99.2 with GnuTLS enabled should treat this as a high-priority patch.
The fixed release is available immediately through the official Exim FTP server and code repository.
Follow us on Google News , LinkedIn and X to Get More Instant Updates. Set Cyberpress as a Preferred Source in Google