CVE-2026-45185: Exim BDAT use-after-free allows unauthenticated remote code execution

Critical 9.8 EPSS 1.3%

Exim 4.97 through 4.99.2 built with GnuTLS (USE_GNUTLS=yes) frees its TLS buffer when a client sends a TLS close_notify in the middle of a BDAT (CHUNKING) transfer, then keeps writing into it if one more cleartext byte follows. An unauthenticated attacker who can open a TLS SMTP session can corrupt the heap and, per the Exim advisory (CVSS 9.8) and the XBOW research, execute code. GnuTLS is the TLS library used by the Debian and Ubuntu exim4 packages; builds using OpenSSL are not affected.

What do these terms mean? CVE · CVSS score · exploited (KEV) · EPSS · backported fix · all terms

What to do now

  1. Check whether you run the affected software and which version (commands below).
  2. Install the fixed version for your system: see “Patch it” below.
  3. Restart the Exim daemon (systemctl restart exim4 on Debian/Ubuntu, exim on most other systems) so the listener runs the new binary.
  4. If you cannot patch today, apply the temporary mitigation below and patch as soon as possible.

Affected and fixed versions

Affected:

Fixed in:

Am I affected?

exim -bV | head -1
exim -bV | grep -i -E 'gnutls|openssl'
dpkg -l 'exim4*' | grep ^ii

Patch it

Use the commands for your system. Distribution packages often keep an older version number with the fix backported, so compare with the fixed package versions in the table below, not only with the upstream version.

Debian
sudo apt update
sudo apt install --only-upgrade exim4-base exim4-daemon-light exim4-daemon-heavy
sudo systemctl restart exim4
Ubuntu
sudo apt update
sudo apt install --only-upgrade exim4-base exim4-daemon-light exim4-daemon-heavy
sudo systemctl restart exim4
Built from source
Build and install Exim 4.99.3 or later from https://ftp.exim.org/pub/exim/exim4/ and restart the daemon.

General update steps for every system are on the Linux and Unix & BSD pages; after updating, see which services to restart.

Fix status in Linux distributions

ReleasePackageStatusFixed version / advisory
Debian 12exim4fixed4.96-15+deb12u9
Debian 13exim4fixed4.98.2-1+deb13u2
Debian testingexim4fixed4.99.2-2
Debian 13 (trixie)exim4fixed4.98.2-1+deb13u2 (DSA-6265-1)
Debian 12 (bookworm)exim4fixed4.96-15+deb12u9 (DSA-6265-1)
Ubuntu 26.04 LTS (resolute)exim4fixed4.99.1-1ubuntu1.2 (USN-8382-1)
Ubuntu 24.04 LTS (noble)exim4fixed4.97-4ubuntu4.5 (USN-8382-1)
Ubuntu 22.04 LTS (jammy)exim4fixed4.95-4ubuntu2.8 (USN-8382-1)

From the Debian security tracker, Ubuntu CVE tracker and Red Hat Security Data API, refreshed every few hours.

If you cannot patch yet

Sources

Page generated automatically from official sources on 2026-11-03 18:05 UTC and reviewed by an editor. Always confirm with your vendor's advisory.