Cloudanix VulnDB

CVE-2025-5915

Medium · 6.6

CVSS

6.6

EPSS

0.2%

Published

Jun 9, 2025

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A bug in a widely used file-handling library can make programs crash or leak nearby data when they open a specially crafted compressed file.

Exploitation
Local Privilege
Attacker needs
Low Privilege
Complexity
Moderate
Impact
Data Exposure
Component
Library
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Heap buffer over-read in libarchive's LZSS filter handling when a filter block size exceeds the decompression window, resulting in out-of-bounds memory reads.

Why it matters to the business

Systems using libarchive for archive processing may experience crashes that disrupt services or leak memory contents that expose sensitive data, increasing operational downtime and compliance risks.

How an attack unfolds

An attacker supplies a crafted archive containing an LZSS-compressed block sized larger than the library's window; when libarchive processes the archive the over-read occurs, enabling denial of service or disclosure of adjacent memory regions.

How to fix it

Upgrade libarchive to the version containing commit 70ff28fcf04ec129a1d064f96e49aa57fcc90e37 or later; rebuild and redeploy all dependent applications.

How to confirm the fix worked

Confirm the running libarchive binary or source contains commit 70ff28fcf04ec129a1d064f96e49aa57fcc90e37; fuzz test archive parsing paths with oversized LZSS blocks to verify absence of over-reads.

Typical attack path

  1. Craft a malicious archive file with an oversized LZSS filter block
  2. Deliver the archive to a target system via file upload, email, or package repository
  3. Trigger archive processing through any application that uses the vulnerable libarchive library
  4. Observe resulting crash or memory disclosure from the out-of-bounds read

How to detect it

Review system and application logs for segmentation faults or abnormal terminations during archive extraction; inspect core dumps or memory sanitizer reports for out-of-bounds read signatures near LZSS decompression code.

What your security team should do

  • Immediately update all instances of libarchive to the fixed commit
  • Inventory and replace vulnerable copies in build pipelines and runtime environments
  • Add archive-processing crash monitoring to existing alerting rules

The record

A vulnerability has been identified in the libarchive library. This flaw can lead to a heap buffer over-read due to the size of a filter block potentially exceeding the Lempel-Ziv-Storer-Schieber (LZSS) window. This means the library may attempt to read beyond the allocated memory buffer, which can result in unpredictable program behavior, crashes (denial of service), or the disclosure of sensitive information from adjacent memory regions.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 libarchive 0 No fix
Debian:12 libarchive 0 No fix
Debian:13 libarchive 0 No fix
Debian:14 libarchive 0 3.7.4-4
Mageia:9 libarchive 0 3.6.2-5.5.mga9
SUSE:Linux Enterprise Micro 5.3 libarchive 0 3.5.1-150400.3.21.1
SUSE:Linux Enterprise Micro 5.4 libarchive 0 3.5.1-150400.3.21.1
SUSE:Linux Enterprise Micro 5.5 libarchive 0 3.5.1-150400.3.21.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6 libarchive 0 3.7.2-150600.3.17.1
SUSE:Linux Enterprise Module for Basesystem 15 SP7 libarchive 0 3.7.2-150600.3.17.1
SUSE:Linux Enterprise Module for Development Tools 15 SP6 libarchive 0 3.7.2-150600.3.17.1
SUSE:Linux Enterprise Module for Development Tools 15 SP7 libarchive 0 3.7.2-150600.3.17.1
openSUSE:Leap 15.6 libarchive 0 3.7.2-150600.3.17.1

Related vulnerabilities