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

CVE-2024-20697: Windows libarchive RCE Vulnerability

CVE-2024-20697 is a remote code execution vulnerability in Windows libarchive affecting Windows 11 22H2. Attackers can exploit this flaw to execute arbitrary code. This article covers technical details, impact analysis, and mitigation.

Updated: January 22, 2026

CVE-2024-20697 Overview

CVE-2024-20697 is a remote code execution vulnerability in the Windows libarchive library that affects multiple versions of Windows 11 and Windows Server 2022. The vulnerability exists due to a heap-based buffer overflow (CWE-122) in the libarchive component, which is used by Windows for handling archive file operations. An attacker who successfully exploits this vulnerability could execute arbitrary code on the target system with the privileges of the current user.

Critical Impact

Successful exploitation allows attackers to execute arbitrary code with user privileges through maliciously crafted archive files, potentially leading to full system compromise.

Affected Products

  • Microsoft Windows 11 22H2 (x64 and ARM64)
  • Microsoft Windows 11 23H2 (x64 and ARM64)
  • Microsoft Windows Server 2022 23H2

Discovery Timeline

  • January 9, 2024 - CVE-2024-20697 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2024-20697

Vulnerability Analysis

This vulnerability is a heap-based buffer overflow (CWE-122) in the Windows libarchive component. The flaw allows an attacker to craft a malicious archive file that, when processed by the vulnerable libarchive implementation, causes an out-of-bounds write to heap memory. The vulnerability requires local access and user interaction, meaning the attacker must convince a user to open or extract a specially crafted archive file. Once triggered, the heap corruption can be leveraged to achieve arbitrary code execution with the privileges of the user processing the archive.

The libarchive library is a multi-format archive and compression library that Windows uses for handling various archive formats. The vulnerability specifically affects how the library processes certain archive structures, leading to improper bounds checking during extraction operations.

Root Cause

The root cause of CVE-2024-20697 is a heap-based buffer overflow (CWE-122) in the libarchive component. The vulnerability stems from insufficient bounds checking when processing archive file contents. When parsing specific archive structures, the library fails to properly validate the size of data being written to heap-allocated buffers, allowing an attacker to overflow the buffer and corrupt adjacent heap memory. This memory corruption can then be exploited to gain control of program execution flow.

Attack Vector

The attack vector for this vulnerability is local, requiring user interaction. An attacker would need to:

  1. Craft a malicious archive file containing specially structured data designed to trigger the heap overflow
  2. Deliver the malicious archive to the target system through phishing emails, malicious downloads, or other social engineering techniques
  3. Convince the user to open or extract the archive file using Windows Explorer or any application that leverages the vulnerable libarchive component

The vulnerability manifests during the archive extraction process when libarchive processes the malformed archive structure. Detailed technical analysis is available in the Zero Day Initiative Blog Post and the GitHub Security Advisory.

Detection Methods for CVE-2024-20697

Indicators of Compromise

  • Unusual crash events or exceptions in Windows Explorer or archive processing applications
  • Suspicious archive files with malformed headers or unusual structures arriving via email or downloads
  • Process anomalies following archive extraction operations, such as unexpected child processes or network connections
  • Heap corruption indicators in crash dumps related to libarchive operations

Detection Strategies

  • Monitor for suspicious archive file operations, particularly when users open archives from untrusted sources
  • Implement endpoint detection rules for heap spray techniques and ROP chain execution following archive extraction
  • Deploy behavioral analysis to detect anomalous process spawning after archive handling operations
  • Configure email gateway and web proxy rules to scan archive attachments for malformed structures

Monitoring Recommendations

  • Enable Windows Event Logging for process creation events (Event ID 4688) to track processes spawned after archive extraction
  • Monitor for unusual memory access patterns in processes that handle archive files
  • Implement file integrity monitoring for critical system files that could be modified post-exploitation
  • Review crash dump logs for heap corruption patterns consistent with buffer overflow exploitation

How to Mitigate CVE-2024-20697

Immediate Actions Required

  • Apply the Microsoft security updates released in January 2024 immediately to all affected systems
  • Implement user awareness training about the risks of opening archive files from untrusted sources
  • Consider restricting archive file handling to sandboxed environments or trusted applications
  • Enable exploit protection features such as ASLR and DEP on affected systems

Patch Information

Microsoft has released security patches addressing CVE-2024-20697 as part of the January 2024 Patch Tuesday updates. The patch corrects the bounds checking in the libarchive component to prevent the heap-based buffer overflow. Administrators should apply the appropriate cumulative updates for their Windows versions:

  • Windows 11 22H2 - Apply latest cumulative update
  • Windows 11 23H2 - Apply latest cumulative update
  • Windows Server 2022 23H2 - Apply latest cumulative update

For detailed patch information and download links, refer to the Microsoft Security Update Guide.

Workarounds

  • Block potentially malicious archive files at email gateways and web proxies while patches are being deployed
  • Configure application control policies to restrict archive handling to approved applications only
  • Disable automatic archive extraction features in Windows Explorer and require explicit user confirmation
  • Implement network segmentation to limit the impact of potential compromise from exploited workstations
bash
# Configuration example - Enable Exploit Protection for archive handlers
Set-ProcessMitigation -Name explorer.exe -Enable DEP,SEHOP,ForceRelocateImages
Set-ProcessMitigation -System -Enable CFG

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechWindows

  • SeverityHIGH

  • CVSS Score7.3

  • EPSS Probability49.43%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-122

  • NVD-CWE-noinfo
  • Technical References
  • Openwall OSS-Security Post

  • Openwall OSS-Security Notice

  • GitHub Security Advisory GHSA-w6xv-37jv-7cjr

  • Zero Day Initiative Blog Post
  • Vendor Resources
  • Microsoft CVE-2024-20697 Update
  • Related CVEs
  • CVE-2026-31995: Openclaw Command Injection Vulnerability

  • CVE-2026-25190: Windows GDI RCE Vulnerability

  • CVE-2026-25166: Windows System Image Manager RCE Flaw

  • CVE-2026-25173: Windows RRAS 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