Skip to main content

Debian DSA-6659-1 Fixes Header Decoding Bug in exim4

On November 25, 2026, Debian published security advisory DSA-6659-1 for exim4, its package of the Exim mail server. The advisory fixes an out-of-bounds write in the code that decodes email headers, and an attacker could use this bug to run their own code. On Debian 13 "trixie", version 4.98.2-1+deb13u6 contains the fix.

What it means

Exim is a mail server. That means it is software that receives email from other servers and passes email on to them. Debian is a free operating system that runs on many servers, and it offers Exim as a ready-to-install bundle called exim4.

Picture Exim as the sorting room of a post office. Each letter arrives with a label, and the staff read that label to decide where the letter goes. Exim does the same with the header of every email. The header is the part that holds the sender, the receiver and the subject.

The bug sits in that reading step. A carefully made email could push Exim to write data outside the small memory area it may use. In the post office picture, a strange label could confuse the sorter so badly that a stranger takes over the sorting room. The comparison stops working at one point: the attacker never has to enter the building. The attack can arrive over the internet.

This matters mostly to people and companies that run an Exim mail server on Debian. Servers that accept email from the internet carry the highest risk. If someone else looks after your mail server, ask them to install the Debian update. If you look after it yourself, install it as soon as you can. The next section shows the steps.

Back to top

How to use it

The fix covers the current stable release, Debian 13 "trixie", where the fixed package version is 4.98.2-1+deb13u6. Debian rates the issue as "important" and recommends an upgrade of exim4.

Start by checking which exim4 packages you have and which version they are.

apt list --installed 'exim4*'

This shows each installed package whose name begins with exim4, with its version. The quotes keep the shell from expanding the * on its own.

dpkg -l 'exim4*'

This prints the same details as a dpkg table, a format that some admins find easier to read.

Exim can also report its own version.

sudo exim4 -bV

The Exim program is named exim4 on Debian, and -bV makes it print its version. The program lives in /usr/sbin, which is often not in a normal user's path, so the example uses sudo.

Next, refresh the package lists and upgrade what is installed.

sudo apt update && sudo apt upgrade

The first command fetches the newest package lists, and the second installs every available update, the new exim4 packages included.

When the upgrade is done, repeat one of the version checks. A trixie system should now show 4.98.2-1+deb13u6 or a later version.

Other Debian releases

Only trixie appears in the advisory. The Debian security tracker covers more releases:

ReleaseStatus on the tracker
Debian 12 "bookworm" Fixed in 4.96-15+deb12u11
Debian 13 "trixie" Fixed in 4.98.2-1+deb13u6
sid (unstable) Fixed in 4.100.1-5
forky (testing) Vulnerable at 4.100.1-4 when checked

The forky entry can change at any time. Open the tracker page in the sources for the current state of your release.

If you build Exim from source, the upstream fix is in Exim 4.100.2. The Exim maintainers released it on November 19, 2026. They say that every version up to and including 4.100 is affected.

Back to top

How it works

The flaw is a heap out-of-bounds write. It triggers while Exim decodes message headers as it receives mail over the Simple Mail Transfer Protocol (SMTP). The input therefore comes from anyone who connects to the server. Debian states that the bug could lead to execution of arbitrary code.

Upstream tracks the issue as EXIM-Security-2026-11-82.1 and GCVE-25-2026-11-82-1. One other site used a different identifier, 2026-11-19.1, so the sites do not yet agree on a name.

CVE status

When Debian published the advisory, no Common Vulnerabilities and Exposures (CVE) ID existed yet. The Debian security tracker files the issue as CVE-2026-137702, described as "Fix an OOB write resulting from header decode". The number has an unusual format. Read it as Debian's tracking entry and not as a confirmed, final CVE ID.

Severity

The ratings differ:

  • Debian calls the issue "important".
  • The Exim maintainers rate it Medium.
  • One aggregator record gives it a score of 8.1 (High).

The upstream description explains why the bug deserves attention. According to the release report, the corrupted data can feed an expansion that runs as root. That raises the risk of root-level exploitation. Another aggregator record states that sending SMTP traffic is enough to reach the bug.

Which servers to patch first

If your Exim server accepts mail from the internet, install the update there first. This matches the upstream advice. Such servers take connections from anyone, which makes them the easiest target. Every other Exim server needs the update as well.

Pitfalls

Exim 4.100.2 fixes only this header decoding bug. The separate Proxy Protocol and GnuTLS fixes from 4.100.1, CVE-2026-94054 to CVE-2026-94057, are not part of it. If you build from source and skipped 4.100.1, check that those fixes are in place too.

Keep this issue apart from two other Exim bugs from 2026:

  • CVE-2026-45185 is a use-after-free in BDAT handling, fixed in Exim 4.99.3 in May 2026.
  • CVE-2026-40685 is an out-of-bounds write with JSON headers, fixed in Exim 4.99.2.

Debian version numbers do not follow upstream. The fixed trixie package stays at 4.98.2 and adds a Debian revision suffix, while upstream fixed the bug in 4.100.2. On Debian, compare your installed version with the table above and ignore the upstream number.

Still unclear:

  • How the bookworm fix reaches users is not confirmed, because the advisory does not mention bookworm.
  • Nobody has confirmed that the bug can really be exploited as root. The detailed Exim advisory was not yet available, according to LinuxCompatible.
  • The aggregator records (the 8.1 score and the SMTP reachability claim) and the entries for the two other 2026 CVEs could not be checked against primary sources.
Back to top

Sources

  1. DSA-6659-1 exim4 - security update — Debian security-announce
  2. exim4 security tracker — Debian Security Tracker
  3. Exim 4.100.2 Release: Fix Out-of-Bounds Write That Could Allow Root Exploitation — LinuxCompatible
  4. Debian Exim4 4.98.2 Out-of-Bounds Write Vulnerability DSA-6659-1 — LinuxSecurity.com
Back to top
The welovelinux penguin

The byline of welovelinux news articles. AI helps us write the first draft, and a human editor, Peter Martin, checks every article against its sources before it is published.

Frequently asked questions

Most likely not. The bug is in Exim, a mail server that receives and sends email for other computers. It matters mainly if you or your company run Exim on Debian. Servers that accept email from the internet have the highest risk, because anyone can connect to them.

On Debian 13 "trixie", the fixed package version is 4.98.2-1+deb13u6. Run apt list --installed 'exim4*' to see your installed version. Install the fix with sudo apt update && sudo apt upgrade, then check the version again to confirm that the update worked.

Debian keeps the version of a stable release and adds security fixes to it. The fixed trixie package therefore stays at 4.98.2, with a Debian revision suffix. Compare your installed version with the Debian table in the article, not with the upstream Exim number.

The ratings do not agree. Debian rates the issue "important", and the Exim maintainers rate it Medium. Debian says the bug could lead to execution of arbitrary code. Nobody has confirmed yet that it can be used to get root access, but patch internet-facing servers first.