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-2022-37452

CVE-2022-37452: Exim Buffer Overflow Vulnerability

CVE-2022-37452 is a heap-based buffer overflow vulnerability in Exim that affects versions before 4.95. The flaw occurs in host_name_lookup when sender_host_name is set. This article covers technical details, impact, and fixes.

Published: February 18, 2026

CVE-2022-37452 Overview

CVE-2022-37452 is a heap-based buffer overflow vulnerability in Exim, a widely deployed mail transfer agent (MTA), affecting versions before 4.95. The vulnerability exists in the host_name_lookup function within host.c when the sender_host_name is set. An attacker could exploit this vulnerability by sending specially crafted input that triggers the overflow condition in the alias list handling, potentially leading to remote code execution or denial of service.

Critical Impact

This heap-based buffer overflow vulnerability allows unauthenticated remote attackers to potentially execute arbitrary code on vulnerable Exim mail servers, compromising the confidentiality, integrity, and availability of affected systems.

Affected Products

  • Exim versions before 4.95
  • Debian Linux 10.0

Discovery Timeline

  • 2022-08-07 - CVE-2022-37452 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-37452

Vulnerability Analysis

This vulnerability is classified as CWE-787 (Out-of-bounds Write), specifically a heap-based buffer overflow. The flaw resides in the host_name_lookup function in src/src/host.c, which processes host alias lists during SMTP transactions. When sender_host_name is set, the function improperly calculates the required buffer size for storing aliases, leading to a heap buffer overflow condition.

The vulnerability is remotely exploitable without authentication, requiring no user interaction. An attacker can trigger the overflow by connecting to a vulnerable Exim server and manipulating DNS responses or SMTP transaction data that causes the alias list processing to overflow the allocated heap buffer.

Root Cause

The root cause lies in an off-by-one error in the alias count calculation within the host_name_lookup function. The original code failed to properly account for the terminating NULL pointer when allocating memory for the alias list array. The vulnerable code counted aliases but did not include space for the required NULL terminator, causing a heap buffer overflow when the alias list was populated.

Attack Vector

The attack vector is network-based, allowing remote attackers to exploit this vulnerability by:

  1. Connecting to a vulnerable Exim mail server
  2. Triggering a DNS lookup scenario where sender_host_name becomes set
  3. Providing or manipulating alias data that causes the buffer overflow
  4. Overwriting adjacent heap memory to achieve code execution or crash the service
c
 
   if (hosts->h_aliases)
     {
-    int count = 1;
+    int count = 1;  /* need 1 more for terminating NULL */
     uschar **ptr;
 
     for (uschar ** aliases = USS hosts->h_aliases; *aliases; aliases++) count++;

Source: GitHub Commit Change

The patch clarifies that the initial count of 1 is specifically needed for the terminating NULL pointer, addressing the off-by-one allocation error.

Detection Methods for CVE-2022-37452

Indicators of Compromise

  • Unexpected crashes or restarts of the Exim mail service
  • Abnormal memory consumption by the exim process
  • Suspicious SMTP connections with unusual DNS lookups or host name patterns
  • Core dumps from Exim showing heap corruption signatures

Detection Strategies

  • Monitor Exim server logs for crashes related to heap corruption or segmentation faults
  • Deploy network intrusion detection rules to identify malformed SMTP sessions targeting Exim
  • Use memory sanitization tools (AddressSanitizer) on test systems to detect exploitation attempts
  • Implement version detection scanning to identify unpatched Exim installations below 4.95

Monitoring Recommendations

  • Enable detailed logging for SMTP transactions and DNS lookups in Exim configuration
  • Set up alerting for Exim process crashes or unexpected restarts
  • Monitor system logs for segmentation fault messages from the Exim binary
  • Track network traffic patterns for anomalous SMTP connection behavior

How to Mitigate CVE-2022-37452

Immediate Actions Required

  • Upgrade Exim to version 4.95 or later immediately
  • If immediate upgrade is not possible, consider temporarily disabling or restricting external access to the Exim service
  • Review firewall rules to limit SMTP access to trusted networks where feasible
  • Enable additional logging to detect potential exploitation attempts

Patch Information

The vulnerability has been addressed in Exim version 4.95. The fix is available through the official GitHub Commit Change. For Debian-based systems, refer to the Debian LTS Security Notice for patched packages. The version comparison between 4.94 and 4.95 containing this fix is available at the GitHub Version Comparison.

Workarounds

  • Restrict SMTP access to trusted IP ranges using firewall rules if patching is delayed
  • Consider placing vulnerable Exim servers behind a reverse proxy or mail relay running a patched version
  • Disable features that trigger sender_host_name lookups if operationally feasible
  • Monitor for exploitation attempts while working toward applying the official patch
bash
# Configuration example
# Restrict Exim access via iptables while awaiting patch deployment
iptables -A INPUT -p tcp --dport 25 -s trusted_network/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 25 -j DROP

# Verify current Exim version
exim -bV | grep version
# Upgrade to patched version on Debian-based systems
apt-get update && apt-get install exim4

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechExim

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability4.70%

  • 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-787
  • Technical References
  • GitHub Exim Security Wiki

  • Debian LTS Security Notice

  • OpenWall OSS Security Discussion
  • Vendor Resources
  • GitHub Commit Change

  • GitHub Version Comparison

  • GitHub Overflow Exploit

  • Exim Security Documentation
  • Related CVEs
  • CVE-2025-67896: Exim Buffer Overflow Vulnerability

  • CVE-2020-28017: Exim Buffer Overflow Vulnerability

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

  • CVE-2023-42116: Exim SMTP Buffer Overflow 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