cve.bz

CVE-2025-5917 Out-of-bounds Write

5.0 mediumEPSS 0.3%Fix available

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

On this page
A vulnerability has been identified in the libarchive library. This flaw involves an 'off-by-one' miscalculation when handling prefixes and suffixes for file names. This can lead to a 1-byte write overflow. While seemingly small, such an overflow can corrupt adjacent memory, leading to unpredictable program behavior, crashes, or in specific circumstances, could be leveraged as a building block for more sophisticated exploitation. This bug affects libarchive versions prior to 3.8.0.

Severity

CVSS 3.1

5.0 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 17th 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-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-5917 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-5917?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-5917?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-5917 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
redhat:enterprise_linux10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11libarchive3.4.3-2+deb11u3DLA-4368-1
Debian12libarchive3.6.2-1+deb12u3DEBIAN-CVE-2025-5917
Debian13, 14libarchive3.7.4-4DEBIAN-CVE-2025-5917
Ubuntu22.04:LTSlibarchive3.6.0-1ubuntu1.5UBUNTU-CVE-2025-5917 USN-7601-1
Ubuntu24.04:LTSlibarchive3.7.2-2ubuntu0.5UBUNTU-CVE-2025-5917 USN-7601-1
Ubuntu25.10libarchive3.7.7-0ubuntu3UBUNTU-CVE-2025-5917
UbuntuPro:14.04:LTSlibarchive3.1.2-7ubuntu2.8+esm4UBUNTU-CVE-2025-5917
UbuntuPro:16.04:LTSlibarchive3.1.2-11ubuntu0.16.04.8+esm2UBUNTU-CVE-2025-5917
UbuntuPro:18.04:LTSlibarchive3.2.2-3.1ubuntu0.7+esm2UBUNTU-CVE-2025-5917
UbuntuPro:20.04:LTSlibarchive3.4.0-2ubuntu1.5+esm1UBUNTU-CVE-2025-5917
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-63818
Azure Linux2libarchive3.6.1-7AZL-63854
Azure Linux3cmake3.30.3-8AZL-63756
Azure Linux3libarchive3.7.7-3AZL-63777
Alpaquita23, streamlibarchive3.8.0-r0BELL-CVE-2025-5917

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 off-by-one error in libarchive can lead to a 1-byte write overflow, potentially causing unpredictable program behavior or crashes. While it could be a building block for more complex exploits, direct exploitation is limited.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

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

References

Check your stackJSON