Exim Mail Server RCE Requires Zero Auth—Patch to 4.99.3 Now
CVE-2026-45185 is a use-after-free in Exim affecting GnuTLS builds with BDAT support. Unauthenticated attackers can achieve remote code execution via crafted SMTP traffic.
A critical use-after-free vulnerability in Exim allows unauthenticated remote code execution against mail servers running default configurations. Tracked as CVE-2026-45185 and dubbed "Dead.Letter," the flaw affects Exim versions 4.97 through 4.99.2 when compiled with GnuTLS—the default TLS library on most Linux distributions.
The barrier to exploitation is essentially zero: no authentication, no non-standard configuration, just a TLS connection with BDAT support (enabled by default in modern Exim).
Technical Details
The vulnerability lives in Exim's TLS shutdown handling during BDAT (chunked SMTP) traffic processing. Here's what happens:
- Exim allocates a TLS transfer buffer for handling encrypted data
- During TLS shutdown, Exim frees that buffer
- The code continues using stale callback references that can write data into the freed memory region
- Attacker-controlled data lands in freed memory, achieving code execution
XBOW researcher Federico Kirschbaum discovered the flaw and reported it to Exim maintainers on May 1, 2026. The patch landed in version 4.99.3, released May 12.
Who's Vulnerable
Affected configurations:
- Exim 4.97 through 4.99.2
- Compiled with GnuTLS (default on Debian, Ubuntu, many others)
- STARTTLS and CHUNKING (BDAT) advertised
Not affected:
- Exim compiled with OpenSSL instead of GnuTLS
- Exim versions before 4.97
- Servers that have disabled BDAT/CHUNKING support
The catch is that most production Exim installations meet all the vulnerable criteria. GnuTLS is the default on Debian-based systems, and BDAT support has been enabled by default since Exim 4.88.
Scale of Exposure
Exim handles an estimated 57% of the world's email servers according to E-Soft surveys. Even a fraction of vulnerable instances represents millions of servers.
Previous Exim vulnerabilities have drawn immediate attention from threat actors. The 2019 Exim CVE-2019-15846 was weaponized within days of disclosure, with attackers scanning for vulnerable servers en masse.
Remediation Steps
- Upgrade to Exim 4.99.3 — The patched version is available from the official Exim site
- Rebuild with OpenSSL — If upgrading isn't immediately possible, recompiling Exim with OpenSSL instead of GnuTLS removes the vulnerable code path
- Disable CHUNKING — Adding
chunking_advertise_hosts =(empty value) to your Exim configuration disables BDAT support, though this may impact mail delivery from some senders
Exploitation Timeline
Given the combination of factors—unauthenticated access, default configuration vulnerability, and massive deployment footprint—expect active exploitation to follow quickly if it hasn't already begun.
The 11-day window between report and patch is tight by coordinated disclosure standards, but the simplicity of exploitation means motivated attackers likely reverse-engineered the fix within hours of the 4.99.3 release.
This follows a pattern we've seen with other critical mail server vulnerabilities, where threat actors prioritize email infrastructure for its access to sensitive communications and its value as a pivot point into enterprise networks.
Organizations running Exim should also review basic online safety practices for mail server hardening—network segmentation, monitoring for anomalous connections, and having incident response plans ready.
Related Articles
Exim 'Dead.Letter' Flaw Enables Unauthenticated RCE on Mail Servers
CVE-2026-45185 is a critical use-after-free vulnerability in Exim mail servers using GnuTLS. XBOW researchers call it one of the highest-caliber bugs found in Exim.
May 13, 2026Chrome 151 Patches 382 Flaws Including 15 Critical RCE Bugs
Google releases Chrome 151 fixing 382 vulnerabilities including 15 critical use-after-free and type confusion bugs enabling remote code execution across Windows, macOS, and Linux.
Jul 6, 2026Bad Epoll: Linux Kernel Flaw Grants Root on Servers and Android
CVE-2026-46242 exploits a use-after-free race in Linux epoll, giving unprivileged users root access with 99% reliability. Servers and Android devices at risk.
Jul 4, 2026Adobe Patches 7 Max-Severity ColdFusion, Campaign Flaws
Seven CVSS 10.0 vulnerabilities in Adobe ColdFusion and Campaign Classic enable unauthenticated RCE. Adobe shifts to twice-monthly security bulletins citing AI-accelerated discovery.
Jul 2, 2026