CVE-2025-5917

LOW

libarchive < 3.8.0 - Out-of-bounds Write via File Name Prefix/Suffix Handling

Title source: llm
STIX 2.1

Description

A vulnerability has been identified in the libarchive library. This flaw involves an 'off-by-one' miscalculation when handling prefixes and suffixes for file names. This can lead to a 1-byte write overflow. While seemingly small, such an overflow can corrupt adjacent memory, leading to unpredictable program behavior, crashes, or in specific circumstances, could be leveraged as a building block for more sophisticated exploitation. This bug affects libarchive versions prior to 3.8.0.

References (4)

Core 4

Scores

CVSS v3 2.8
EPSS 0.0016
EPSS Percentile 6.0%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-787
Status published
Products (14)
libarchive/libarchive < 3.8.0
Red Hat/Red Hat Enterprise Linux 10
Red Hat/Red Hat Enterprise Linux 6
Red Hat/Red Hat Enterprise Linux 7
Red Hat/Red Hat Enterprise Linux 8
Red Hat/Red Hat Enterprise Linux 9
Red Hat/Red Hat In-Vehicle Operating System 1
Red Hat/Red Hat OpenShift Container Platform 4
redhat/enterprise_linux 6.0
redhat/enterprise_linux 7.0
... and 4 more
Published Jun 09, 2025
Tracked Since Feb 18, 2026