> ## Documentation Index
> Fetch the complete documentation index at: https://blog.onetsolutions.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Exim vulnerability (CVE-2026-137702): code execution over SMTP

> Exim CVE-2026-137702 and its incomplete fix, CVE-2026-141382: affected versions, Exim 4.100.3, Debian, EPEL and cPanel packages, and how to check.

*Published on December 2, 2026*

> [!WARNING]
>
> **CVE-2026-137702 and CVE-2026-141382 — Exim, header decoding.** A remote attacker can trigger, over SMTP and without authentication, an out-of-bounds write in code running as root. Exim 4.100.2 fixed the flaw once, incompletely: **Exim 4.100.3**, released on December 1, is the version that fixes it. A server moved to 4.100.2 last week must be updated again.

## The problem in two sentences

When Exim decodes a message header (RFC 2047) and the character set conversion fails, the size it keeps may not match the string it returns. A remote attacker can thereby cause a write outside the allocated area, followed by an expansion operation done with root privilege.

Exim describes the out-of-bounds write without mentioning code execution. It is Debian that states, in DSA-6659-1, that the flaw could result in the execution of arbitrary code.

The timeline explains the two identifiers:

* **November 25, 2026**: Exim 4.100.2 fixes the flaw, later tracked as **CVE-2026-137702**. The announcement rates it "Medium".
* **December 1, 2026**: Exim 4.100.3 extends that fix, and the announcement raises the severity to "High". The incomplete fix gets **CVE-2026-141382**.

Both CVEs carry a CVSS 3.1 score of **8.1** (`AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`), assigned by MITRE and shown by the NVD. The attack goes over the network, with no account and no user interaction, but its complexity is rated high. The GitHub advisories [GHSA-6pvv-hhpx-fh6r](https://github.com/advisories/GHSA-6pvv-hhpx-fh6r) and [GHSA-pprw-j4qc-27g2](https://github.com/advisories/GHSA-pprw-j4qc-27g2) carry the same data.

> [!NOTE]
>
> As of December 2, 2026, the CISA assessment attached to the NVD entries reads "exploitation: none" for both CVEs, and neither is in the KEV catalog of actively exploited vulnerabilities.

## Which Exim versions are affected?

The sources do not all say the same thing:

| Source | Affected versions |
| - | - |
| Exim ([official advisory](https://www.exim.org/static/doc/security/EXIM-Security-2026-11-19.1/EXIM-Security-2026-11-19.1.txt)) | 4.100 and 4.100.1, fixed in 4.100.3 |
| NVD | Every version before 4.100.2 (CVE-2026-137702), before 4.100.3 (CVE-2026-141382) |
| Ubuntu | No Ubuntu release affected by CVE-2026-137702: bug introduced in 4.100-RC1 |
| Debian | 4.98.2 (Debian 13) and 4.96 (Debian 12) patched for CVE-2026-137702, still marked vulnerable to CVE-2026-141382 |

Debian 13 applied the Exim 4.100.2 fix to the same function, `find_header()`, in its 4.98.2 package. Neither DSA-6659-1 nor DLA-4940-1 explains the gap with Exim's list. We are not settling the question: on Debian, follow Debian's tracker and install the packages it ships.

## Sizing your exposure

The question to ask: **does an unpatched Exim receive SMTP from the Internet?**

| Profile | Exposure | Action |
| - | - | - |
| Exim 4.100 or 4.100.1 reachable from the Internet | **High** | Move to 4.100.3 today |
| Exim 4.100.2 reachable from the Internet | **Still exposed** to CVE-2026-141382 | Move to 4.100.3 |
| cPanel & WHM server | Depends on the build: 4.100 and 4.100.1 were shipped there | Update cPanel, then follow the change log for your version |
| Debian 12 or 13, Exim reachable from the Internet | Vulnerable according to Debian | Install the security package, watch for the next one |
| Debian 12 or 13, Exim bound to the loopback interface | Reduced: no SMTP from outside | Install the security package |
| Ubuntu, distribution `exim4` package | Not affected by CVE-2026-137702 according to Ubuntu | Keep the system up to date |
| Container or Kubernetes pod that ships Exim | Depends on the bundled version | Rebuild the image with a fixed package |
| Postfix or another MTA, no Exim | Not exposed | None |

Check whether Exim is running, its version and the addresses it listens on:

```bash theme={null}
# Exim version: "exim4" on Debian and Ubuntu, "exim" elsewhere
sudo exim4 -bV 2>/dev/null | head -1 || true
sudo exim -bV 2>/dev/null | head -1 || true

# Addresses and ports Exim listens on
sudo ss -ltnp | grep exim
```

A listener on `0.0.0.0:25`, `*:25` or `[::]:25` means Exim accepts SMTP on every interface. A listener restricted to `127.0.0.1` and `[::1]` cannot be reached from outside.

> [!NOTE]
>
> On Debian, the number printed by `exim4 -bV` is not enough: the fix is backported without changing the upstream version. Only the full package version, checked against Debian's tracker, tells you where you stand.

## Updating Exim by distribution

Exim announces **no mitigation**: that line of its advisory reads "(None)". The answer is the update. The status below is as of December 2, 2026.

Take a [snapshot of your VPS](https://help.onetsolutions.net/vps/snapshot) first.

### Debian

| Release | CVE-2026-137702 | CVE-2026-141382 |
| - | - | - |
| Debian 13 (trixie) | Fixed: `4.98.2-1+deb13u6` (DSA-6659-1) | Vulnerable, no package yet |
| Debian 12 (bookworm) | Fixed: `4.96-15+deb12u11` (DLA-4940-1) | Vulnerable, no package yet |
| Debian testing (forky) | Fixed: `4.100.1-5` | Vulnerable, no package yet |
| Debian unstable (sid) | Fixed | Fixed: `4.100.1-6` |

If your Exim comes from `trixie-backports`, Debian accepted `4.100.1-6~bpo13+1` there on December 1, built from the fixed sid package.

```bash theme={null}
# Debian: install the fixes, then restart Exim
sudo apt update
sudo apt upgrade
sudo systemctl restart exim4

# Check the full version of the installed packages
dpkg -l 'exim4*' | grep ^ii
```

Run the update again as soon as [Debian's tracker page for CVE-2026-141382](https://security-tracker.debian.org/tracker/CVE-2026-141382) shows a fixed version for your release.

### Ubuntu

Ubuntu lists CVE-2026-137702 as "Not affected" from 14.04 to 26.10. If you built Exim yourself or use a third-party repository, that status does not apply: compare your version with 4.100.3.

### RHEL, AlmaLinux and Rocky Linux with EPEL

The EPEL repository provides Exim. Its latest version in the stable repository is 4.100.1, which is affected. The 4.100.3 package is in the testing repository:

| Release | Fixed `exim` package | Advisory |
| - | - | - |
| EPEL 10 | `4.100.3-1.el10_4` | FEDORA-EPEL-2026-4bb57a8098 |
| EPEL 9 | `4.100.3-1.el9` | FEDORA-EPEL-2026-551114bd44 |
| EPEL 8 | `4.100.3-1.el8` | FEDORA-EPEL-2026-30ed4eedee |

Fedora 43 and 44 are in the same position, with `exim-4.100.3-1` in the testing repository. This section does not apply to a cPanel server, which uses its own Exim.

```bash theme={null}
# Find out which repository Exim came from
dnf info --installed exim

# Install the fixed package from the EPEL testing repository
sudo dnf --enablerepo=epel-testing upgrade exim
sudo systemctl restart exim

# Check the installed version
rpm -q exim
```

Once the package reaches stable, a plain `sudo dnf upgrade exim` is enough.

### cPanel & WHM

cPanel bundles its own Exim. Its official change logs record the move to Exim 4.100, then 4.100.1, and finally 4.100.2 on November 27, 2026:

| cPanel & WHM branch | Build that moves Exim to 4.100.2 |
| - | - |
| [138](https://docs.cpanel.net/changelogs/138-change-log/) | 138.0.29 |
| [136](https://docs.cpanel.net/changelogs/136-change-log/) | 136.0.55 |
| [134](https://docs.cpanel.net/changelogs/134-change-log/) | 134.0.78 |
| [110](https://docs.cpanel.net/changelogs/110-change-log/) | 110.0.165 |

These builds fix CVE-2026-137702. As of December 2, none of these four change logs mentions Exim 4.100.3: check the one for your branch, or ask cPanel, to learn which build fixes CVE-2026-141382.

```bash theme={null}
# cPanel & WHM version
/usr/local/cpanel/cpanel -V

# Update cPanel & WHM, as root
/usr/local/cpanel/scripts/upcp

# Exim version after the update
exim -bV | head -1
```

## Reducing exposure until the fix lands

These settings do not fix the flaw. They reduce the number of machines that can speak SMTP to your Exim.

**The server sends mail but receives none from the Internet.** A web server that only sends notifications is a typical case. On Debian, bind Exim to the loopback interface:

```bash theme={null}
# Save the current settings before changing them
sudo cp /etc/exim4/update-exim4.conf.conf /root/update-exim4.conf.conf.bak

# When asked for the IP addresses to listen on, answer: 127.0.0.1
# Keep the current answers to the other questions
sudo dpkg-reconfigure exim4-config
sudo systemctl restart exim4
```

The Debian package documentation states that with `127.0.0.1`, external connections are impossible. The setting is stored in `dc_local_interfaces`; left empty, Exim listens on all interfaces.

> [!NOTE]
>
> Do not pick the "local delivery only" type (`dc_eximconfig_configtype='local'`) if your applications send email: Exim would then reject messages to remote domains.

**The server receives mail from the Internet.** Port 25 has to stay open, and the update is the only answer. If only a known relay or spam filter delivers mail to you, allow its addresses alone with your [VPS firewall](https://help.onetsolutions.net/vps/firewall).

## Checking the update

```bash theme={null}
# The package version must match your distribution's tracker
dpkg -l 'exim4*' | grep ^ii       # Debian
rpm -q exim                       # RHEL, AlmaLinux, Rocky Linux with EPEL

# Exim must have restarted after the update
systemctl show -p ActiveEnterTimestamp exim4    # Debian
systemctl show -p ActiveEnterTimestamp exim     # EPEL

# If you restricted the listener: only 127.0.0.1 should show up
sudo ss -ltnp | grep exim
```

## Restoring the public listener after the update

If you bound Exim to the loopback interface on a server that must receive mail, run the configuration again once the fixed package is installed, and put back the value kept in your backup:

```bash theme={null}
# Original value
sudo grep dc_local_interfaces /root/update-exim4.conf.conf.bak

# Enter it when asked for the IP addresses to listen on
sudo dpkg-reconfigure exim4-config
sudo systemctl restart exim4
```

On a server that only sends its own mail, keep the local listener: it has no need to be public.

## What next?

On Debian, EPEL and cPanel, plan a second pass: the complete fix, the one in 4.100.3, has not reached every stable repository yet. Turn on [automatic security updates](https://blog.onetsolutions.net/en/automatic-security-updates-linux-vps.md), and if you run a mail server, review its [SPF, DKIM, DMARC and reverse DNS](https://blog.onetsolutions.net/en/spf-dkim-dmarc-reverse-dns-vps-mail-server.md) setup. WHM administrators can also check the [LiteSpeed cPanel plugin flaw (CVE-2026-54420)](https://blog.onetsolutions.net/en/litespeed-cpanel-cve-2026-54420.md). For any technical question, open a ticket from your [OnetSolutions customer area](https://help.onetsolutions.net/console/support).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.