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

CVE-2022-3559: Exim Regex Use After Free Vulnerability

CVE-2022-3559 is a use after free flaw in Exim's Regex Handler component that could allow attackers to exploit memory corruption. This article covers the technical details, affected versions, security impact, and mitigation.

Published: February 11, 2026

CVE-2022-3559 Overview

A use after free vulnerability has been identified in Exim, a widely-deployed mail transfer agent (MTA). This issue affects the Regex Handler component, where improper memory management leads to a use after free condition. Successful exploitation of this vulnerability can result in denial of service, disrupting mail services for affected systems.

Critical Impact

Network-accessible vulnerability in Exim's Regex Handler can be exploited without authentication to cause denial of service, potentially disrupting critical email infrastructure.

Affected Products

  • Exim (all versions prior to patch)
  • Fedora 35
  • Fedora 36
  • Fedora 37

Discovery Timeline

  • October 17, 2022 - CVE-2022-3559 published to NVD
  • November 3, 2025 - Last updated in NVD database

Technical Details for CVE-2022-3559

Vulnerability Analysis

This vulnerability resides in Exim's Regex Handler component, where a use after free condition occurs during regex processing operations. Use after free vulnerabilities arise when a program continues to use memory after it has been freed, leading to undefined behavior. In the context of Exim, an attacker can trigger this condition remotely over the network without requiring authentication or user interaction.

The vulnerability is classified under CWE-416 (Use After Free) and CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer). When exploited, this flaw results in memory corruption that leads to service disruption. The impact is primarily availability-focused, as successful exploitation causes the Exim mail server to crash or become unresponsive.

Root Cause

The root cause of CVE-2022-3559 lies in improper memory lifecycle management within Exim's Regex Handler. When processing certain regex patterns, the handler fails to properly track memory allocation states, allowing operations on memory that has already been deallocated. This occurs because the code does not adequately verify that memory references remain valid before use, creating a window where freed memory can be accessed.

The specific fix is documented in commit 4e9ed49f8f12eb331b29bd5b6dc3693c520fddc2, which addresses the memory management issue by ensuring proper reference tracking in the affected regex handling code paths.

Attack Vector

The attack vector for this vulnerability is network-based. An attacker can remotely exploit this vulnerability by sending specially crafted input to an Exim mail server that triggers the vulnerable regex processing code path. The attack characteristics include:

  • Remote exploitation: The vulnerability can be triggered over the network without physical access
  • No authentication required: Attackers do not need valid credentials to exploit this flaw
  • No user interaction: Exploitation occurs automatically during mail processing
  • Availability impact: Successful exploitation results in denial of service

The vulnerability is exploited through malicious input that causes the Regex Handler to process data in a way that triggers the use after free condition. When the freed memory is subsequently accessed, it causes the Exim process to crash or behave unpredictably, resulting in mail service disruption.

Detection Methods for CVE-2022-3559

Indicators of Compromise

  • Unexpected Exim process crashes or restarts, particularly during mail processing
  • Memory corruption errors or segmentation faults in Exim logs
  • Unusual patterns in incoming mail traffic that may indicate exploit attempts targeting regex processing
  • Core dumps generated by Exim processes indicating memory access violations

Detection Strategies

  • Monitor Exim service stability and implement alerting for unexpected process terminations
  • Deploy intrusion detection systems (IDS) with signatures for known Exim exploitation patterns
  • Analyze incoming SMTP traffic for anomalous patterns that may trigger regex processing vulnerabilities
  • Implement application-level monitoring to detect memory corruption symptoms

Monitoring Recommendations

  • Enable verbose logging in Exim to capture detailed information about mail processing operations
  • Configure system monitoring to alert on Exim process crashes or high restart frequencies
  • Monitor system resources for signs of denial of service conditions affecting mail services
  • Review Exim panic logs regularly for indications of memory-related issues

How to Mitigate CVE-2022-3559

Immediate Actions Required

  • Apply the official patch (commit 4e9ed49f8f12eb331b29bd5b6dc3693c520fddc2) to affected Exim installations immediately
  • Update Fedora 35, 36, and 37 systems using the official package updates from Fedora repositories
  • Review mail server logs for any signs of exploitation attempts
  • Consider implementing network-level filtering to restrict SMTP access to trusted sources during the patching window

Patch Information

The Exim development team has released a fix for this vulnerability in commit 4e9ed49f8f12eb331b29bd5b6dc3693c520fddc2. System administrators should apply this patch or update to a patched version as soon as possible. Detailed information about the vulnerability and fix is available in Exim Bug Report #2915 and the Exim Git Commit.

Fedora users should apply the security updates announced in the Fedora Package Announcements. Debian LTS users should refer to the Debian LTS Announcement for updated packages.

Workarounds

  • Restrict network access to SMTP services using firewall rules to limit exposure to trusted networks only
  • Implement rate limiting on incoming SMTP connections to reduce the impact of potential exploitation attempts
  • Deploy a mail gateway or proxy in front of Exim servers to filter potentially malicious traffic
  • Monitor and restart Exim services automatically using process supervisors to maintain availability while patches are applied
bash
# Example: Restrict SMTP access to trusted networks using iptables
iptables -A INPUT -p tcp --dport 25 -s 192.168.1.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 25 -j DROP

# Example: Configure automatic Exim restart with systemd
systemctl enable exim.service
systemctl edit exim.service --force
# Add: [Service]
# Restart=always
# RestartSec=5

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 Probability0.41%

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

  • CWE-416
  • Technical References
  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • VulDB #211073

  • Debian LTS Announcement
  • Vendor Resources
  • Exim Bug Report #2915

  • Exim Git Commit Update
  • Related CVEs
  • CVE-2025-30232: Exim Use-After-Free Vulnerability

  • CVE-2022-37451: 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