Exim's Header Decoder Could Write Outside a Heap Buffer
CVE-2026-137702 affects Exim releases before 4.100.2. During reception of an RFC 2047 encoded header, a failed charset translation can lead to a write outside an allocated memory area. The affected expansion code runs with root privileges. A remote sender who can deliver SMTP traffic does not need to authenticate.
The CVSS 3.1 score is 8.1 with high attack complexity. The immediate consequence can be a crash in mail reception or delivery. A successful exploit could also execute code in the Exim process, which may mean root-level control of the mail server. The fix is in Exim 4.100.2.
Assess the mail path
Inventory every Exim package by version, including distributions that backport fixes without changing the visible upstream release. Check cPanel, control panels, container images and appliance firmware because they may bundle their own copy. Determine which inbound paths can reach header decoding and whether an appliance applies a separate filter before Exim.
Review mail logs for repeated malformed encoded headers, worker crashes and unexpected restarts around delivery events. Mail logs rarely preserve the complete message after a parser failure, so preserve queue files and system crash data according to privacy policy. Do not use a single log pattern as proof of exploitation.
Patch and validate
Update to 4.100.2 or a vendor release that includes the fix. For cPanel, use the current security update and confirm the cpanel-exim package reports 4.100.2-2 or later. Restart the service as required and verify that inbound mail, outbound delivery and local alias expansion still work.
After patching, run a controlled test with malformed encoded headers in a staging environment. Check that the process rejects the message cleanly and does not create a new crash signature. Review file integrity and outbound network connections on any host that crashed unexpectedly, then rotate credentials exposed to the mail service.
Top comments (0)