Latest Exim Mail vulnerability: CVE-2026-45185 #

Researchers disclosed that certain versions of Exim are susceptible to a critical remote code execution (RCE) vulnerability caused by a use-after-free (UAF) condition in the BDAT body parsing path. The flaw is specifically triggered when Exim is configured to use GnuTLS, the default TLS library for many Debian-based distributions. The vulnerability occurs when a client sends a TLS close_notify alert mid-body during an SMTP CHUNKING (RFC 3030) transfer, followed by a final cleartext byte on the same TCP connection. This specific sequence leads to heap corruption, which a remote, unauthenticated attacker can leverage to execute arbitrary code on the system. The vulnerability, designated CVE-2026-45185, also known as Dead.Letter, is rated critical with a base CVSS score of 9.8.

The following versions are affected

  • Exim: Versions prior to 4.99.3 (when configured with GnuTLS).

    What is Exim? #

    Exim is an open-source Mail Transfer Agent (MTA) for Unix-like operating systems that manages the routing and delivery of email messages via SMTP using a highly flexible and programmable configuration system.

    What is the impact? #

    Successful exploitation of the vulnerability could allow a remote, unauthenticated attacker to execute arbitrary code on the affected system.

    Are updates or workarounds available? #

    Upgrade affected systems to the new versions

    • Exim: Upgrade to 4.99.3 or later.

    How to find potentially vulnerable systems with runZero #

    From the Service inventory, use the following query to locate potentially impacted assets:

    product:=exim AND banner:"STARTTLS"
    

    October 2023: CVE-2023-42116, CVE-2023-42117, CVE-2023-42118, CVE-2023-42119, and CVE-2023-42114 #

    On September 27th 2023, Trend Micro's Zero Day Initiative (ZDI) published details of a critical zero-day vulnerability that allows an unauthenticated attacker the ability to remotely execute arbitrary code within the context of an Exim SMTP service account. In addition, ZDI disclosed five additional zero-day vulnerabilities with lower severity rankings:

    What is Exim Mail? #

    Exim mail is an open source, message transfer agent (MTA) that runs on Unix/Linux operating systems. Exim is also the default MTA configured on Debian Linux distributions.

    Are updates available? #

    Recently, maintainers of the Exim mail server issued a 4.96.1 patch that appears to resolve four of the six vulnerabilities listed above. Although the maintainers are still working to resolve the remaining vulnerabilities, if you are running Exim mail servers on your network, you should apply the security patch immediately.

    How do I find potentially vulnerable Exim mail servers with runZero? #

    A Shodan search showed nearly 3.5 million Exim servers exposed to the internet. Their accessibility makes these mail transfer agents targets for attackers.

    With runZero, you can find Exim mail servers in your inventory with this pre-built query. This query searches for any live asset that has the exim product exposed over SMTP.

    product:exim
    

    As always, any prebuilt queries are available from your runZero console. Check out the documentation for other useful inventory queries.

    Written by HD Moore

    HD Moore is the founder and CEO of runZero. Previously, he founded the Metasploit Project and served as the main developer of the Metasploit Framework, which is the world's most widely used penetration testing framework.

    More about HD Moore

    Written by Matthew Kienow

    Matthew Kienow is a software engineer and security researcher. Matthew previously worked on the Recog recognition framework, AttackerKB as well as Metasploit's MSF 5 APIs. He has also designed, built, and successfully deployed many secure software solutions; however, often he enjoys breaking them instead. He has presented his research at various security conferences including DerbyCon, Hack In Paris, and CarolinaCon. His research has been cited by CSO, Threatpost and SC Magazine.

    More about Matthew Kienow
    Subscribe Now

    Get the latest news and expert insights delivered in your inbox.

    Welcome to the club! Your subscription to our newsletter is successful.

    Explore more runZero

    Product
    Announcing runZero 4.9: Unmask attack paths and segmentation gaps with advanced topology and deep OT device intelligence
    With runZero 4.9, visualize attacker lateral movement, harden network choke points, gain deep OT telemetry to secure converged environments, and more.
    Webcasts
    runZero Hour, Ep. 30: Segmentation - stop assuming & start verifying with runZero 4.9
    See runZero 4.9 in action! Join HD Moore and Tod Beardsley to learn how interactive attack path mapping and advanced OT intelligence expose hidden...
    Product Videos
    runZero 4.9: Advanced topology, attack path mapping, & deep OT intelligence
    With runZero 4.9, visualize attacker lateral movement, harden network choke points, gain deep OT telemetry to secure converged environments, and more.
    runZero Perspective
    Dawn of the apex agentic adversary
    When agentic AI can weaponize exploits in seconds, visibility is everything. Stop the predator with runZero’s exposure management for the AI-attack...
    Webcasts
    Beyond the Zero-Day: Mapping the network attackers actually see
    Breaches are inevitable. Learn from HD Moore how attackers exploit the seams between IT, IoT, and OT networks — and how to fix the segmentation...
    Podcasts
    Risky Biz Interview: Navigating the AI vibe shift with HD Moore
    runZero Founder and CEO HD Moore drops by in this week's Risky Biz sponsor interview to talk about the concerning AI vibe shift and what to do...
    Podcasts
    From two weeks to three days: The KEV deadline debate
    Former CISA insider Todd Beardsley joins Greg to reveal what it takes to land on the KEV catalog and why ultra-short patching deadlines might...
    Solution Briefs
    runZero for NIS2 compliance
    You can’t secure what you can’t see. runZero provides the complete asset visibility and continuous reporting you need to satisfy strict NIS2...

    See Results in Minutes

    See & secure your total attack surface. Even the unknowns & unmanageable.