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-2024-39929

CVE-2024-39929: Exim Auth Bypass Vulnerability

CVE-2024-39929 is an authentication bypass flaw in Exim that allows attackers to deliver malicious attachments by exploiting RFC 2231 header parsing. This article covers technical details, affected versions, and mitigations.

Published: January 28, 2026

CVE-2024-39929 Overview

CVE-2024-39929 is an input validation vulnerability in Exim mail transfer agent through version 4.97.1 that allows remote attackers to bypass filename extension-blocking protection mechanisms. The vulnerability stems from improper parsing of multiline RFC 2231 header filenames, enabling attackers to potentially deliver executable attachments to end users' mailboxes despite configured security policies.

Critical Impact

Attackers can bypass the $mime_filename extension-blocking protection mechanism in Exim, potentially delivering malicious executable attachments to end users even when administrators have configured policies to block dangerous file types.

Affected Products

  • Exim versions through 4.97.1
  • All Exim installations using $mime_filename extension-blocking protection
  • Mail servers relying on Exim's MIME filename filtering for attachment security

Discovery Timeline

  • 2024-07-04 - CVE CVE-2024-39929 published to NVD
  • 2025-07-10 - Last updated in NVD database

Technical Details for CVE-2024-39929

Vulnerability Analysis

This vulnerability affects Exim's MIME header parsing functionality, specifically how it handles RFC 2231 encoded filenames that span multiple lines. RFC 2231 defines a mechanism for parameter value character set and language information, as well as parameter value continuations for long values. Exim's implementation fails to properly reassemble these multiline filenames before applying security checks, creating a security bypass condition.

The $mime_filename variable in Exim is commonly used by administrators to implement attachment filtering rules that block potentially dangerous file extensions such as .exe, .bat, .cmd, and other executable formats. When an attacker crafts a malicious email with a filename split across multiple RFC 2231 continuation lines, Exim incorrectly parses the filename, allowing attachments with blocked extensions to slip through the filter.

Root Cause

The root cause is classified as CWE-116 (Improper Encoding or Escaping of Output). Exim's MIME parsing code does not correctly handle the reassembly of multiline RFC 2231 header filenames before evaluating them against the $mime_filename extension-blocking rules. This creates a disconnect between what the mail server sees during filtering and what the end user's mail client interprets as the actual filename.

Attack Vector

The attack is network-based and requires user interaction. An attacker sends a specially crafted email with a malicious attachment where the filename is encoded using RFC 2231 multiline continuation syntax. The Exim server's extension-blocking filter fails to recognize the blocked extension due to the misparsing, and the email is delivered to the recipient's mailbox. When the recipient opens the email, their mail client correctly reassembles the filename, presenting them with an attachment that appears to have a dangerous extension.

The attack flow involves:

  1. Attacker crafts an email with a MIME attachment using RFC 2231 multiline filename encoding
  2. The filename is split across continuation lines to evade Exim's parsing
  3. Exim's $mime_filename check does not correctly identify the blocked extension
  4. The malicious attachment is delivered to the end user's mailbox
  5. The recipient's mail client properly decodes the filename, exposing the executable attachment

For technical implementation details, see the Exim Bug Report #3099 and the RFC 2231 Specification.

Detection Methods for CVE-2024-39929

Indicators of Compromise

  • MIME headers containing RFC 2231 continuation parameters with suspicious filename patterns
  • Email attachments with multiline Content-Disposition headers using parameter continuation syntax (e.g., filename*0=, filename*1=)
  • Executable files delivered to mailboxes despite configured extension-blocking rules
  • Anomalous MIME parsing behavior in Exim logs

Detection Strategies

  • Monitor Exim mail logs for unusual RFC 2231 encoded attachment filenames
  • Implement additional email gateway scanning that reassembles RFC 2231 filenames before inspection
  • Deploy endpoint detection to identify executable attachments that bypassed server-side filtering
  • Create SIEM alerts for emails with multiple filename* continuation parameters in MIME headers

Monitoring Recommendations

  • Review Exim server version and compare against patched releases (4.98-RC3 and later)
  • Audit current $mime_filename filtering rules and their effectiveness
  • Monitor for sudden increases in executable attachment delivery to end users
  • Implement secondary attachment scanning at the endpoint or mail client level

How to Mitigate CVE-2024-39929

Immediate Actions Required

  • Upgrade Exim to version 4.98-RC3 or later which includes the security fix
  • Review and audit all mail servers running Exim for affected versions
  • Implement additional attachment scanning layers that are not dependent on Exim's MIME parsing
  • Consider temporarily blocking all RFC 2231 encoded attachments until patching is complete

Patch Information

The Exim development team has released security patches to address this vulnerability. The fixes are available in commits 1b3209b0 and 6ce5c70c. Administrators should upgrade to Exim 4.98-RC3 or later. The version comparison showing the security changes can be reviewed at the Exim Version Comparison page.

Workarounds

  • Deploy a secondary email security gateway with independent MIME parsing capabilities
  • Implement endpoint protection that scans attachments upon download or execution
  • Use content inspection tools that correctly handle RFC 2231 multiline filenames
  • Consider adding explicit checks in ACL rules for RFC 2231 continuation syntax in attachment headers
bash
# Example Exim version check
exim -bV | grep version

# Verify current Exim configuration for mime_filename usage
grep -r "mime_filename" /etc/exim4/

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechExim

  • SeverityMEDIUM

  • CVSS Score5.4

  • EPSS Probability63.53%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-116
  • Technical References
  • Exim Version Comparison

  • RFC 2231 Specification
  • Vendor Resources
  • Exim Bug Report #3099

  • Exim Commit 1b3209b0

  • Exim Commit 6ce5c70c
  • Related CVEs
  • CVE-2023-51766: Exim SMTP Smuggling Auth Bypass Flaw

  • CVE-2020-12783: Exim SPA Auth Bypass Vulnerability

  • CVE-2025-67896: Exim Buffer Overflow Vulnerability

  • CVE-2025-26794: Exim Mail Server SQLi 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