cve.bz

CVE-2025-5918 Out-of-bounds Read

6.6 mediumEPSS 0.4%Fix available

Medium (6.6). EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

6.6 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 34th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-06-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-125 Out-of-bounds Read
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-5918 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-5918?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-5918?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-5918 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
libarchive:libarchivebefore 3.8.0
redhat:openshift_container_platform4.0
redhat:enterprise_linux6.0
redhat:enterprise_linux7.0
redhat:enterprise_linux8.0
redhat:enterprise_linux9.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11libarchive3.4.3-2+deb11u3DLA-4368-1
Debian12libarchive3.6.2-1+deb12u4DEBIAN-CVE-2025-5918
Debian13libarchive3.7.4-4+deb13u1DEBIAN-CVE-2025-5918
Debian14libarchive3.8.4-1DEBIAN-CVE-2025-5918
Ubuntu22.04:LTSlibarchive3.6.0-1ubuntu1.6UBUNTU-CVE-2025-5918
Ubuntu24.04:LTSlibarchive3.7.2-2ubuntu0.6UBUNTU-CVE-2025-5918
Ubuntu25.10libarchive3.7.7-0ubuntu3.1UBUNTU-CVE-2025-5918
UbuntuPro:14.04:LTSlibarchive3.1.2-7ubuntu2.8+esm4UBUNTU-CVE-2025-5918
UbuntuPro:16.04:LTSlibarchive3.1.2-11ubuntu0.16.04.8+esm2UBUNTU-CVE-2025-5918
UbuntuPro:18.04:LTSlibarchive3.2.2-3.1ubuntu0.7+esm2UBUNTU-CVE-2025-5918
UbuntuPro:20.04:LTSlibarchive3.4.0-2ubuntu1.5+esm1UBUNTU-CVE-2025-5918
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 7 morelibarchive3.5.1-150400.3.21.1SUSE-SU-2025:02718-2
SUSELinux Enterprise Micro 5.3, Linux Enterprise Micro 5.4, Linux Enterprise Micro 5.5libarchive3.5.1-150400.3.21.1SUSE-SU-2025:02718-1
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Basesystem 15 SP7, Linux Enterprise Module for Development Tools 15 SP6 and 1 morelibarchive3.7.2-150600.3.17.1SUSE-SU-2025:02566-1
SUSELinux Micro 6.0libarchive3.6.2-5.1SUSE-SU-2025:20560-1
SUSELinux Micro 6.1libarchive3.7.4-slfo.1.1_3.1SUSE-SU-2025:20594-1
openSUSELeap 15.6libarchive3.7.2-150600.3.17.1SUSE-SU-2025:02566-1
Azure Linux2cmake3.21.4-20AZL-63821
Azure Linux2libarchive3.6.1-7AZL-63851
Azure Linux3cmake3.30.3-8AZL-63753
Azure Linux3libarchive3.7.7-3AZL-63780
Alpaquita23, streamlibarchive3.8.0-r0BELL-CVE-2025-5918

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Low.

Red Hat's 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.

Red Hat's mitigation

Upgrade to libarchive version 3.8.0 or later, which includes important security fixes and stability improvements.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10libarchiveFix deferred
Red Hat Enterprise Linux 6libarchiveOut of support scope
Red Hat Enterprise Linux 7libarchiveOut of support scope
Red Hat Enterprise Linux 8libarchiveFix deferred
Red Hat Enterprise Linux 9libarchiveFix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-ai-gateway-operator-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-core-bff-rhel9Under investigation
Red Hat OpenShift AI (RHOAI)rhoai/odh-dashboard-operator-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-dashboard-rhel9Under investigation
Red Hat OpenShift AI (RHOAI)rhoai/odh-data-science-pipelines-operator-controller-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kf-notebook-controller-rhel9Under investigation
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-controller-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-llmisvc-controller-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-module-operator-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kuberay-operator-controller-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kube-rbac-proxy-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-llama-stack-k8s-operator-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-maas-controller-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-mlflow-operator-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-mlflow-rhel9Not affected
19 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-5918.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON