Vulnerabilities/CVE-2024-20697, published 9 January 2024

CVE-2024-20697: Windows libarchive heap buffer overflow enables remote code execution

Microsoft, Windows 11 22h2

CVE-2024-20697 is a heap-based buffer overflow in Windows libarchive, the library Windows uses to handle archive formats. A crafted archive can corrupt heap memory and lead to code execution in the context of the affected process. Microsoft rates it high severity, and the flaw affects Windows 11 22H2/23H2 and Windows Server 2022 23H2.

  • 7.3 CVSS 3.1 High
  • EPSS 72%, top 0.6%
  • CWE-122, Heap-based buffer overflow

Description

Windows libarchive Remote Code Execution Vulnerability

CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: medium.

High priorityHigh CVSS (7.3) and very high EPSS (99.4th percentile) indicate meaningful risk, though local access and user interaction reduce ease of exploitation.

What it is

CVE-2024-20697 is a heap-based buffer overflow in Windows libarchive, the library Windows uses to handle archive formats. A crafted archive can corrupt heap memory and lead to code execution in the context of the affected process. Microsoft rates it high severity, and the flaw affects Windows 11 22H2/23H2 and Windows Server 2022 23H2.

Impact

An attacker who gets a victim to open a malicious archive can execute code with the privileges of the process handling it, giving full compromise of confidentiality, integrity and availability within that context.

Attack surface

The CVSS vector is local (AV:L) with low privileges (PR:L) and required user interaction (UI:R), so the attacker must already have a foothold on the host and convince a user to open a crafted archive. It is not remotely reachable without that local access and user action.

Exploitation

Not listed in CISA KEV and no ransomware association is documented, but EPSS is very high at 0.72163 (99.4th percentile), indicating elevated predicted exploitation activity. References include a vendor patch and a Zero Day Initiative write-up, but no public exploit is confirmed in the record.

What to do

  • Apply the Microsoft update for CVE-2024-20697 on all affected Windows 11 22H2/23H2 and Windows Server 2022 23H2 systems.
  • Restrict which users and processes can open untrusted archive files, and block archive attachments at email and web gateways where feasible.
  • Run archive-handling and extraction tasks with least privilege and in sandboxed or isolated contexts.
  • Monitor for and remove unnecessary software that parses archives using the affected libarchive component.

Detection

  • Alert on processes that load libarchive-related DLLs and then spawn child processes or make unexpected network connections.
  • Hunt for archive files written to disk shortly before crashes or anomalous process behavior in Windows Error Reporting and endpoint telemetry.
  • Correlate user opening of archive attachments from email or downloads with subsequent suspicious process creation on the same host.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

3 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

8.8CVE-2023-36025Windows SmartScreen security feature bypassCVE-2023-36025 is a security feature bypass in Microsoft Windows SmartScreen, the component that warns users before running files downloaded from the…KEVEPSS 90%analysed8.8CVE-2023-21674Windows ALPC use-after-free privilege escalationCVE-2023-21674 is a use-after-free (CWE-416) in the Windows Advanced Local Procedure Call (ALPC) subsystem that allows elevation of privilege. It aff…KEVEPSS 34%analysed8.8CVE-2022-41128Windows Scripting Languages out-of-bounds write allows remote code executionCVE-2022-41128 is an out-of-bounds write (CWE-787) in Windows Scripting Languages that leads to remote code execution. Microsoft rates it 8.8 HIGH wi…KEVEPSS 25%analysed8.8CVE-2021-34527Windows Print Spooler privileged file operation RCE (PrintNightmare)The Windows Print Spooler service improperly performs privileged file operations, allowing an attacker to execute arbitrary code as SYSTEM. This is t…KEVEPSS 100%analysed7.8CVE-2024-21338Windows Kernel IOCTL access control flaw allows privilege escalationCVE-2024-21338 is an elevation of privilege vulnerability in the Windows kernel caused by an exposed IOCTL with insufficient access control (CWE-822)…KEVEPSS 62%analysed7.8CVE-2023-36424Windows Common Log File System Driver out-of-bounds read privilege escalationCVE-2023-36424 is an out-of-bounds read (CWE-125) in the Windows Common Log File System (CLFS) driver that allows elevation of privilege. It affects …KEVEPSS 12%analysed7.8CVE-2023-36036Windows Cloud Files Mini Filter Driver heap overflow privilege escalationCVE-2023-36036 is a heap-based buffer overflow and out-of-bounds write in the Windows Cloud Files Mini Filter Driver that allows a local user to elev…KEVEPSS 10%analysed7.8CVE-2023-36033Windows DWM Core Library elevation of privilege via memory corruptionCVE-2023-36033 is an elevation of privilege flaw in the Windows Desktop Window Manager (DWM) Core Library, classified as a memory buffer overflow (CW…KEVEPSS 11%analysed

Source: NIST National Vulnerability Database (record CVE-2024-20697), CISA KEV, FIRST EPSS (scores of 2026-12-05). This page is refreshed as NVD updates the record.