On this page (7 sections)

On November 25, 2026, the Debian security team published DSA-6659-1, a security update for exim4, the Exim mail transport agent. Debian describes an out-of-bounds write vulnerability when decoding headers, which could result in the execution of arbitrary code.

If you run a mail server, a web server that relays mail through Exim, or a hosting box on Debian, this is worth checking today. The advisory is short and several details are not yet public, so this article separates what Debian confirmed from what is still unknown.

What Debian announced

The advisory, sent by Salvatore Bonaccorso to the Debian security mailing list, says an out-of-bounds write was discovered in the way Exim decodes headers. Debian states this could lead to execution of arbitrary code. For the stable distribution, trixie, the problem is fixed in exim4 version 4.98.2-1+deb13u6, and Debian recommends upgrading exim4 packages.

The advisory lists the CVE ID as not yet available, and it gives no CVSS score, no attack conditions, and no statement about whether the flaw is being exploited. So far this is the only source in our research, and it comes from the distributor rather than from the Exim project itself. We have not seen an upstream advisory, so details such as which upstream Exim versions are affected remain unconfirmed.

Why an out-of-bounds write in header parsing matters

An out-of-bounds write happens when a program writes data past the end of a memory buffer it allocated. Depending on what sits next to that buffer, the result can range from a crash to an attacker controlling program behavior, which is why Debian words the impact as possible arbitrary code execution.

Mail headers are data that arrives from outside, and a mail transport agent that listens on port 25 must parse them from senders it does not know. Bugs in that kind of code are often reachable without logging in. Debian does not say whether that applies here, so treat the exposure of an internet-facing Exim as the cautious assumption, not a confirmed fact.

Who is affected

  • Debian stable (trixie) systems with the exim4 package installed. These are the systems Debian lists a fix for.
  • Servers where Exim is the default mail system, including many shared hosting and VPS setups that send site email through the local MTA.
  • Other Debian releases and other distributions: the advisory does not mention them. Check the Debian security tracker for exim4 for the status of your release, and your own distribution's advisories if you do not use Debian.
A server that only sends mail locally and does not accept connections from the internet may be less exposed than a public mail server, but the advisory does not describe the attack path, so do not rely on that. Patch both.

How to check your exposure

First confirm whether exim4 is installed and which version you run. This read-only command, run on Debian, prints the installed package version. You are looking for 4.98.2-1+deb13u6 or newer on trixie.

Check the installed exim4 version (Debian)Shell
dpkg -l | grep exim4

To see whether Exim is listening for connections from other hosts, list listening sockets and look for port 25 (and 465 or 587 if you use them). This is read-only. A listener on 0.0.0.0 or a public address means the service is reachable from the network.

List listening mail ports (run as root on the server)Shell
ss -tlnp | grep -E ':(25|465|587)\b'

What to do now

  1. Find every Debian host with exim4 installed, including forgotten VPS instances and staging servers.
  2. Run dpkg -l | grep exim4 on each and note the version.
  3. Upgrade exim4 on trixie systems to 4.98.2-1+deb13u6 or newer.
  4. Restart Exim after the upgrade if the package did not do it, and confirm it is running.
  5. Check mail queue and logs for anything unusual since before the update (see below).
  6. Watch the Debian security tracker and the mailing list for the CVE ID and any follow-up details, then record it in your patch log.
  7. If a host cannot be patched right away, limit who can reach port 25 with firewall rules until it can.

Update only the exim packages with the commands below. Run them as root on Debian. The first refreshes package lists, the second upgrades exim4 packages that are already installed.

Upgrade exim4 on Debian trixieShell
apt update
apt install --only-upgrade exim4 exim4-base exim4-daemon-light
Tip. Package names differ by setup. Run dpkg -l | grep exim4 first and upgrade the exim4 packages you actually have installed, for example exim4-daemon-heavy instead of exim4-daemon-light. A plain apt upgrade also picks up the fix.
Caution. Restarting Exim briefly interrupts mail delivery and incoming connections. Do it in a quiet window on busy mail servers. Queued messages are normally kept and retried, but check the queue afterwards.

After the upgrade, restart the service and confirm it is active. The status output should show the service running without errors, and the version check from earlier should show the fixed version.

Restart Exim and check its status (Debian, systemd)Shell
systemctl restart exim4
systemctl status exim4

Detection and monitoring

The advisory gives no indicators of compromise, so there is no specific log pattern to search for. General signals still help: unexpected crashes or restarts of the exim4 process, odd spikes in the mail queue, new outbound connections from the mail host, or messages with malformed headers in the logs. If you see signs of compromise on a mail server, follow a recovery process such as our guide on what to do when a website is hacked.

Mail servers are often forgotten in routine reviews. Keeping an eye on your public services helps: Webforta Monitor tracks uptime, certificate and DNS changes, and the free SSL checker can confirm that your mail host's certificate is valid. These do not detect or fix this Exim flaw; patching does.

What we do not know yet

  • The CVE identifier and CVSS score, which Debian lists as not yet available.
  • Whether the bug can be triggered by an unauthenticated remote sender.
  • Whether it is being exploited. The advisory does not say.
  • Which upstream Exim versions are affected, and the status on releases other than trixie.

We will not guess at these. Patch based on Debian's statement that code execution is possible, and revisit once a CVE record or upstream advisory appears.

Sources

This article is based on the public sources below. Details can change as vendors and researchers publish more; check the original advisories before acting on version numbers.

  1. [SECURITY] [DSA 6659-1] exim4 security updatelists.debian.org ·
  • Debian
  • Exim
  • exim4
  • mail server
  • DSA
  • patching