Exim Fixes GnuTLS BDAT Flaw That Could Enable Code Execution

Summary
CVE-2026-45185, a use-after-free in Exim BDAT handling on GnuTLS builds, can cause heap corruption and potentially enable code execution. Versions 4.97–4.99.2 are affected; Exim 4.99.3 fixes the flaw.
Key points
- CVE-2026-45185, also called Dead.Letter, is a use-after-free in Exim's BDAT message-body handling.
- The flaw affects Exim versions 4.97 through 4.99.2 when built with USE_GNUTLS=yes; builds using other TLS libraries are not affected.
- The described trigger involves sending a TLS close_notify before a BDAT body transfer completes, then sending a final byte in cleartext on the same TCP connection.
- Exim says the sequence can cause a write into a freed buffer, leading to heap corruption and potential code execution.
- Exim fixed the issue in version 4.99.3; the article says no mitigations are available and advises users to upgrade.
- Federico Kirschbaum of XBOW is credited with discovering and reporting the flaw.
Article Details
- Vulnerability Types
- Use-after-free
- Heap corruption
- Severity
- Severe
- Affected Versions
- Exim 4.97 through 4.99.2 (USE_GNUTLS=yes builds)
- Exploitation Status
- unknown
- Exploit Availability
- unknown
- Patch Status
- available
MITRE ATT&CK
CVE
People
Products
EximExim has patched CVE-2026-45185, also known as Dead.Letter, a severe use-after-free flaw in BDAT message handling that could lead to heap corruption and potential code execution on affected GnuTLS-based builds.GnuTLSExim has patched CVE-2026-45185, also known as Dead.Letter, a severe use-after-free flaw in BDAT message handling that could lead to heap corruption and potential code execution on affected GnuTLS-based builds.
