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
    • 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-28026

CVE-2020-28026: Exim Mail Server RCE Vulnerability

CVE-2020-28026 is a remote code execution vulnerability in Exim mail server affecting versions before 4.94.2. Attackers can exploit DSN configurations to execute arbitrary commands as root. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Published: March 4, 2026

CVE-2020-28026 Overview

CVE-2020-28026 is a critical command injection vulnerability affecting Exim mail transfer agent versions prior to 4.94.2. The flaw stems from improper neutralization of line delimiters in non-default configurations that enable Delivery Status Notification (DSN). Certain uses of ORCPT= can place a newline into a spool header file, allowing unauthenticated remote attackers to execute arbitrary commands with root privileges.

Critical Impact

Unauthenticated remote attackers can achieve root-level command execution on vulnerable Exim servers with DSN enabled, potentially leading to complete system compromise.

Affected Products

  • Exim versions before 4.94.2
  • Systems with non-default DSN (Delivery Status Notification) configurations enabled
  • Mail servers accepting SMTP connections with ORCPT parameter handling

Discovery Timeline

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

Technical Details for CVE-2020-28026

Vulnerability Analysis

This vulnerability exploits improper handling of line delimiters in Exim's Delivery Status Notification processing. When DSN is enabled (a non-default configuration), the mail server processes the ORCPT= parameter during SMTP transactions. The vulnerability allows an attacker to inject newline characters through specially crafted ORCPT= values, which are then written directly into spool header files without proper sanitization.

The injection of newline characters into spool header files allows attackers to manipulate the structure of these files, potentially inserting arbitrary header content that gets processed by Exim's delivery mechanisms. Since Exim runs with elevated privileges (typically as root) during mail delivery operations, successful exploitation results in arbitrary command execution with root-level access.

Root Cause

The root cause is insufficient input validation and improper neutralization of special characters (specifically line delimiters) in the ORCPT= parameter processing logic. When constructing spool header files, Exim fails to properly sanitize or escape newline characters embedded in ORCPT values, allowing attackers to break out of the intended data context and inject malicious content.

Attack Vector

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

  1. Connecting to a vulnerable Exim SMTP server with DSN enabled
  2. Initiating an SMTP transaction with a specially crafted ORCPT= parameter containing newline characters
  3. The malicious newline characters are written to spool header files
  4. When Exim processes the spool file, the injected content is interpreted as legitimate headers or commands
  5. This leads to arbitrary command execution with root privileges

The attack complexity is low as exploitation requires only network access to the SMTP service and knowledge of the vulnerability mechanics. For detailed technical analysis, refer to the Exim Security Advisory CVE-2020-28026.

Detection Methods for CVE-2020-28026

Indicators of Compromise

  • Unusual or malformed entries in Exim spool header files containing unexpected newline sequences
  • SMTP log entries showing abnormal ORCPT= parameter values with encoded or raw newline characters
  • Unexpected processes spawned by the Exim mail daemon
  • System logs indicating unauthorized command execution with Exim-related parent processes

Detection Strategies

  • Monitor SMTP traffic for malformed or suspicious ORCPT= parameters containing %0a, %0d, or raw newline characters
  • Implement intrusion detection rules to flag SMTP transactions with abnormal DSN-related parameters
  • Deploy file integrity monitoring on Exim spool directories to detect unauthorized modifications
  • Configure alerting for any non-standard command execution originating from Exim processes

Monitoring Recommendations

  • Enable detailed SMTP transaction logging to capture all DSN-related parameter values
  • Implement real-time monitoring of Exim process activity and child process spawning
  • Review Exim version inventory across all mail servers to identify vulnerable instances
  • Configure network monitoring to detect exploitation attempts targeting port 25/SMTP

How to Mitigate CVE-2020-28026

Immediate Actions Required

  • Upgrade Exim to version 4.94.2 or later immediately on all affected systems
  • If immediate patching is not possible, disable Delivery Status Notification (DSN) functionality
  • Review Exim configuration to ensure DSN is explicitly disabled if not required
  • Audit existing spool files for signs of compromise before applying patches

Patch Information

Exim version 4.94.2 contains the official fix for this vulnerability. Administrators should upgrade to this version or later to address CVE-2020-28026. The patch properly sanitizes line delimiter characters in ORCPT= parameter handling, preventing the injection of newline characters into spool header files. For complete technical details on the vulnerability and fix, see the Exim Security Advisory.

Workarounds

  • Disable DSN functionality in Exim configuration if the feature is not required for business operations
  • Implement network-level filtering to block or sanitize SMTP traffic containing suspicious ORCPT patterns
  • Deploy application-layer firewall rules to inspect and filter malicious SMTP commands
  • Consider running Exim in a containerized or sandboxed environment to limit impact of potential exploitation
bash
# Disable DSN in Exim configuration (exim.conf)
# Add or modify the following to disable DSN processing:
dsn_advertise_hosts = 

# Verify Exim version after patching
exim -bV | grep version

# Check if DSN is currently enabled
exim -bP dsn_advertise_hosts

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechExim

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability3.96%

  • 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
  • NVD-CWE-Other
  • Technical References
  • Exim Security Advisory CVE-2020-28026
  • Related CVEs
  • CVE-2023-42116: Exim SMTP Buffer Overflow RCE Vulnerability

  • CVE-2023-42118: Libspf2 Integer Underflow RCE Vulnerability

  • CVE-2023-42115: Exim AUTH Out-Of-Bounds Write RCE Flaw

  • CVE-2020-28021: Exim Mail Server RCE Vulnerability
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