Critical Exim Flaw Enables Unauthenticated Remote Code Execution

· Original article ↗

Summary

CVE-2026-45185 is a use-after-free in Exim 4.97–4.99.2 builds using GnuTLS, STARTTLS and CHUNKING that may enable unauthenticated RCE via BDAT traffic. Exim 4.99.3 fixes it; OpenSSL builds are unaffected.

Key points

  • CVE-2026-45185 affects Exim versions 4.97 through 4.99.2 compiled with GnuTLS and advertising STARTTLS and CHUNKING; OpenSSL-based builds are not affected.
  • During TLS shutdown while handling BDAT chunked SMTP traffic, stale callbacks may write to a freed TLS transfer buffer, causing a use-after-free.
  • Successful exploitation could allow unauthenticated command execution and access to Exim data and emails; further impact depends on server permissions and configuration.
  • XBOW researcher Federico Kirschbaum discovered and reported the flaw to Exim maintainers.
  • XBOW reported that its AI system produced a working exploit against a simplified target without ASLR or PIE; a human researcher won the challenge with LLM assistance.
  • Exim released version 4.99.3 to fix the flaw; the article advises affected Ubuntu- and Debian-based users to update.

Article Details

Vulnerability Types
  • Use-after-free
Severity
Critical
Affected Versions
  • Exim 4.97 through 4.99.2 on GnuTLS builds with STARTTLS and CHUNKING advertised
Exploitation Status
reported
Exploit Availability
claimed_or_private
Patch Status
available

MITRE ATT&CK

CVE

People

Products

Tools