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

CVE-2022-37451: Exim Use-After-Free Vulnerability

CVE-2022-37451 is a use-after-free vulnerability in Exim caused by improper memory management in PAM authentication. This post covers the technical details, affected versions, security impact, and mitigation steps.

Published: February 18, 2026

CVE-2022-37451 Overview

CVE-2022-37451 is an invalid free vulnerability affecting Exim mail transfer agent versions before 4.96. The flaw exists in the pam_converse function within auths/call_pam.c, where improper memory management occurs because store_free is not used after store_malloc. This memory corruption issue can be exploited remotely to cause a denial of service condition.

Critical Impact

Remote attackers can exploit this invalid free vulnerability to crash the Exim mail server, disrupting email services for affected organizations.

Affected Products

  • Exim versions prior to 4.96
  • Fedora 35
  • Fedora 36

Discovery Timeline

  • 2022-06-25 - Issue discussed on the Exim Mailing List
  • 2022-08-06 - CVE-2022-37451 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-37451

Vulnerability Analysis

This vulnerability is classified as CWE-763 (Release of Invalid Pointer or Reference). The root cause lies in a memory management mismatch within the PAM (Pluggable Authentication Modules) authentication handler in Exim. When processing PAM authentication responses, Exim uses its internal memory allocation function string_copy_malloc() to allocate memory for the response data. However, PAM expects to free this memory using standard libc free(). Since Exim's internal allocator and libc's allocator are incompatible, when PAM attempts to free the response memory, it results in an invalid free operation. This can lead to heap corruption and subsequent denial of service through application crash.

Root Cause

The vulnerability stems from the use of Exim's internal memory allocation function string_copy_malloc() for allocating PAM response buffers. PAM's authentication framework assumes that response memory is allocated using standard libc malloc() and subsequently frees it with free(). The mismatch between Exim's custom allocator and PAM's expectation for libc-managed memory creates the invalid free condition when PAM releases the response data after authentication processing.

Attack Vector

An attacker can exploit this vulnerability remotely over the network by triggering PAM authentication attempts. Since Exim is commonly exposed on SMTP ports (25, 465, 587), an attacker could initiate authentication requests that exercise the vulnerable code path. When the PAM subsystem processes and subsequently frees the improperly allocated response buffer, the invalid free corrupts heap memory, potentially causing the Exim process to crash. No authentication is required to trigger this vulnerability, and user interaction is not necessary.

The security patch demonstrates the fix applied to address this vulnerability:

c
 	arg = US"";
 	pam_arg_ended = TRUE;
 	}
-      reply[i].resp = CS string_copy_malloc(arg); /* PAM frees resp */
+      reply[i].resp = strdup(CCS arg); /* Use libc malloc, PAM frees resp directly*/
       reply[i].resp_retcode = PAM_SUCCESS;
       break;

Source: GitHub Exim Commit Details

Detection Methods for CVE-2022-37451

Indicators of Compromise

  • Unexpected Exim process crashes or restarts, particularly during authentication attempts
  • Core dump files generated by the Exim daemon indicating heap corruption
  • Error messages in mail logs related to PAM authentication failures followed by segmentation faults
  • Increased SMTP connection failures reported by monitoring systems

Detection Strategies

  • Monitor Exim mail server logs for unexpected daemon termination or restart events
  • Implement process monitoring to detect abnormal Exim crashes and automatic restart patterns
  • Deploy network monitoring to identify unusual authentication attempt patterns on SMTP ports
  • Use heap debugging tools in development environments to identify invalid free operations

Monitoring Recommendations

  • Configure alerting for Exim service disruptions and automatic restarts
  • Review system logs for segmentation fault entries associated with the Exim process
  • Monitor PAM authentication logs for anomalous patterns that may indicate exploitation attempts
  • Implement service availability monitoring for critical email infrastructure

How to Mitigate CVE-2022-37451

Immediate Actions Required

  • Upgrade Exim to version 4.96 or later immediately
  • If immediate upgrade is not possible, consider temporarily disabling PAM authentication
  • Review and apply security patches from your Linux distribution's package repository
  • Monitor Exim service stability for signs of exploitation attempts

Patch Information

The vulnerability has been addressed in Exim version 4.96. The fix replaces Exim's internal string_copy_malloc() function with the standard libc strdup() function for PAM response allocation. This ensures that memory allocated for PAM responses uses libc's heap, which PAM can safely free. The official patch is available in commit 51be321b. Fedora users should apply updates via the Fedora Package Announcements for their respective versions.

Workarounds

  • Disable PAM authentication in Exim configuration if not required for operations
  • Implement network-level access controls to limit SMTP authentication attempts to trusted sources
  • Deploy rate limiting on authentication endpoints to reduce potential impact
  • Consider using alternative authentication mechanisms until patching is complete
bash
# Check current Exim version
exim -bV

# On Fedora systems, update Exim package
sudo dnf update exim

# Verify PAM authentication configuration in Exim
grep -r "driver.*=.*pam" /etc/exim/

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

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability6.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-763
  • Technical References
  • CWE Definition for 762

  • GitHub Exim Version Comparison

  • GitHub Exim Security Wiki

  • Fedora Package Announcement

  • Fedora Package Announcement

  • OpenWall OSS-Security Discussion
  • Vendor Resources
  • GitHub Exim Commit Details

  • GitHub PoC Repository for Exim

  • Exim Lurker Message Archive

  • Exim Security Documentation
  • Related CVEs
  • CVE-2022-3559: Exim Regex Use After Free Vulnerability

  • CVE-2025-30232: Exim Use-After-Free Vulnerability

  • CVE-2020-28018: 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