Vulnerability · Published Jun 9, 2025 · Assigned by redhat

CVE-2025-5918Libarchive: reading past eof may be triggered for piped file streams

Low 3.9

In plain English

A low-severity out-of-bounds read in libarchive. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 34% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)3.9Low
Exploit odds (30 days)0.4%top 66.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12libarchive3.6.2-1+deb12u4DEBIAN-CVE-2025-5918
Debian:13libarchive3.7.4-4+deb13u1DEBIAN-CVE-2025-5918
Debian:14libarchive3.8.4-1DEBIAN-CVE-2025-5918
Ubuntu:22.04:LTSlibarchive3.6.0-1ubuntu1.6UBUNTU-CVE-2025-5918
Ubuntu:24.04:LTSlibarchive3.7.2-2ubuntu0.6UBUNTU-CVE-2025-5918
Ubuntu:25.10libarchive3.7.7-0ubuntu3.1UBUNTU-CVE-2025-5918

Affected products (as reported)

VendorProductVersions
libarchive 0 – before 3.8.0
Red Hat Red Hat Enterprise Linux 10 see references
Red Hat Red Hat Enterprise Linux 6 see references
Red Hat Red Hat Enterprise Linux 7 see references
Red Hat Red Hat Enterprise Linux 8 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat OpenShift Container Platform 4 see references
Red Hat Red Hat OpenShift Container Platform 4 see references

Weakness: CWE-125 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:L

References