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.
Affected products
libarchive: libarchive; redhat: openshift container platform; redhat: enterprise linux
References4
- access.redhat.com/security/cve/CVE-2025-5917 Vendor Advisory
- github.com/libarchive/libarchive/pull/2588 Patch
- bugzilla.redhat.com/show_bug.cgi?id=2370874 Issue Tracking
- github.com/libarchive/libarchive/releases/tag/v3.8.0 Release Notes
Metrics
- CVSS 3.1
-
5.0
MEDIUM
Score source: NVD
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H - EPSS — exploit probability
- 0% percentile: 15 · as of 7 November 2026
- CWE
- CWE-787
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.