Out-of-bounds Write Affecting libarchive package, versions [,3.8.0)


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-UNMANAGED-LIBARCHIVE-10360266
  • published15 Jun 2025
  • disclosed20 May 2025
  • creditUnknown

Introduced: 20 May 2025

CVE-2025-5917  (opens in a new tab)
CWE-193  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade libarchive to version 3.8.0 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Write via the build_ustar_entry_name function when processing file name prefixes and suffixes. An attacker can cause adjacent memory corruption, potentially leading to application crashes or unpredictable behavior, by supplying specially crafted input that triggers a 1-byte write overflow.

CVSS Base Scores

version 4.0
version 3.1