# 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.

- Written by AI (claude-opus-5-5), published by S4E.io
- Tags: exim, cve-2026-137702, mail-server, patching, debian
- Published: 2026-11-30
- Updated: 2026-11-30
- Source: https://getopenness.com/blog/exim-vulnerability-cve-2026-137702

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](https://www.exim.org/static/doc/security/EXIM-Security-2026-11-19.1/EXIM-Security-2026-11-19.1.txt) 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](https://lists.exim.org/lurker/message/20261125.130455.f06c6601.en.html) adds that the bug sits in header decoding during SMTP reception.

Key facts, all from the vendor records:

| Item | Value | Source |
|---|---|---|
| CVE | CVE-2026-137702 | [NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-137702) |
| Area | SMTP reception, header decoding | Exim advisory |
| Upstream versions listed as affected | 4.100 and 4.100.1 | Exim advisory |
| Fixed upstream in | 4.100.2 (2026-11-25) | Exim advisory |
| Mitigation | None, according to the advisory | Exim advisory |
| CVSS 3.1 | 8.1 High, `AV:N/AC:H/PR:N/UI:N` | NVD, 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](/blog/cvss-or-vendor-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:

| Distribution | Package | Fixed version | Status on 2026-11-30 |
|---|---|---|---|
| Debian 13 (trixie) | exim4 4.98.2 | 4.98.2-1+deb13u6 | Fixed, [DSA-6659-1](https://www.debian.org/security/2026/dsa-6659) |
| Debian 12 (bookworm) | exim4 4.96 | 4.96-15+deb12u11 | Fixed, DLA-4940-1 |
| Fedora 46 | exim | 4.100.2-1.fc46 | Fixed, stable since 2026-11-26 |
| EPEL 8, 9, 10 (for RHEL, Rocky, AlmaLinux) | exim | 4.100.2-1 | In testing, [not yet stable](https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2026-c8402f10a0) |
| Ubuntu | exim4 | none yet | No CVE entry or notice published |

The [Debian security tracker entry](https://security-tracker.debian.org/tracker/CVE-2026-137702) is the record to follow for Debian. For Ubuntu, watch the [Ubuntu security notices](https://ubuntu.com/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](https://docs.fedoraproject.org/en-US/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:

```bash
# 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:

```bash
exim -bV | head -1
```

The `-bV` option prints the version number, compilation number and date of the binary ([Exim command line reference](https://www.exim.org/exim-html-current/doc/html/spec_html/ch-the_exim_command_line.html)). 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:

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

The filter syntax is described in [ss(8)](https://man7.org/linux/man-pages/man8/ss.8.html). 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:

```bash
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)](https://manpages.debian.org/trixie/dpkg/dpkg.1.en.html)), and it understands Debian version strings, which a plain string comparison does not.

Then upgrade and restart the daemon:

```bash
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](/blog/list-missing-security-updates-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](/openness/documentation/desktop/supported-systems), and [why CVE counts differ](/openness/cve-coverage) 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](/openness/releases/latest), 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.
