# CVE-2025-5917: Libarchive: off by one error in build_ustar_entry_name() at archive_write_set_format_pax.c

- Severity: Low 2.8 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 27% of CVEs (2026-12-01)
- Published: 2025-06-09T19:49:13.204Z
- Modified: 2026-11-25T17:17:30.050Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- libarchive: before 3.8.0
- rhoai/odh-ai-gateway-operator-rhel9: no versions given
- rhoai/odh-core-bff-rhel9: no versions given
- rhoai/odh-dashboard-operator-rhel9: no versions given
- rhoai/odh-dashboard-rhel9: no versions given
- rhoai/odh-data-science-pipelines-operator-controller-rhel9: no versions given
- rhoai/odh-kf-notebook-controller-rhel9: no versions given
- rhoai/odh-kserve-controller-rhel9: no versions given
- rhoai/odh-kserve-llmisvc-controller-rhel9: no versions given
- rhoai/odh-kserve-module-operator-rhel9: no versions given
- rhoai/odh-kuberay-operator-controller-rhel9: no versions given
- rhoai/odh-kube-rbac-proxy-rhel9: no versions given
- rhoai/odh-llama-stack-k8s-operator-rhel9: no versions given
- rhoai/odh-maas-controller-rhel9: no versions given
- rhoai/odh-mlflow-operator-rhel9: no versions given
- rhoai/odh-mlflow-rhel9: no versions given
- rhoai/odh-mod-arch-agent-ops-rhel9: no versions given
- rhoai/odh-mod-arch-automl-rhel9: no versions given
- rhoai/odh-mod-arch-autorag-rhel9: no versions given
- rhoai/odh-mod-arch-eval-hub-rhel9: no versions given
- rhoai/odh-mod-arch-gen-ai-rhel9: no versions given
- rhoai/odh-mod-arch-maas-rhel9: no versions given
- rhoai/odh-mod-arch-mlflow-rhel9: no versions given
- rhoai/odh-mod-arch-model-registry-rhel9: no versions given
- rhoai/odh-model-controller-rhel9: no versions given
- rhoai/odh-model-registry-operator-rhel9: no versions given
- rhoai/odh-model-serving-api-rhel9: no versions given
- rhoai/odh-notebook-controller-rhel9: no versions given
- rhoai/odh-ogx-k8s-operator-rhel9: no versions given
- rhoai/odh-ogx-module-operator-rhel9: no versions given
- rhoai/odh-training-operator-rhel9: no versions given
- rhoai/odh-trustyai-service-operator-rhel9: no versions given
- rhoai/odh-workbenches-operator-rhel9: no versions given
- openshift/ose-rhel-coreos-8: no versions given
- openshift/ose-rhel-coreos-9: no versions given
- libarchive libarchive: before 3.8.0
- redhat openshift_container_platform: 4.0
- redhat enterprise_linux: 6.0; 7.0; 8.0; 9.0; 10.0

## Every score

- redhat: CVSS:3.1 2.8 Low `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L`
- NVD: 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`

## References

- <https://access.redhat.com/security/cve/CVE-2025-5917> (vdb-entry, vendor-advisory)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2370874> (issue-tracking)
- <https://github.com/libarchive/libarchive/pull/2588> (patch)
- <https://github.com/libarchive/libarchive/releases/tag/v3.8.0> (release-notes)

## Sources

- CVE List: [CVE-2025-5917](https://www.cve.org/CVERecord?id=CVE-2025-5917), CVE Terms of Use, modified 2026-11-25
- NVD: [CVE-2025-5917](https://nvd.nist.gov/vuln/detail/CVE-2025-5917), Public domain, modified 2026-11-25

---

Page: https://cve.day/CVE-2025-5917 · Whole record: https://cve.day/CVE-2025-5917.json · Rebuilt by cve.day 2026-11-25T23:18:08.790Z
