CVE-2024-20696
High · 7.3CVSS
7.3
EPSS
3.1%
Published
Jan 9, 2024
CISA due date
—
Cloudanix analysis
A problem in Windows archive handling could allow attackers to take over a computer if someone opens a specially made file.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- Moderate
- Impact
- Full Compromise
- Component
- Library
- Class
- RCE
- Remediation
- Patch
- Effort
- Low
- Patch risk
- Low
What it actually does
The vulnerability permits arbitrary code execution when libarchive processes a specially crafted archive file on affected Windows systems, triggered locally with user interaction and low privileges.
Why it matters to the business
Attackers could gain full control over affected systems, leading to data theft, ransomware deployment, or lateral movement, especially in environments relying on archive handling for backups or file transfers; high prevalence across Windows deployments increases exposure risk despite low EPSS.
How an attack unfolds
An attacker crafts a malicious archive exploiting parsing flaws in libarchive, delivers it via email or download, and relies on the victim opening or extracting it on a vulnerable Windows system to achieve code execution.
How to fix it
Apply the latest Windows security updates addressing libarchive components; where updates are unavailable, restrict archive handling to trusted sources and consider sandboxing extraction processes.
How to confirm the fix worked
Verify patch installation via Windows Update history or system version checks; test by attempting extraction of known benign archives and monitoring for anomalous behavior in libarchive libraries.
Typical attack path
- Identify or create a target using archive extraction features on Windows
- Craft a malicious archive file exploiting libarchive parsing logic
- Deliver the file through phishing, shared storage, or web download
- Trick the user into opening or extracting the archive
- Achieve remote code execution with the privileges of the extracting process
How to detect it
Review system logs for unusual process spawns or crashes during archive operations; inspect file access logs for suspicious archive files from external sources.
What your security team should do
- Prioritize deployment of available Windows updates to all affected versions
- Monitor for new fixed versions from Microsoft and test in staging environments
- Implement application allowlisting to limit execution of archive tools
- Educate users on risks of opening untrusted archive files
The record
Windows Libarchive Remote Code Execution Vulnerability
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Alpine:v3.17 | libarchive | 0 | 3.7.5-r0 |
| Alpine:v3.18 | libarchive | 0 | 3.7.5-r0 |
| Alpine:v3.19 | libarchive | 0 | 3.7.5-r0 |
| Alpine:v3.20 | libarchive | 0 | 3.7.5-r0 |
| Alpine:v3.21 | libarchive | 0 | 3.7.5-r0 |
| Alpine:v3.22 | libarchive | 0 | 3.7.5-r0 |
| Debian:11 | libarchive | 0 | No fix |
| Debian:11 | libarchive | 0 | 3.4.3-2+deb11u2 |
| Debian:12 | libarchive | 0 | No fix |
| Debian:12 | libarchive | 0 | 3.6.2-1+deb12u2 |
| Debian:13 | libarchive | 0 | No fix |
| Debian:14 | libarchive | 0 | 3.7.4-1.1 |
| Mageia:9 | libarchive | 0 | 3.6.2-5.3.mga9 |
| SUSE:Enterprise Storage 7.1 | libarchive | 0 | 3.4.2-150200.4.18.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | libarchive | 0 | 3.4.2-150200.4.18.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | libarchive | 0 | 3.4.2-150200.4.18.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | libarchive | 0 | 3.5.1-150400.3.15.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | libarchive | 0 | 3.5.1-150400.3.15.1 |
| SUSE:Linux Enterprise Micro 5.3 | libarchive | 0 | 3.5.1-150400.3.15.1 |
| SUSE:Linux Enterprise Micro 5.4 | libarchive | 0 | 3.5.1-150400.3.15.1 |
| SUSE:Linux Enterprise Micro 5.5 | libarchive | 0 | 3.5.1-150400.3.15.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP5 | libarchive | 0 | 3.5.1-150400.3.15.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP6 | libarchive | 0 | 3.7.2-150600.3.3.1 |
| SUSE:Linux Enterprise Module for Development Tools 15 SP5 | libarchive | 0 | 3.5.1-150400.3.15.1 |
| SUSE:Linux Enterprise Module for Development Tools 15 SP6 | libarchive | 0 | 3.7.2-150600.3.3.1 |
| SUSE:Linux Enterprise Server 12 SP5 | libarchive | 0 | 3.3.3-32.11.1 |
| SUSE:Linux Enterprise Server 15 SP2-LTSS | libarchive | 0 | 3.4.2-150200.4.18.1 |
| SUSE:Linux Enterprise Server 15 SP3-LTSS | libarchive | 0 | 3.4.2-150200.4.18.1 |
| SUSE:Linux Enterprise Server 15 SP4-LTSS | libarchive | 0 | 3.5.1-150400.3.15.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | libarchive | 0 | 3.3.3-32.11.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP2 | libarchive | 0 | 3.4.2-150200.4.18.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | libarchive | 0 | 3.4.2-150200.4.18.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP4 | libarchive | 0 | 3.5.1-150400.3.15.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP5 | libarchive | 0 | 3.3.3-32.11.1 |
| SUSE:Manager Proxy 4.3 | libarchive | 0 | 3.5.1-150400.3.15.1 |
| SUSE:Manager Server 4.3 | libarchive | 0 | 3.5.1-150400.3.15.1 |
| Ubuntu:20.04:LTS | libarchive | 0 | 3.4.0-2ubuntu1.4 |
| Ubuntu:22.04:LTS | libarchive | 0 | 3.6.0-1ubuntu1.3 |
| Ubuntu:24.04:LTS | libarchive | 0 | 3.7.2-2ubuntu0.3 |
| Ubuntu:24.10 | libarchive | 0 | 3.7.4-1ubuntu0.1 |
| Ubuntu:25.04 | libarchive | 0 | 3.7.4-1ubuntu1 |
| Ubuntu:Pro:14.04:LTS | libarchive | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | libarchive | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | libarchive | 0 | No fix |
| openSUSE:Leap 15.5 | libarchive | 0 | 3.5.1-150400.3.15.1 |
| openSUSE:Leap 15.6 | libarchive | 0 | 3.7.2-150600.3.3.1 |
| openSUSE:Leap Micro 5.3 | libarchive | 0 | 3.5.1-150400.3.15.1 |
| openSUSE:Leap Micro 5.4 | libarchive | 0 | 3.5.1-150400.3.15.1 |
| openSUSE:Tumbleweed | libarchive | 0 | 3.7.6-1.1 |
Related vulnerabilities
- JLSEC-2025-250 libarchive through 3.7.7 has a heap-based buffer over-read in header_gnu_longlink in… Also affects libarchive
- CVE-2024-57970 libarchive through 3.7.7 has a heap-based buffer over-read in header_gnu_longlink in… Also affects libarchive
- CVE-2024-48958 execute_filter_delta in archive_read_support_format_rar.c in libarchive before 3.7.5… Also affects libarchive
- CVE-2024-48957 execute_filter_audio in archive_read_support_format_rar.c in libarchive before 3.7.5… Also affects libarchive
- CVE-2017-14502 read_header in archive_read_support_format_rar.c in libarchive 3.3.2 suffers from an… Also affects libarchive
- CVE-2016-10209 The archive_wstring_append_from_mbs function in archive_string.c in libarchive 3.2.2… Also affects libarchive
- CVE-2016-5418 The sandboxing code in libarchive 3.2.0 and earlier mishandles hardlink archive entries… Also affects libarchive
- CVE-2015-8921 The ae_strtofflags function in archive_entry.c in libarchive before 3.2.0 allows remote… Also affects libarchive