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

CVE-2024-37407: Libarchive Buffer Overflow Vulnerability

CVE-2024-37407 is a buffer overflow vulnerability in Libarchive affecting versions before 3.7.4. The flaw allows out-of-bounds access when processing ZIP archives. This article covers technical details, impact, and mitigation.

Updated: January 22, 2026

CVE-2024-37407 Overview

CVE-2024-37407 is an out-of-bounds read vulnerability affecting Libarchive versions prior to 3.7.4. The vulnerability occurs when processing ZIP archives containing files with empty names while the mac-ext (Mac extension) functionality is enabled. This flaw exists in the slurp_central_directory function within archive_read_support_format_zip.c, where improper boundary checking allows memory access beyond allocated buffers.

Critical Impact

This vulnerability enables network-based attackers to trigger out-of-bounds memory access without authentication, potentially resulting in information disclosure or denial of service conditions on systems processing maliciously crafted ZIP archives.

Affected Products

  • Libarchive versions prior to 3.7.4
  • Libarchive version 3.7.3 (confirmed vulnerable)
  • Applications and systems utilizing vulnerable Libarchive library for archive processing

Discovery Timeline

  • 2024-06-08 - CVE-2024-37407 published to NVD
  • 2025-04-29 - Last updated in NVD database

Technical Details for CVE-2024-37407

Vulnerability Analysis

This vulnerability is classified as CWE-125 (Out-of-Bounds Read), a memory corruption issue that occurs when software reads data past the end or before the beginning of an intended buffer. In the context of CVE-2024-37407, the vulnerable code path is triggered during ZIP archive parsing when the library encounters a file entry with an empty name string while mac-ext processing is active.

The slurp_central_directory function in archive_read_support_format_zip.c fails to properly validate filename lengths before accessing memory, allowing an attacker to craft a malicious ZIP archive that causes the library to read beyond buffer boundaries. This can lead to exposure of sensitive memory contents or application crashes.

Root Cause

The root cause stems from insufficient input validation in the ZIP archive central directory parsing logic. When processing file entries, the code assumes filenames are non-empty and does not adequately check for zero-length name fields before performing memory operations. The mac-ext feature, which handles Mac-specific extended attributes, exacerbates this issue by attempting to process the invalid filename, leading to the out-of-bounds access condition.

Attack Vector

An attacker can exploit this vulnerability by crafting a malicious ZIP archive with specially constructed entries containing empty filename fields. When a vulnerable application using Libarchive processes such an archive—particularly with mac-ext enabled—the out-of-bounds read is triggered. Since this vulnerability is exploitable over the network without requiring authentication or user interaction, it poses a significant risk to web services, file processing systems, and any application that handles untrusted ZIP archives.

The vulnerability manifests in the boundary checking logic during central directory parsing. When the archive reader encounters an entry with a zero-length filename and mac-ext processing is enabled, the code attempts to access memory beyond the allocated buffer boundaries. Technical details are available in the GitHub Pull Request Discussion and the associated commit reference.

Detection Methods for CVE-2024-37407

Indicators of Compromise

  • Unexpected application crashes or segmentation faults when processing ZIP archives
  • Memory access violations in processes utilizing Libarchive for archive extraction
  • Core dumps or error logs indicating issues in archive_read_support_format_zip.c or slurp_central_directory functions
  • Anomalous ZIP files with zero-length filename entries in central directory records

Detection Strategies

  • Implement file integrity monitoring for Libarchive library files to detect unauthorized modifications
  • Monitor application logs for crashes or exceptions related to archive processing functions
  • Deploy network intrusion detection rules to identify malformed ZIP archives with empty filename entries
  • Utilize memory debugging tools (AddressSanitizer, Valgrind) in development environments to detect out-of-bounds access attempts

Monitoring Recommendations

  • Enable verbose logging for applications processing untrusted archives to capture processing errors
  • Configure crash reporting and monitoring for services utilizing Libarchive
  • Implement rate limiting and input validation for file upload endpoints handling ZIP archives
  • Monitor system memory usage patterns for anomalies during archive processing operations

How to Mitigate CVE-2024-37407

Immediate Actions Required

  • Upgrade Libarchive to version 3.7.4 or later immediately on all affected systems
  • Identify all applications and services in your environment that depend on Libarchive for archive processing
  • If immediate patching is not possible, consider temporarily disabling mac-ext functionality where feasible
  • Implement input validation to reject ZIP archives with empty filename entries before processing

Patch Information

The vulnerability has been addressed in Libarchive version 3.7.4. The fix adds proper boundary checking in the slurp_central_directory function to handle edge cases involving empty filenames. Organizations should update to the patched version as soon as possible.

The security fix is available through the official Libarchive v3.7.4 release. The specific commit addressing this vulnerability can be reviewed at commit hash b6a979481b7d77c12fa17bbed94576b63bbcb0c0.

Workarounds

  • Implement pre-processing validation to inspect ZIP archives for entries with empty filenames before passing to Libarchive
  • Configure web application firewalls to block uploads of potentially malicious ZIP archives
  • Isolate archive processing in sandboxed environments with limited memory access and restricted privileges
  • Disable mac-ext functionality if not required for your use case until patching can be completed
bash
# Verify installed Libarchive version
bsdtar --version

# Check for vulnerable library version on Linux systems
ldconfig -p | grep libarchive

# Update Libarchive on Debian/Ubuntu systems
sudo apt-get update && sudo apt-get install libarchive13

# Update Libarchive on RHEL/CentOS systems
sudo yum update libarchive

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechLibarchive

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.37%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-125
  • Technical References
  • GitHub Commit Reference

  • GitHub Pull Request Discussion
  • Vendor Resources
  • GitHub Release v3.7.4
  • Related CVEs
  • CVE-2025-5914: Libarchive Buffer Overflow Vulnerability

  • CVE-2025-5915: Libarchive Buffer Overflow Vulnerability

  • CVE-2024-48958: Libarchive Buffer Overflow Vulnerability

  • CVE-2024-48957: Libarchive Buffer Overflow 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