CVE-2025-5917
MEDIUM 5.0CVSS 3.1Libarchive: off by one error in build_ustar_entry_name() at archive_write_set_format_pax.c
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.
- Published
- 9 Jun 2025
- Last modified
- 25 Nov 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-787
- Sources
- NVDJSONCVE ListJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.0 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H |
| NVD | secalert@redhat.com (Secondary) | CVSS 3.1 | LOW 2.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L |
| CVE List | redhat | CVSS 3.1 | LOW 2.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: no; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | libarchive | libarchivecpe:2.3:a:libarchive:libarchive:*:*:*:*:*:*:*:* |
< 3.8.0 | 3.8.0 |
| NVD | redhat | openshift_container_platformcpe:2.3:a:redhat:openshift_container_platform:4.0:*:*:*:*:*:*:* |
= 4.0 | |
| NVD | redhat | enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:6.0:*:*:*:*:*:*:* |
= 6.0 | |
| NVD | redhat | enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| NVD | redhat | enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| NVD | redhat | enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | redhat | enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| CVE List | https://github.com/libarchive/libarchive/ | libarchive | < 3.8.0 | 3.8.0 |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | libarchivecpe:/o:redhat:enterprise_linux:10 |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | libarchivecpe:/o:redhat:rhel_els:6 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | libarchivecpe:/o:redhat:rhel_els:7 |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | libarchivecpe:/o:redhat:enterprise_linux:8 |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | libarchivecpe:/o:redhat:enterprise_linux:9 |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rhoai/odh-ai-gateway-operator-rhel9cpe:/a:redhat:openshift_ai |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rhoai/odh-core-bff-rhel9cpe:/a:redhat:openshift_ai |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rhoai/odh-dashboard-operator-rhel9cpe:/a:redhat:openshift_ai |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rhoai/odh-dashboard-rhel9cpe:/a:redhat:openshift_ai |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rhoai/odh-data-science-pipelines-operator-controller-rhel9cpe:/a:redhat:openshift_ai |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rhoai/odh-kf-notebook-controller-rhel9cpe:/a:redhat:openshift_ai |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rhoai/odh-kserve-controller-rhel9cpe:/a:redhat:openshift_ai |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rhoai/odh-kserve-llmisvc-controller-rhel9cpe:/a:redhat:openshift_ai |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rhoai/odh-kserve-module-operator-rhel9cpe:/a:redhat:openshift_ai |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rhoai/odh-kuberay-operator-controller-rhel9cpe:/a:redhat:openshift_ai |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rhoai/odh-kube-rbac-proxy-rhel9cpe:/a:redhat:openshift_ai |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rhoai/odh-llama-stack-k8s-operator-rhel9cpe:/a:redhat:openshift_ai |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rhoai/odh-maas-controller-rhel9cpe:/a:redhat:openshift_ai |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rhoai/odh-mlflow-operator-rhel9cpe:/a:redhat:openshift_ai |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rhoai/odh-mlflow-rhel9cpe:/a:redhat:openshift_ai |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rhoai/odh-mod-arch-agent-ops-rhel9cpe:/a:redhat:openshift_ai |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rhoai/odh-mod-arch-automl-rhel9cpe:/a:redhat:openshift_ai |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rhoai/odh-mod-arch-autorag-rhel9cpe:/a:redhat:openshift_ai |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rhoai/odh-mod-arch-eval-hub-rhel9cpe:/a:redhat:openshift_ai |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rhoai/odh-mod-arch-gen-ai-rhel9cpe:/a:redhat:openshift_ai |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rhoai/odh-mod-arch-maas-rhel9cpe:/a:redhat:openshift_ai |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rhoai/odh-mod-arch-mlflow-rhel9cpe:/a:redhat:openshift_ai |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rhoai/odh-mod-arch-model-registry-rhel9cpe:/a:redhat:openshift_ai |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rhoai/odh-model-controller-rhel9cpe:/a:redhat:openshift_ai |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rhoai/odh-model-registry-operator-rhel9cpe:/a:redhat:openshift_ai |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rhoai/odh-model-serving-api-rhel9cpe:/a:redhat:openshift_ai |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rhoai/odh-notebook-controller-rhel9cpe:/a:redhat:openshift_ai |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rhoai/odh-ogx-k8s-operator-rhel9cpe:/a:redhat:openshift_ai |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rhoai/odh-ogx-module-operator-rhel9cpe:/a:redhat:openshift_ai |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rhoai/odh-training-operator-rhel9cpe:/a:redhat:openshift_ai |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rhoai/odh-trustyai-service-operator-rhel9cpe:/a:redhat:openshift_ai |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | rhoai/odh-workbenches-operator-rhel9cpe:/a:redhat:openshift_ai |
||
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | openshift/ose-rhel-coreos-8cpe:/a:redhat:openshift:4 |
all versions | |
| CVE List | https://access.redhat.com/downloads/content/package-browser/ | openshift/ose-rhel-coreos-9cpe:/a:redhat:openshift:4 |
all versions |
References
- https://access.redhat.com/security/cve/CVE-2025-5917 · Vendor Advisory, vdb-entry, x_refsource_REDHAT
- https://bugzilla.redhat.com/show_bug.cgi?id=2370874 · Issue Tracking, issue-tracking, x_refsource_REDHAT
- https://github.com/libarchive/libarchive/pull/2588 · Patch
- https://github.com/libarchive/libarchive/releases/tag/v3.8.0 · Release Notes
History
- 25 Nov 2026 20:55 UTC · CVE List: first stored (published 9 Jun 2025)
- 25 Nov 2026 20:10 UTC · NVD: first stored (published 9 Jun 2025)