CVE Database›Document archive›CVE-2025-5917

CVE-2025-5917

libarchive: Off by one error in build_ustar_entry_name() at archive_write_set_format_pax.c

Loading…

Severity

Low

Red Hat Product Security

2.8

CVSS 3.1

Review impact separately from score.

Published · May 20, 2025

Updated · September 1, 2026

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.

Statement

This vulnerability is rated Low for Red Hat products. The off-by-one error in libarchive can lead to a 1-byte write overflow, potentially causing unpredictable program behavior or crashes. While it could be a building block for more complex exploits, direct exploitation is limited.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

CVSS / CWE

CVSS 3.1 · 2.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L

CWE-787 · Out-of-bounds Write