Heap-based Buffer Overflow Affecting libarchive package, versions [,3.8.1)


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CONAN-LIBARCHIVE-10360265
  • published15 Jun 2025
  • disclosed20 May 2025
  • creditUnknown

Introduced: 20 May 2025

CVE-2025-5915  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

Upgrade libarchive to version 3.8.1 or higher.

Overview

Affected versions of this package are vulnerable to Heap-based Buffer Overflow via the copy_from_lzss_window function in archive_read_support_format_rar.c. An attacker can cause the process to read beyond the allocated heap buffer by crafting a filter block that exceeds the expected Lempel-Ziv-Storer-Schieber (LZSS) window size, potentially leading to application crashes or the exposure of sensitive information from adjacent memory regions.

CVSS Base Scores

version 4.0
version 3.1