Automated Threat Modeling

Overview of CVE-2026-141382: Exim Header Decode Heap Out-of-Bounds Write Reaching Root Expansion

A brief summary of CVE-2026-141382, a heap out-of-bounds write in Exim SMTP header decoding that is followed by string expansion running as root, caused by an incomplete fix in 4.100.2. Includes patch and verification details for Exim 4.100.3.

CVE Analysis

7 min read

Gaurav Sarraf
Gaurav Sarraf

2026-12-01

Overview of CVE-2026-141382: Exim Header Decode Heap Out-of-Bounds Write Reaching Root Expansion

Introduction

On 1 December 2026 the Exim maintainers shipped their second security release in six days, because the 4.100.2 fix for a heap out-of-bounds write in SMTP header decoding did not cover every path. Any mail server that upgraded to 4.100.2 last week is still inside the affected range for CVE-2026-141382, where crafted SMTP traffic corrupts heap memory ahead of a string expansion that runs as root.

Exim is an open-source message transfer agent, originally developed at the University of Cambridge and distributed under the GNU General Public Licence, that handles mail routing and incoming mail checks on Unix systems. In a SecuritySpace survey dated 1 June 2025, Exim was identified on 286,701 servers, or 55.96% of the 512,332 MX servers that returned identifiable banners (out of 1,042,627 queried), ahead of Postfix at 192,104 (37.50%). Those numbers describe historical deployment rather than the population vulnerable today, but they show that a bug in Exim's SMTP reception path touches a large share of measured Internet mail infrastructure.

Technical information

Classification and severity

The weakness is CWE-787, Out-of-bounds Write. The CVE record lists every Exim version below 4.100.3 as affected and states the issue exists "because of an incomplete fix for CVE-2026-137702". NVD carries a contributed CVSS 3.1 assessment from [email protected] (secondary metric, record status Received):

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

That is a base score of 8.1 (High): network reachable, no privileges or user interaction required, but high attack complexity. The vector describes assessed prerequisites and impact, not a demonstrated reliable exploit, and the AC:H rating is worth keeping visible when triaging.

Root cause: a pointer and a length that disagree

Exim has not published a diff for this release (we could not retrieve one from code.exim.org, which returned 401 Unauthorized), and the release announcement does not describe the code. The most detailed public account comes from a third-party write-up by Linux Compatible of the original CVE-2026-137702 bug:

  • During SMTP reception, Exim decodes RFC 2047 encoded word headers (=?charset?Q?...?=) in rfc2047_decode2().
  • When the charset is unusual or invalid, the function sets an error flag and falls back to the raw header text.
  • On that fallback path it returns a pointer to the smaller raw buffer while still reporting newsize, the larger capacity of the decoded block.
  • The string expansion code that called it trusts that size and appends data past the end of the real allocation, corrupting the heap.

The defect is therefore a mismatch between a buffer pointer and the length reported alongside it. A correct fix has to guarantee that on every return path the reported size matches the buffer actually handed back. The error and fallback path is where the two drift apart. cPanel's advisory for the predecessor CVE corroborates the same picture: failed charset translation of encoded message headers, a write outside allocated memory, and subsequent string expansion with root privileges.

Why 4.100.2 was not enough

Exim describes 4.100.3 as an "Extended version of fix in 4.100.2". Our reading is that 4.100.2 corrected the obvious path but left at least one other place where the stale size could still reach the expansion code. Exim has not said which code paths 4.100.3 adds, so treat that as an inference from the advisory wording rather than a confirmed description of the change.

Why the privilege context matters

Exim receives mail with reduced privileges, but per the advisory the out-of-bounds write is "followed by an expansion operation done with root privilege". Header expansion for ACLs, routers and transports runs as root. Any remaining path that lets a bad size reach the expansion code turns an unprivileged heap overflow into memory corruption inside a root process, which is why the maintainers issued a second release rather than leaving 4.100.2 in place.

Attack flow

Based on the advisory and the public technical account, the sequence looks like this:

  1. An attacker connects to an Exim SMTP listener over the network. The published vector requires no authentication and no user interaction.
  2. The attacker sends a message whose headers include an RFC 2047 encoded word using an unusual or invalid charset.
  3. During reception, rfc2047_decode2() fails the charset translation, sets its error flag, and falls back to the raw header text, returning the raw buffer pointer together with the larger decoded capacity.
  4. A later string expansion operation trusts the reported size and appends past the end of the actual allocation, producing a heap out-of-bounds write.
  5. That expansion runs with root privilege, so the corruption occurs in a privileged process context.

The public material stops there. It does not describe an exploit payload, the heap layout an attacker would need, precise configuration prerequisites, or which platform protections would have to be bypassed. The defensible summary is serious remote memory corruption in a privileged execution context. Reliable arbitrary code execution as root on every affected installation has not been demonstrated.

Exploitation status

The reviewed records do not establish active exploitation, a working public exploit, threat actor attribution, or indicators of compromise for this CVE. Rapid7 reports its CISA KEV status as false, OpenCVE states it is not listed and reports no EPSS score, and the Vulnerability Lookup page shows one sighting without an associated entry establishing exploitation. These observations mean exploitation is not confirmed. They do not prove attacks are absent.

Patch information

Fixed version: Exim 4.100.3, released 1 December 2026 as a security release. This is the second round of a patch: 4.100.2 tried to close the heap out-of-bounds write in SMTP header decoding, missed some cases, and 4.100.3 covers the rest.

How Exim tracks it

The release announcement does not mention the CVE number. Exim uses a GCVE identifier, and the CVE record links to the announcement:

  • Advisory ID: EXIM-Security-2026-11-82.1 (GCVE-25-2026-11-82-1)
  • Area: SMTP reception
  • Severity: High
  • Summary: "Fix an OOB write resulting from header decode", described as an "Extended version of fix in 4.100.2"

The first round was advisory EXIM-Security-2026-11-19.1 under the same GCVE ID, covering a heap out-of-bounds write in SMTP reception that affected 4.100 and 4.100.1. The timeline:

  • 12 November 2026: Exim received the report.
  • 19 November 2026: Fix drafted.
  • 25 November 2026: Exim 4.100.2 released.
  • 1 December 2026: Exim 4.100.3 released with the extended fix.

Getting the fix

  • Tarballs: https://ftp.exim.org/pub/exim/exim4/
  • Git: https://code.exim.org/exim/exim, branch master, signed tag exim-4.100.3, key ID 0xBCE58C8CE41F32DF (Jeremy Harris, with the full fingerprint A986F3A6BD6377D8730958DEBCE58C8CE41F32DF given in the 4.100.2 advisory)

Published SHA256 checksums:

exim-4.100.3.tar.xz 7eb66eb6b66bbf521e4bc3e30df6e4d8d7773447853916c0e0b4f290ad2a8086 exim-4.100.3.tar.gz 3b19383da79560a3c35939da1dd28bb59f9c89875622b69ef2e1d1e019ed4a69 exim-4.100.3.tar.bz2 989c9b836f691b4a02821bf701d064828baf315944284f81c52a081946dc28cf

On DirectAdmin systems, a forum moderator posted a CustomBuild command that bumps the pinned version from 4.100.2 to 4.100.3 and rebuilds:

perl -pi -e 's/exim:4.100.2:/exim:4.100.3:/' /usr/local/directadmin/custombuild/versions.txt; da build exim

Verifying the upgrade

  1. Confirm the installed binary reports 4.100.3 or later:
exim -bV | head -1
  1. Restart the daemon so the old binary stops listening for SMTP traffic.

Release coverage reports no workarounds, and we are not aware of a validated configuration change that substitutes for the upgrade. Exact corrected package revisions for individual operating system distributions were not established in the sources we reviewed, so check your distribution's own advisories if you do not build from upstream.

Affected systems and versions

  • All Exim versions before 4.100.3 are affected according to the CVE record.
  • Exim 4.100 and 4.100.1: explicitly listed as affected in the predecessor advisory EXIM-Security-2026-11-19.1, and below the new boundary.
  • Exim 4.100.2: the published fix for CVE-2026-137702, but still affected by CVE-2026-141382 because that fix was incomplete.
  • Exim 4.100.3 and later: contain the extended fix.
  • cPanel: the reviewed cPanel guidance that specifies a 4.100.2-based build addresses the predecessor CVE and does not by itself establish correction of CVE-2026-141382.

The affected component is SMTP reception, specifically RFC 2047 header decoding feeding into string expansion. Precise configuration prerequisites for triggering the bug have not been disclosed.

Vendor security history

Exim turned the original report into a release in under two weeks, then needed a follow-on release six days later because the first fix did not close every path. The sources confirm the incomplete fix but do not explain why review or testing missed the remaining case.

Exim also has a documented exploitation history. In May 2020, NSA reported that Russian military cyber actors publicly known as Sandworm Team, associated with the GRU Main Center for Special Technologies, exploited CVE-2019-10149 in Exim, using it to add privileged users, disable network security settings, and run additional scripts. That incident shows why mail transfer agents running privileged code are attractive targets. It is not evidence that CVE-2026-141382 has been exploited or that the same actor is involved.

References

Detect & fix
what others miss

Works with
  • GitHub
  • GitLab
  • Bitbucket
  • Azure DevOps Services
  • Gerrit
  • CVS
  • Jira
  • Linear
  • Slack
  • Security Compass
Explore integrations
Security magnifying glass visualization