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-28007

CVE-2020-28007: Exim Privilege Escalation Vulnerability

CVE-2020-28007 is a privilege escalation vulnerability in Exim that allows attackers to overwrite critical root-owned files via symlink attacks. This article covers the technical details, affected versions, and mitigation steps.

Published: March 4, 2026

CVE-2020-28007 Overview

CVE-2020-28007 is a local privilege escalation vulnerability in Exim mail transfer agent versions prior to 4.94.2. The vulnerability exists because Exim operates with root privileges when accessing the log directory, which is owned by a non-root user. This privilege mismatch creates a security gap that allows attackers to exploit symlink or hard link attacks to overwrite critical root-owned files anywhere on the filesystem.

Critical Impact

Local attackers with limited privileges can leverage this vulnerability to overwrite arbitrary root-owned files, potentially leading to complete system compromise, privilege escalation to root, or denial of service by corrupting essential system files.

Affected Products

  • Exim versions prior to 4.94.2
  • All Exim 4.x installations running with default log directory configurations
  • Linux/Unix systems running vulnerable Exim mail server deployments

Discovery Timeline

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

Technical Details for CVE-2020-28007

Vulnerability Analysis

This vulnerability stems from improper privilege handling in Exim's log directory operations. Exim, as a mail transfer agent, requires elevated privileges to perform certain operations. However, the design flaw lies in how Exim handles the log directory: while the directory itself is owned by a non-root user (typically the exim user), Exim operates with root privileges when writing to files within this directory.

This architectural weakness creates a race condition opportunity where an attacker with local access and permissions to the log directory can create symbolic links or hard links pointing to sensitive root-owned files elsewhere on the filesystem. When Exim subsequently writes log data, it follows these links and overwrites the target files with root privileges, effectively allowing arbitrary file overwrites as root.

The vulnerability is classified under CWE-59 (Improper Link Resolution Before File Access), commonly known as a "link following" vulnerability.

Root Cause

The root cause is Exim's failure to properly validate file paths and detect symbolic or hard links before performing write operations in the log directory. The privilege separation model is flawed—Exim retains root privileges during log operations in a directory that less-privileged users can manipulate.

Specifically:

  • The log directory is owned by a non-privileged user (e.g., exim or mail)
  • Exim operates as root when writing to this directory
  • No verification is performed to ensure the target file is not a symbolic or hard link
  • An attacker controlling the log directory can redirect writes to arbitrary locations

Attack Vector

This is a local attack that requires the attacker to have local access to the system and write permissions to the Exim log directory. The attacker creates a malicious symlink or hard link in the log directory, pointing to a sensitive root-owned file such as /etc/passwd, /etc/shadow, or system binaries.

When Exim writes log data (which occurs during normal mail processing), it follows the link and overwrites the target file with log content. While the content written is log data rather than attacker-controlled data, strategic targeting can corrupt critical system files, potentially leading to denial of service or authentication bypass. In some scenarios, the attacker may be able to time the attack to inject specific content by controlling mail processing that generates predictable log entries.

For detailed technical analysis and exploitation mechanics, refer to the Exim CVE-2020-28007 Documentation.

Detection Methods for CVE-2020-28007

Indicators of Compromise

  • Unexpected symbolic or hard links appearing in the Exim log directory (/var/log/exim/ or similar)
  • Root-owned system files with unexpected modification timestamps correlating with Exim log activity
  • Presence of log-like content in critical system files such as /etc/passwd or /etc/shadow
  • File integrity monitoring alerts for sensitive system files

Detection Strategies

  • Implement file integrity monitoring (FIM) on critical system files and the Exim log directory
  • Monitor for symlink or hard link creation events in the Exim log directory using auditd rules
  • Deploy behavioral analysis to detect unusual file operations by the Exim process
  • Review Exim process file access patterns for writes outside expected log file paths

Monitoring Recommendations

  • Configure auditd to monitor the Exim log directory for link creation events
  • Enable SentinelOne's behavioral AI to detect suspicious privilege escalation patterns
  • Set up alerts for any modification to root-owned files by the Exim process
  • Regularly audit the Exim log directory for unexpected file types or links

How to Mitigate CVE-2020-28007

Immediate Actions Required

  • Upgrade Exim to version 4.94.2 or later immediately
  • Audit existing Exim log directories for suspicious symlinks or hard links
  • Restrict permissions on the Exim log directory to prevent unauthorized link creation
  • Consider running Exim with reduced privileges where possible

Patch Information

The vulnerability is addressed in Exim version 4.94.2 and later. The patch implements proper link resolution checks before file access operations in the log directory, preventing the exploitation of symlink and hard link attacks.

Administrators should obtain the patched version from official Exim distribution channels or their Linux distribution's package repositories. For detailed patch information, consult the Exim CVE-2020-28007 Documentation.

Workarounds

  • Change the log directory ownership to root while maintaining appropriate group permissions for log access
  • Mount the log directory with the nosymfollow option if supported by the filesystem
  • Implement mandatory access control (SELinux/AppArmor) policies to restrict Exim's file access
  • Monitor and restrict the creation of links in the Exim log directory using filesystem ACLs
bash
# Configuration example - Restrict log directory permissions
# Change ownership to root:exim and restrict write access
chown root:exim /var/log/exim
chmod 750 /var/log/exim

# Enable auditd monitoring for link creation in log directory
auditctl -w /var/log/exim -p wa -k exim_log_monitor

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechExim

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.23%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-59
  • Vendor Resources
  • Exim CVE-2020-28007 Documentation
  • Related CVEs
  • CVE-2025-67896: Exim Buffer Overflow Vulnerability

  • CVE-2025-26794: Exim Mail Server SQLi Vulnerability

  • CVE-2023-42116: Exim SMTP Buffer Overflow RCE Vulnerability

  • CVE-2023-42114: Exim NTLM Information Disclosure Flaw
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