Description
Exim before 4.99.3, in certain GnuTLS configurations, has a remotely reachable use-after-free in the BDAT body parsing path. It is triggered when a client sends a TLS close_notify mid-body during a CHUNKING transfer, followed by a final cleartext byte on the same TCP connection. This can lead to heap corruption. An unauthenticated network attacker exploiting this vulnerability could execute arbitrary code.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Exim | Exim | 4.97 – < 4.99.3 | 4.99.3 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | exim4 | 4.99.2-2 | — |
| Debian 13 | exim4 | 4.98.2-1+deb13u2 | — |
| Debian 12 | exim4 | 4.96-15+deb12u9 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | exim4 | 4.99.1-1ubuntu1.2 | — |
| Ubuntu 25.10 | exim4 | 4.98.2-1ubuntu2.2 | — |
| Ubuntu 24.04 LTS | exim4 | 4.97-4ubuntu4.5 | — |
| Ubuntu 22.04 LTS | exim4 | 4.95-4ubuntu2.8 | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | exim4 | 4.93-13ubuntu1.12+esm1 | USN-8382-1 |
| Ubuntu Pro 18.04 LTS | exim4 | 4.90.1-1ubuntu1.10+esm6 | USN-8382-1 |
| Ubuntu Pro 16.04 LTS | exim4 | 4.86.2-2ubuntu2.6+esm9 | USN-8382-1 |
| Ubuntu Pro 14.04 LTS | exim4 | 4.82-3ubuntu2.4+esm9 | USN-8382-1 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | exim +9 | 4.99.5-r0 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 4 repositories
-
MJ-bin/POC_CVE-2026-45185 ★ 4 · May 19, 2026
POC_CVE-2026-45185 for nuclei-templates
-
liamromanis101/Dead.Letter-CVE-2026-45185 ★ 2 · May 12, 2026
Dead.Letter CVE-2026-45185 EXIM Vulnerability Detection Script
-
0init/CVE-2026-45185 ★ 0 · Aug 7, 2026
-
materaj2/cve-2026-45185-detection-script ★ 0 · May 14, 2026
These detection scripts are property of the SECPlayground Platform. Two safe detection scripts. Neither drives the close_notify-mid-BDAT trigger, so they will not crash the daemon or leave panic-log …
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 3
- WID-SEC-2026-1505 Exim: Schwachstelle ermöglicht Codeausführung BSI CERT-Bund (WID) · Aug 13, 2026
- USN-8382-1 exim4 vulnerabilities Ubuntu Security Notices (USN) · Jun 4, 2026
- NCSC-2026-0163 Kwetsbaarheid verholpen in Exim NCSC-NL (Netherlands) · May 15, 2026
References
- https://exim.org
- https://code.exim.org/exim/wiki/wiki/EximSecurity
- https://exim.org/static/doc/security/CVE-2026-45185.txt
- https://xbow.com/blog/dead-letter-cve-2026-45185-xbow-found-rce-exim
- https://news.ycombinator.com/item?id=48111748
- https://www.openwall.com/lists/oss-security/2026/05/12/4
- https://exim.org/static/doc/security/EXIM-Security-2026-05-01.1/