CVE-2025-5918
libarchive: Reading past EOF may be triggered for piped file streams
Severity
LowRed Hat Product Security
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 can be triggered when file streams are piped into bsdtar, potentially allowing for reading past the end of the file. This out-of-bounds read can lead to unintended consequences, including unpredictable program behavior, memory corruption, or a denial-of-service condition.
Statement
This vulnerability is rated Low for Red Hat products. The flaw in libarchive can be triggered when processing specially crafted piped file streams with bsdtar, potentially leading to unpredictable program behavior or an application level denial-of-service condition. Exploitation requires user interaction to process a malicious archive.
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
Upgrade to libarchive version 3.8.0 or later, which includes important security fixes and stability improvements.
CVSS / CWE
CVSS 3.1 · 3.9CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:L
CWE-125 · Out-of-bounds Read