Exim vulnerability CVE-2026-137702: find and fix it

CVE-2026-137702 is an Exim vulnerability in SMTP reception, fixed in 4.100.2. How to find every Exim server, check your distribution's fix and upgrade.

CVE-2026-137702 is an Exim vulnerability in SMTP reception: a remote attacker can trigger a heap out-of-bounds write that is followed by an expansion running as root. Exim 4.100.2, released on 2026-11-25, fixes it, and Debian has already shipped patched packages. If you run Exim on any server, find every host that has it, check the package version against your distribution's fixed version, and upgrade today.

What the Exim vulnerability is

The Exim security advisory EXIM-Security-2026-11-19.1 describes it in one line: "A remote attacker can cause a write outside an allocated area, followed by an expansion operation done with root privilege." The release announcement adds that the bug sits in header decoding during SMTP reception.

Key facts, all from the vendor records:

ItemValueSource
CVECVE-2026-137702NVD
AreaSMTP reception, header decodingExim advisory
Upstream versions listed as affected4.100 and 4.100.1Exim advisory
Fixed upstream in4.100.2 (2026-11-25)Exim advisory
MitigationNone, according to the advisoryExim advisory
CVSS 3.18.1 High, AV:N/AC:H/PR:N/UI:NNVD, scored by MITRE

The Exim project itself is not consistent on severity: the advisory text says High, the announcement says Medium. Network reachable, no login needed and code running as root is enough reason to treat it as urgent on any server that accepts mail from outside. If you want the longer argument for patching by the vendor's rating instead of a single score, see CVSS or the vendor's rating.

Which versions are affected: trust your distribution, not the upstream list

Upstream names only 4.100 and 4.100.1. Debian, however, treated its older packages as affected too and backported the fix:

DistributionPackageFixed versionStatus on 2026-11-30
Debian 13 (trixie)exim4 4.98.24.98.2-1+deb13u6Fixed, DSA-6659-1
Debian 12 (bookworm)exim4 4.964.96-15+deb12u11Fixed, DLA-4940-1
Fedora 46exim4.100.2-1.fc46Fixed, stable since 2026-11-26
EPEL 8, 9, 10 (for RHEL, Rocky, AlmaLinux)exim4.100.2-1In testing, not yet stable
Ubuntuexim4none yetNo CVE entry or notice published

The Debian security tracker entry is the record to follow for Debian. For Ubuntu, watch the Ubuntu security notices.

This is the trap with "my version is not in the list". A package called 4.96 or 4.98.2 can carry the bug or the fix, depending on what the distribution patched. The only reliable comparison is your installed package version against the fixed version your vendor published.

Exim is not part of Red Hat Enterprise Linux. On RHEL, Rocky and AlmaLinux it comes from EPEL, which the Fedora project maintains, so Red Hat errata will not tell you about it.

How to find every Exim server

Start with the hosts that are supposed to send mail, then check the rest: a mail transfer agent is often installed only so that cron and system tools can send mail, and nobody remembers it is there.

On each host, check whether Exim is installed and which version:

# Debian and Ubuntu
dpkg-query -W -f='${Package} ${Version}\n' 'exim4*' 2>/dev/null

# Fedora and EPEL
rpm -q exim

Check the version of the binary itself:

exim -bV | head -1

The -bV option prints the version number, compilation number and date of the binary (Exim command line reference). On Debian it prints the upstream version, so use the package version above to decide whether the backported fix is in.

Check whether it is listening for SMTP, which is what makes it reachable from the network:

ss -ltnp '( sport = :25 or sport = :465 or sport = :587 )'

The filter syntax is described in ss(8). A host with Exim installed but nothing listening is less exposed, but it should still be updated.

How to check an Exim server is fixed on Debian

Compare the installed version with the fixed version from the tracker. On Debian 13:

v=$(dpkg-query -W -f='${Version}' exim4-base)
dpkg --compare-versions "$v" ge 4.98.2-1+deb13u6 && echo fixed || echo "vulnerable: $v"

On Debian 12, compare with 4.96-15+deb12u11 instead. --compare-versions returns true when the condition holds (dpkg(1)), and it understands Debian version strings, which a plain string comparison does not.

Then upgrade and restart the daemon:

sudo apt-get update
# use exim4-daemon-heavy instead if that is the one installed
sudo apt-get install --only-upgrade exim4-base exim4-config exim4-daemon-light
sudo systemctl restart exim4

On Fedora, sudo dnf upgrade exim installs 4.100.2. On EPEL, the update is in the testing repository until it is pushed to stable; decide whether you take it from epel-testing now or wait, and note the decision.

Doing this for many servers

The commands above work for one host. With dozens of servers the problem is coverage: the hosts you forgot are the ones that still run an old mail agent. For a wider view of what else is missing on a Debian or Ubuntu host, see how to list missing security updates on Ubuntu.

Openness, a new open source scanner by S4E.io, logs in over SSH, reads the installed packages and compares them with each vendor's own data; for Debian 12 and 13 that is the Debian Security Tracker. A Debian host with an unpatched exim4 package shows up with the installed and fixed versions side by side. Which systems and data sources it reads is on the supported systems page, and why CVE counts differ explains how a finding is tied to a CVE.

What to do now

  1. List every host with Exim installed, including the ones that only send cron mail.
  2. On Debian 12 and 13, compare the exim4 package version with the fixed version and upgrade.
  3. On Fedora, upgrade to 4.100.2. On EPEL hosts, decide between epel-testing now and waiting for stable.
  4. On Ubuntu, watch for a notice and upgrade as soon as one is published.
  5. Close port 25 to the internet on hosts that do not receive mail.
  6. Restart Exim after the upgrade and check exim -bV and the package version again.

To run the same check on up to 20 servers in 90 days for free, download Openness, add the hosts with an SSH account and read the report.

FAQ

What is Exim?

Exim is an open source mail transfer agent: the server software that accepts mail over SMTP and delivers it. Debian, Ubuntu and Fedora package it, so it can be present on hosts whose owners do not think of them as mail servers.

Is my Exim server vulnerable to CVE-2026-137702?

Upstream lists Exim 4.100 and 4.100.1 as affected and 4.100.2 as fixed. Distribution packages follow their own numbers: Debian fixed it in 4.98.2-1+deb13u6 and 4.96-15+deb12u11. Compare your installed package with your vendor's fixed version, not with the upstream list.

Is there a workaround if I cannot upgrade?

The Exim advisory lists no mitigation. Limiting who can reach port 25 reduces exposure, but it does not fix the bug; upgrading does.

Postfix or Exim: does this affect Postfix?

No. CVE-2026-137702 is in Exim's code. Postfix is a different mail transfer agent and is not named in the advisory.

How do I check the Exim version?

Run exim -bV, which prints the version of the binary. On Debian and Ubuntu, also check the package version with dpkg-query -W exim4-base, because backported fixes keep the upstream number.

This post was written by an AI model (claude-opus-5-5) and published by S4E.io. Found a mistake? Tell us.

All posts · This page as Markdown

Star on GitHub