The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-45185

CVE-2026-45185: Exim Use-After-Free Vulnerability

CVE-2026-45185 is a use-after-free vulnerability in Exim mail server affecting versions before 4.99.3. Attackers can exploit this flaw to execute arbitrary code. This article covers technical details, impact, and mitigation.

Published: May 17, 2026

CVE-2026-45185 Overview

CVE-2026-45185 is a remotely reachable use-after-free vulnerability in Exim mail transfer agent versions before 4.99.3 when built with certain GnuTLS configurations. The flaw resides in the BDAT body parsing path used during SMTP CHUNKING transfers. An attacker triggers the condition by sending a TLS close_notify mid-body during a CHUNKING transfer, then transmitting a final cleartext byte on the same TCP connection. This sequence causes heap corruption in the Exim process. An unauthenticated network attacker can leverage the corruption to execute arbitrary code on the mail server [CWE-416].

Critical Impact

Unauthenticated remote code execution against internet-facing Exim mail servers with GnuTLS and CHUNKING enabled.

Affected Products

  • Exim versions before 4.99.3
  • Exim builds linked against GnuTLS in vulnerable configurations
  • SMTP services with CHUNKING (BDAT) extension enabled

Discovery Timeline

  • 2026-05-12 - CVE-2026-45185 published to the National Vulnerability Database
  • 2026-05-13 - Last updated in NVD database

Technical Details for CVE-2026-45185

Vulnerability Analysis

The vulnerability lives in Exim's handling of the SMTP BDAT command, which is part of the CHUNKING extension defined in RFC 3030. CHUNKING allows clients to send message bodies in length-prefixed binary chunks rather than relying on dot-stuffing termination. When the SMTP session is wrapped in TLS using GnuTLS, Exim maintains parallel state for the encrypted transport and the BDAT body parser. The interaction between these two state machines is where the defect occurs.

An attacker who initiates a BDAT transfer over TLS and issues a close_notify alert mid-body causes Exim to tear down TLS-related buffers while the BDAT parser still holds references to memory that is freed during cleanup. A subsequent cleartext byte on the same TCP connection re-enters the body-reading code path, which dereferences and writes through the dangling pointer. The result is heap corruption that an attacker can shape into arbitrary code execution.

Root Cause

The root cause is a lifetime mismatch between TLS session teardown and the BDAT body reader. Exim frees structures tied to the TLS layer when close_notify is processed, but the BDAT state retains pointers into those structures. The condition is classified as a use-after-free [CWE-416] and is reachable without authentication.

Attack Vector

Exploitation requires only network access to an Exim listener that accepts STARTTLS or implicit TLS and advertises CHUNKING. The attacker opens an SMTP session, negotiates TLS, issues MAIL FROM and RCPT TO, begins a BDAT chunk transfer, sends close_notify partway through the chunk, then writes one additional cleartext byte before the TCP connection is closed. No prior credentials, mail relay permissions, or user interaction are required.

The vulnerability is described in prose only because verified proof-of-concept code has not been published in the referenced advisories. See the CVE-2026-45185 Security Notice and the Xbow Blog on CVE-2026-45185 for additional technical context.

Detection Methods for CVE-2026-45185

Indicators of Compromise

  • SMTP sessions where a TLS close_notify record is followed by additional cleartext bytes on the same TCP connection before FIN.
  • Exim worker process crashes, segmentation faults, or panic log entries referencing BDAT or TLS read paths.
  • Unexpected child processes spawned by the Exim daemon, particularly shells or network tools.
  • Outbound connections initiated from the Exim process to attacker-controlled hosts immediately after a BDAT transaction.

Detection Strategies

  • Inspect Exim mainlog and paniclog for abnormal termination of sessions that used the BDAT verb over TLS.
  • Use network sensors to flag SMTP flows that contain a TLS alert record followed by plaintext SMTP bytes on the same 5-tuple.
  • Correlate Exim process crash events with preceding SMTP connections from external IP addresses.

Monitoring Recommendations

  • Enable verbose SMTP transaction logging including +smtp_protocol_error and +tls_cipher log selectors.
  • Forward Exim logs and host process telemetry to a centralized analytics platform for cross-correlation with network telemetry.
  • Alert on any execve from the Exim UID that is not an expected delivery transport or queue runner.

How to Mitigate CVE-2026-45185

Immediate Actions Required

  • Upgrade Exim to version 4.99.3 or later on all mail relays and edge MTAs.
  • Inventory all Exim instances and identify those compiled against GnuTLS, as those are the affected builds.
  • Restrict inbound SMTP exposure to known mail peers where operationally feasible until patching is complete.

Patch Information

The Exim project released a fix in version 4.99.3 as documented in the Exim Security Release 2026-05-01. Administrators should apply distribution-provided packages once available or rebuild from upstream sources. Confirm the running binary version with exim -bV after deployment.

Workarounds

  • Rebuild Exim against OpenSSL instead of GnuTLS if upgrading is not immediately possible, since the defect is specific to certain GnuTLS configurations.
  • Disable the CHUNKING extension by setting chunking_advertise_hosts = to an empty value in exim.conf, which removes the BDAT attack surface.
  • Terminate SMTP TLS at an upstream proxy that does not forward raw close_notify semantics to the Exim backend.
bash
# Configuration example: disable CHUNKING advertisement in exim.conf
chunking_advertise_hosts =

# Verify Exim version after patching
exim -bV | head -n 1

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechExim

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-416
  • Technical References
  • Exim Security Overview

  • Exim Official Website

  • CVE-2026-45185 Security Notice

  • Exim Security Release 2026-05-01

  • Hacker News Discussion

  • Openwall OSS-Security Mail

  • Xbow Blog on CVE-2026-45185

  • Openwall OSS-Security Update
  • Related CVEs
  • CVE-2022-3559: Exim Regex Use After Free Vulnerability

  • CVE-2025-30232: Exim Use-After-Free Vulnerability

  • CVE-2022-37451: Exim Use-After-Free Vulnerability

  • CVE-2020-28018: Exim Use After Free Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English