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-2023-42116

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

CVE-2023-42116 is a stack-based buffer overflow RCE vulnerability in Exim SMTP server that allows unauthenticated attackers to execute arbitrary code. This article covers technical details, affected versions, and mitigations.

Published: February 4, 2026

CVE-2023-42116 Overview

CVE-2023-42116 is a stack-based buffer overflow vulnerability in Exim, one of the most widely deployed mail transfer agents (MTAs) on the internet. This vulnerability allows remote attackers to execute arbitrary code on affected Exim installations without requiring authentication. The flaw exists within the handling of NTLM challenge requests, where improper validation of user-supplied data length allows attackers to overflow a fixed-length stack-based buffer and achieve code execution in the context of the Exim service account.

Critical Impact

Unauthenticated remote code execution on mail servers running vulnerable Exim installations. Successful exploitation grants attackers full control over the mail server, potentially compromising all email communications and providing a foothold for lateral movement within the network.

Affected Products

  • Exim Mail Transfer Agent (all vulnerable versions)
  • Linux distributions using Exim as the default MTA
  • Debian-based systems with unpatched Exim installations

Discovery Timeline

  • 2023-10 - Debian LTS security announcement released
  • 2024-05-03 - CVE-2023-42116 published to NVD
  • 2025-11-04 - Last updated in NVD database

Technical Details for CVE-2023-42116

Vulnerability Analysis

This vulnerability (tracked as ZDI-CAN-17515) resides in Exim's NTLM authentication mechanism. When processing NTLM challenge requests during SMTP authentication, Exim fails to properly validate the length of user-supplied data before copying it into a fixed-length stack-based buffer. This classic stack-based buffer overflow (CWE-121) enables attackers to overwrite the return address and potentially inject shellcode or ROP chains to achieve arbitrary code execution.

The attack can be conducted remotely over the network without any form of authentication, making it particularly dangerous for internet-facing mail servers. Given that Exim handles email traffic on TCP port 25 (SMTP), 587 (submission), and 465 (SMTPS), any exposed Exim server with NTLM authentication enabled is potentially vulnerable.

Root Cause

The root cause is the lack of proper bounds checking when handling NTLM challenge data in Exim's SMTP authentication code. User-controlled input is copied to a stack buffer without validating that the data length does not exceed the buffer's allocated size. This allows an attacker to supply oversized data that overflows the buffer boundary, corrupting adjacent stack memory including saved return addresses.

Attack Vector

The attack is network-based and can be executed by any remote attacker who can establish a TCP connection to the vulnerable Exim SMTP service. The attacker initiates an SMTP session and triggers the NTLM authentication flow. By sending a specially crafted NTLM challenge response containing oversized data, the attacker can overflow the stack buffer. The overflow can be precisely controlled to overwrite the function's return address, redirecting execution flow to attacker-controlled code. Since no authentication is required, any internet-accessible Exim server with NTLM authentication enabled is at risk.

The vulnerability mechanism involves the NTLM challenge handling routine failing to validate input length against buffer capacity. When the crafted payload exceeds the buffer boundaries, it overwrites critical stack data structures. Technical implementation details are available in the Zero Day Initiative Advisory ZDI-23-1470.

Detection Methods for CVE-2023-42116

Indicators of Compromise

  • Unexpected crashes or core dumps from the Exim process, particularly during SMTP authentication
  • Anomalous NTLM authentication attempts in Exim logs with unusually large data payloads
  • Suspicious outbound connections or process spawning from the Exim service account
  • Evidence of unauthorized mail relay activity or configuration changes

Detection Strategies

  • Deploy network intrusion detection signatures to identify malformed NTLM challenge responses targeting Exim SMTP services
  • Monitor Exim log files for authentication errors or abnormal NTLM negotiation patterns
  • Implement host-based monitoring to detect unexpected child processes spawned by the Exim daemon
  • Configure SentinelOne Singularity to detect and alert on buffer overflow exploitation attempts and anomalous process behavior from mail services

Monitoring Recommendations

  • Enable detailed SMTP authentication logging in Exim configuration
  • Set up real-time alerting for Exim process crashes or segmentation faults
  • Monitor network traffic on ports 25, 587, and 465 for unusual NTLM authentication patterns
  • Implement file integrity monitoring for Exim binaries and configuration files

How to Mitigate CVE-2023-42116

Immediate Actions Required

  • Apply the latest Exim security patches immediately to all affected servers
  • If NTLM authentication is not required, disable it in Exim configuration to eliminate the attack surface
  • Restrict network access to SMTP services using firewall rules to limit exposure
  • Deploy SentinelOne Singularity for runtime protection against exploitation attempts

Patch Information

Security patches addressing CVE-2023-42116 have been released. Debian users should consult the Debian LTS Announcement for specific package versions. Organizations should update Exim to the latest patched version available from their distribution's package repositories or the upstream Exim project. The Zero Day Initiative Advisory provides additional details on affected versions.

Workarounds

  • Disable NTLM authentication in Exim by removing or commenting out NTLM-related authenticator configurations in exim.conf
  • Implement network segmentation to restrict direct access to mail servers from untrusted networks
  • Use a firewall or reverse proxy to filter incoming SMTP connections and limit exposure
  • Consider temporarily using alternative authentication mechanisms until patching is complete
bash
# Disable NTLM authentication in Exim configuration
# In /etc/exim4/exim4.conf or equivalent, comment out or remove NTLM authenticator blocks:

# ntlm:
#   driver = cyrus_sasl
#   public_name = NTLM
#   server_hostname = ${primary_hostname}
#   server_set_id = $auth1

# Restart Exim after configuration changes
sudo systemctl restart exim4

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 Probability6.73%

  • 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-121
  • Technical References
  • Zero Day Initiative Advisory ZDI-23-1470

  • Debian LTS Announcement
  • Related CVEs
  • CVE-2023-42118: Libspf2 Integer Underflow RCE Vulnerability

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

  • CVE-2020-28026: Exim Mail Server RCE Vulnerability

  • 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