CVE-2025-5918: libarchive: bsdtar stream out-of-bounds read hits RHOAI

LOW
Published June 9, 2025
CISO Take

CVE-2025-5918 is an out-of-bounds read in libarchive's bsdtar that can be triggered when a file stream is piped into it, causing a crash, unpredictable behavior or limited memory disclosure. It is rated low (CVSS 3.9) because it needs local access, low privileges and a user action. There is no CISA KEV listing, no public exploit and no Nuclei template, and no EPSS score is available, so there is no sign of exploitation. The reason it shows up in AI inventories is the blast radius: libarchive is bundled in dozens of Red Hat OpenShift AI (RHOAI) container images and in RHCOS node images, and the package has 695 downstream dependents and a mediocre OpenSSF Scorecard of 5.4/10. Treat this as routine patch hygiene rather than an emergency. Pick up the libarchive 3.8.0 fix (upstream PR 2584) through Red Hat's updated RHOAI and OpenShift images on your normal patch cycle. Prioritize any pipeline that pipes untrusted archives into bsdtar.

Sources:NVDRed Hat Security AdvisoryGitHub (libarchive)OpenSSFATLAS

What is the risk?

Low overall risk. The attack vector is local, privileges are low and user interaction is required. Confidentiality and availability impacts are both rated low, and integrity is unaffected. No KEV listing, public exploit or scanner template exists, and EPSS is not available. The risk rises slightly in multi-tenant ML platforms (shared notebooks, pipelines) where untrusted users or automated jobs can feed crafted archive streams to bsdtar inside containers that hold sensitive tokens or model artifacts.

How does the attack unfold?

Initial Access
A low-privileged user supplies a crafted archive stream to an environment where bsdtar processes it.
AML.T0010.001
User Interaction
A user or automated pipeline step pipes the malicious stream into bsdtar inside a container.
Exploitation
bsdtar reads past the end of the buffer (CWE-125), causing unpredictable behavior or a crash.
Impact
The extraction job or service is disrupted, with a possible small memory disclosure.
AML.T0029

What systems are affected?

PackageEcosystemVulnerable RangePatched
MLflowpip—No patch
28.6KOpenSSF 5.4695 dependentsPushed 5d ago15% patched~68d to patchFull package profile →
MLflowpip—No patch
28.6KOpenSSF 5.4695 dependentsPushed 5d ago15% patched~68d to patchFull package profile →
MLflowpip—No patch
28.6KOpenSSF 5.4695 dependentsPushed 5d ago15% patched~68d to patchFull package profile →
libarchive——No patch
openshift/ose-rhel-coreos-8——No patch
openshift/ose-rhel-coreos-9——No patch
rhoai/odh-ai-gateway-operator-rhel9——No patch
rhoai/odh-core-bff-rhel9——No patch
rhoai/odh-dashboard-operator-rhel9——No patch
rhoai/odh-dashboard-rhel9——No patch
rhoai/odh-data-science-pipelines-operator-controller-rhel9——No patch
rhoai/odh-kf-notebook-controller-rhel9——No patch
rhoai/odh-kserve-controller-rhel9——No patch
rhoai/odh-kserve-llmisvc-controller-rhel9——No patch
rhoai/odh-kserve-module-operator-rhel9——No patch
rhoai/odh-kube-rbac-proxy-rhel9——No patch
rhoai/odh-kuberay-operator-controller-rhel9——No patch
rhoai/odh-llama-stack-k8s-operator-rhel9——No patch
rhoai/odh-maas-controller-rhel9——No patch
rhoai/odh-mod-arch-agent-ops-rhel9——No patch
rhoai/odh-mod-arch-automl-rhel9——No patch
rhoai/odh-mod-arch-autorag-rhel9——No patch
rhoai/odh-mod-arch-eval-hub-rhel9——No patch
rhoai/odh-mod-arch-gen-ai-rhel9——No patch
rhoai/odh-mod-arch-maas-rhel9——No patch
rhoai/odh-mod-arch-model-registry-rhel9——No patch
rhoai/odh-model-controller-rhel9——No patch
rhoai/odh-model-registry-operator-rhel9——No patch
rhoai/odh-model-serving-api-rhel9——No patch
rhoai/odh-notebook-controller-rhel9——No patch
rhoai/odh-ogx-k8s-operator-rhel9——No patch
rhoai/odh-ogx-module-operator-rhel9——No patch
rhoai/odh-training-operator-rhel9——No patch
rhoai/odh-trustyai-service-operator-rhel9——No patch
rhoai/odh-workbenches-operator-rhel9——No patch

How severe is it?

CVSS 3.1
3.9 / 10
EPSS
N/A
Exploitation Status
No known exploitation
Sophistication
Moderate

What is the attack surface?

AVACPRUISCIA
AVLocal
ACLow
PRLow
UIRequired
SUnchanged
CLow
INone
ALow

What should I do?

4 steps
  1. Update to libarchive 3.8.0 or later, or apply the Red Hat errata for the affected RHOAI and OpenShift images (see access.redhat.com/security/cve/CVE-2025-5918).

  2. Rebuild custom images based on RHEL 9 and OpenShift base images to pick up the fixed package.

  3. Avoid piping untrusted or unvalidated archive streams into bsdtar; extract in sandboxed, least-privilege containers.

  4. Detection: monitor for bsdtar crashes or segfaults in pipeline, notebook and model-serving containers, and track image scan results for the libarchive package across the cluster.

How is it classified?

Which compliance frameworks are affected?

This CVE is relevant to:

ISO 42001
A.10.3-Suppliers
NIST AI RMF
MANAGE 2.3-Response to identified risks and unknown risks
OWASP LLM Top 10
LLM03-Supply Chain

Frequently Asked Questions

What is CVE-2025-5918?

CVE-2025-5918 is an out-of-bounds read in libarchive's bsdtar that can be triggered when a file stream is piped into it, causing a crash, unpredictable behavior or limited memory disclosure. It is rated low (CVSS 3.9) because it needs local access, low privileges and a user action. There is no CISA KEV listing, no public exploit and no Nuclei template, and no EPSS score is available, so there is no sign of exploitation. The reason it shows up in AI inventories is the blast radius: libarchive is bundled in dozens of Red Hat OpenShift AI (RHOAI) container images and in RHCOS node images, and the package has 695 downstream dependents and a mediocre OpenSSF Scorecard of 5.4/10. Treat this as routine patch hygiene rather than an emergency. Pick up the libarchive 3.8.0 fix (upstream PR 2584) through Red Hat's updated RHOAI and OpenShift images on your normal patch cycle. Prioritize any pipeline that pipes untrusted archives into bsdtar.

Is CVE-2025-5918 actively exploited?

No confirmed active exploitation of CVE-2025-5918 has been reported, but organizations should still patch proactively.

How to fix CVE-2025-5918?

1. Update to libarchive 3.8.0 or later, or apply the Red Hat errata for the affected RHOAI and OpenShift images (see access.redhat.com/security/cve/CVE-2025-5918). 2. Rebuild custom images based on RHEL 9 and OpenShift base images to pick up the fixed package. 3. Avoid piping untrusted or unvalidated archive streams into bsdtar; extract in sandboxed, least-privilege containers. 4. Detection: monitor for bsdtar crashes or segfaults in pipeline, notebook and model-serving containers, and track image scan results for the libarchive package across the cluster.

What systems are affected by CVE-2025-5918?

This vulnerability affects the following AI/ML architecture patterns: Model serving, Training pipelines, ML pipeline orchestration, Notebook and workbench environments, Model registries, Kubernetes-based ML platforms.

What is the CVSS score for CVE-2025-5918?

CVE-2025-5918 has a CVSS v3.1 base score of 3.9 (LOW).

What is the AI security impact?

Affected AI Architectures

Model servingTraining pipelinesML pipeline orchestrationNotebook and workbench environmentsModel registriesKubernetes-based ML platforms

MITRE ATLAS Techniques

AML.T0010.001AI Software
AML.T0029Denial of AI Service

Compliance Controls Affected

ISO 42001: A.10.3
NIST AI RMF: MANAGE 2.3
OWASP LLM Top 10: LLM03

What are the technical details?

Original Advisory

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.

Exploitation Scenario

A low-privileged user on a shared data science platform uploads a crafted archive stream (a dataset or model bundle) and persuades a colleague or automated pipeline step to pipe it into bsdtar. The tool reads past the end of the buffer, crashing the pipeline step or leaking a small amount of adjacent memory. The attacker gains at most a disruption of the ML workflow or minor information exposure, with no direct path to code execution.

Weaknesses (CWE)

CWE-125 — Out-of-bounds Read: The product reads data past the end, or before the beginning, of the intended buffer.

  • [Implementation] Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does. When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, "boat" may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as "red" or "blue." Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However, denylis
  • [Architecture and Design] Use a language that provides appropriate memory abstractions.

Source: MITRE CWE corpus.

CVSS Vector

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

Timeline

Published
June 9, 2025
Last Modified
November 6, 2026
First Seen
November 6, 2026

Related Vulnerabilities