Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2020-28018

CVE-2020-28018: Exim Use After Free Vulnerability

CVE-2020-28018 is a use after free vulnerability in Exim mail server affecting smtp_reset function in OpenSSL builds. This article covers the technical details, affected versions, security impact, and mitigation steps.

Published: March 4, 2026

CVE-2020-28018 Overview

CVE-2020-28018 is a critical Use After Free vulnerability affecting Exim mail transfer agent versions prior to 4.94.2. The vulnerability exists in the smtp_reset function and is particularly prevalent in builds compiled with OpenSSL. This memory corruption flaw allows remote attackers to potentially execute arbitrary code or cause denial of service conditions on vulnerable mail servers.

Critical Impact

This Use After Free vulnerability in Exim's SMTP handling can be exploited remotely without authentication, potentially allowing attackers to compromise mail servers and gain unauthorized access to sensitive email communications.

Affected Products

  • Exim versions prior to 4.94.2
  • Exim builds compiled with OpenSSL
  • Systems running unpatched Exim mail transfer agents

Discovery Timeline

  • 2021-05-06 - CVE-2020-28018 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-28018

Vulnerability Analysis

This vulnerability is classified as CWE-416 (Use After Free), a memory corruption vulnerability that occurs when a program continues to use a pointer after the memory it references has been freed. In the context of Exim, this issue manifests within the smtp_reset function, which is responsible for resetting the SMTP session state between commands or connections.

The flaw is particularly common in Exim builds compiled with OpenSSL, suggesting that the interaction between Exim's memory management and OpenSSL's buffer handling creates conditions where freed memory can be subsequently accessed. When exploited, this can lead to arbitrary code execution or application crashes.

Root Cause

The root cause of CVE-2020-28018 lies in improper memory management within Exim's smtp_reset function. When handling SMTP sessions, the function deallocates certain memory structures but fails to properly invalidate all references to that memory. In specific scenarios—particularly those involving OpenSSL operations—subsequent code paths may attempt to access this freed memory, leading to undefined behavior.

The vulnerability is exacerbated by the complexity of managing memory across the boundaries between Exim's core code and OpenSSL library calls, where different subsystems may have inconsistent views of memory allocation state.

Attack Vector

The attack vector for this vulnerability is network-based, requiring no authentication or user interaction. An attacker can exploit this vulnerability by:

  1. Establishing an SMTP connection to a vulnerable Exim server
  2. Sending specially crafted SMTP commands that trigger the smtp_reset function
  3. Manipulating the timing and sequence of operations to cause the use-after-free condition
  4. Leveraging the memory corruption to potentially execute arbitrary code or crash the service

The vulnerability can be exploited through the TLS/OpenSSL code paths, making encrypted SMTP connections a potential attack surface. For detailed technical analysis, refer to the Exim Security Analysis for CVE-2020-28018.

Detection Methods for CVE-2020-28018

Indicators of Compromise

  • Unexpected Exim process crashes or restarts, particularly during SMTP TLS handshakes
  • Abnormal memory usage patterns in Exim daemon processes
  • Suspicious SMTP connection patterns with unusual command sequences
  • Core dumps or segmentation faults in Exim logs related to smtp_reset
  • Evidence of memory corruption in system logs during mail processing

Detection Strategies

  • Monitor Exim version strings in logs to identify vulnerable installations (versions below 4.94.2)
  • Implement network intrusion detection rules for anomalous SMTP traffic patterns
  • Deploy memory safety monitoring tools to detect use-after-free conditions in running processes
  • Enable enhanced Exim debugging logs to capture unusual smtp_reset behavior
  • Use vulnerability scanners to identify Exim servers running affected versions

Monitoring Recommendations

  • Configure centralized logging for all Exim servers to correlate potential exploitation attempts
  • Set up alerts for repeated SMTP connection failures or crashes on mail servers
  • Monitor for unusual TLS/SSL negotiation patterns in SMTP traffic
  • Track Exim process stability metrics and restart frequency
  • Review OpenSSL-related errors in conjunction with Exim service anomalies

How to Mitigate CVE-2020-28018

Immediate Actions Required

  • Upgrade Exim to version 4.94.2 or later immediately
  • Audit all systems for Exim installations and verify current versions
  • Implement network segmentation to limit direct internet exposure of mail servers
  • Consider temporary firewall rules to restrict SMTP access to trusted sources during patching
  • Enable enhanced logging to detect potential exploitation attempts

Patch Information

The vulnerability is addressed in Exim version 4.94.2. Organizations should upgrade to this version or later to remediate the vulnerability. The official security advisory and technical details are available from the Exim Security Documentation. Additional discussion and context can be found in the Openwall OSS Security mailing list.

Workarounds

  • If immediate patching is not possible, consider restricting SMTP access to known IP ranges using firewall rules
  • Disable TLS/SSL on Exim temporarily if the attack surface can be reduced without breaking mail flow (not recommended for production)
  • Implement rate limiting on SMTP connections to slow potential exploitation attempts
  • Deploy a mail relay or proxy in front of vulnerable Exim servers to filter malicious traffic
  • Monitor systems closely for signs of compromise while awaiting maintenance windows for patching
bash
# Check current Exim version
exim -bV | grep version

# Example: Restrict SMTP access via iptables while patching
iptables -A INPUT -p tcp --dport 25 -s trusted_network/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 25 -j DROP

# Verify Exim configuration after upgrade
exim -bP | grep -i version

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 Probability76.13%

  • 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
  • Openwall OSS Security Discussion

  • Openwall OSS Security Discussion

  • Openwall OSS Security Discussion

  • Openwall OSS Security Discussion

  • Openwall OSS Security Discussion

  • Openwall OSS Security Discussion

  • Openwall OSS Security Discussion
  • Vendor Resources
  • Exim Security Analysis CVE-2020-28018
  • 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-2025-67896: Exim Buffer Overflow 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