CVE-2025-5918 json
Libarchive: reading past eof may be triggered for piped file streams
published 2025-06-09 17 mo ago modified 2026-11-06 2 d ago also EUVD-2025-17573 , JLSEC-2025-249
- cvss
- 3.9
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 33%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- julia LibArchive_jll 3.8.0+0
- libarchive libarchive 3.8.0
- libarchive Debian 12 3.6.2-1+deb12u4
- libarchive Debian 13 3.7.4-4+deb13u1
- libarchive Debian 14 3.8.4-1
debian advisories DEBIAN-CVE-2025-5918
- libarchive Ubuntu 22.04 LTS 3.6.0-1ubuntu1.6
- libarchive Ubuntu 24.04 LTS 3.7.2-2ubuntu0.6
- libarchive Ubuntu 25.10 3.7.7-0ubuntu3.1
- libarchive Ubuntu Pro 14.04 LTS 3.1.2-7ubuntu2.8+esm4
- libarchive Ubuntu Pro 16.04 LTS 3.1.2-11ubuntu0.16.04.8+esm2
- libarchive Ubuntu Pro 18.04 LTS 3.2.2-3.1ubuntu0.7+esm2
- libarchive Ubuntu Pro 20.04 LTS 3.4.0-2ubuntu1.5+esm1
ubuntu advisories UBUNTU-CVE-2025-5918
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- libarchive Linux Micro 6.0 3.6.2-5.1
- libarchive SLE Micro 5.5, SLE Micro 5.4, SLE Micro 5.3 +10 more 3.5.1-150400.3.21.1
- libarchive Linux Micro 6.1 3.7.4-slfo.1.1_3.1
- libarchive SLE Module for Development Tools 15 SP7, SLE Module for Development Tools 15 SP6, SLE Module for Basesystem 15 SP7 +2 more 3.7.2-150600.3.17.1
suse advisories SUSE-SU-2025:20560-1SUSE-SU-2025:02718-2SUSE-SU-2025:20594-1SUSE-SU-2025:02718-1SUSE-SU-2025:02566-1
- cmake Azure Linux 3.0 3.30.3-8
- libarchive Azure Linux 3.0 3.7.7-3
- cmake CBL-Mariner 2.0 3.21.4-20
- libarchive CBL-Mariner 2.0 3.6.1-7
azure linux advisories AZL-63753AZL-63780AZL-63821AZL-63851
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-5918 updated cvss 3.9
libarchive: Reading past EOF may be triggered for piped file streams
-
Red Hat Enterprise Linux 6 libarchive Red Hat Enterprise Linux 7 bsdtar, bsdcpio, libarchiveaffected: workaround, no fix planned “Upgrade to libarchive version 3.8.0 or later, which includes important security fixes and stability improvements.”
-
Red Hat Enterprise Linux 8 bsdtar, libarchive Red Hat Enterprise Linux 9 bsdtar, libarchive Red Hat Enterprise Linux 10 libarchive Red Hat OpenShift Container Platform 4 openshift/ose-rhel-coreos-8, openshift/ose-rhel-coreos-9affected: workaround, no fix available “Upgrade to libarchive version 3.8.0 or later, which includes important security fixes and stability improvements.”
-
Red Hat OpenShift AI (RHOAI) rhoai/odh-core-bff-rhel9, rhoai/odh-dashboard-rhel9, rhoai/odh-mod-arch-maas-rhel9, rhoai/odh-mod-arch-automl-rhel9, rhoai/odh-mod-arch-gen-ai-rhel9, rhoai/odh-mod-arch-mlflow-rhel9, +6 moreunder investigation
-
Red Hat OpenShift AI (RHOAI) rhoai/odh-mlflow-rhel9, rhoai/odh-kube-rbac-proxy-rhel9, rhoai/odh-maas-controller-rhel9, rhoai/odh-mlflow-operator-rhel9, rhoai/odh-model-controller-rhel9, rhoai/odh-ogx-k8s-operator-rhel9, +14 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 16 mo ago
Exploit prediction
0.39% chance of exploitation in the next 30 days, higher than 33% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 3.9 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:L |
| NVD | 3.1 | 6.6 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:H |
| OSV | 3.1 | 6.6 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| julia | LibArchive_jll | <3.8.0+0 |
3.8.0+0 |
Affected products
- 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 OpenShift AI (RHOAI)
- Red Hat Red Hat OpenShift Container Platform 4
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
References
-
github.com
/libarchive/libarchive/pull/2584
patch, web
-
access.redhat.com
/security/cve/CVE-2025-5918
vdb-entry, vendor-advisory, web
-
bugzilla.redhat.com
/show_bug.cgi?id=2370877
issue-tracking, web
-
github.com
/libarchive/libarchive/releases/tag/v3.8.0
release-notes, web
Sources
- CVE List CVE-2025-5918
- NVD CVE-2025-5918
- OSV JLSEC-2025-249
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.