CVE-2025-5917 json
Libarchive: off by one error in build_ustar_entry_name() at archive_write_set_format_pax.c
published 2025-06-09 17 mo ago modified 2026-11-06 2 d ago also EUVD-2025-17574 , JLSEC-2025-247
- cvss
- 2.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 14%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- julia LibArchive_jll 3.8.0+0
- libarchive libarchive 3.8.0
- libarchive Debian 12 3.6.2-1+deb12u3
- libarchive Debian 14, Debian 13 3.7.4-4
debian advisories DEBIAN-CVE-2025-5917
- libarchive Ubuntu 22.04 LTS 3.6.0-1ubuntu1.5
- libarchive Ubuntu 24.04 LTS 3.7.2-2ubuntu0.5
- libarchive Ubuntu 25.10 3.7.7-0ubuntu3
- libarchive Ubuntu Pro 14.04 LTS 3.1.2-7ubuntu2.8+esm4
- libarchive Ubuntu Pro 16.04 LTS 3.1.2-11ubuntu0.16.04.8+esm2
- libarchive Ubuntu Pro 18.04 LTS 3.2.2-3.1ubuntu0.7+esm2
- libarchive Ubuntu Pro 20.04 LTS 3.4.0-2ubuntu1.5+esm1
ubuntu advisories UBUNTU-CVE-2025-5917
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- libarchive Linux Micro 6.0 3.6.2-5.1
- libarchive SLE Micro 5.5, SLE Micro 5.4, SLE Micro 5.3 +10 more 3.5.1-150400.3.21.1
- libarchive Linux Micro 6.1 3.7.4-slfo.1.1_3.1
- libarchive SLE Module for Development Tools 15 SP7, SLE Module for Development Tools 15 SP6, SLE Module for Basesystem 15 SP7 +2 more 3.7.2-150600.3.17.1
suse advisories SUSE-SU-2025:20560-1SUSE-SU-2025:02718-2SUSE-SU-2025:20594-1SUSE-SU-2025:02718-1SUSE-SU-2025:02566-1
- cmake Azure Linux 3.0 3.30.3-8
- libarchive Azure Linux 3.0 3.7.7-3
- cmake CBL-Mariner 2.0 3.21.4-20
- libarchive CBL-Mariner 2.0 3.6.1-7
azure linux advisories AZL-63756AZL-63777AZL-63818AZL-63854
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-5917 updated cvss 2.8
libarchive: Off by one error in build_ustar_entry_name() at archive_write_set_format_pax.c
-
Red Hat Enterprise Linux 6 libarchive Red Hat Enterprise Linux 7 bsdtar, bsdcpio, libarchiveaffected: workaround, no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 8 bsdtar, libarchive Red Hat Enterprise Linux 9 bsdtar, libarchive Red Hat Enterprise Linux 10 libarchive Red Hat OpenShift Container Platform 4 openshift/ose-rhel-coreos-8, openshift/ose-rhel-coreos-9affected: workaround, no fix available “Fix deferred”
-
Red Hat OpenShift AI (RHOAI) rhoai/odh-core-bff-rhel9, rhoai/odh-dashboard-rhel9, rhoai/odh-mod-arch-maas-rhel9, rhoai/odh-mod-arch-automl-rhel9, rhoai/odh-mod-arch-gen-ai-rhel9, rhoai/odh-mod-arch-mlflow-rhel9, +6 moreunder investigation
-
Red Hat OpenShift AI (RHOAI) rhoai/odh-mlflow-rhel9, rhoai/odh-kube-rbac-proxy-rhel9, rhoai/odh-maas-controller-rhel9, rhoai/odh-mlflow-operator-rhel9, rhoai/odh-model-controller-rhel9, rhoai/odh-ogx-k8s-operator-rhel9, +14 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 16 mo ago
Exploit prediction
0.24% chance of exploitation in the next 30 days, higher than 14% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 2.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L |
| NVD | 3.1 | 5.0 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H |
| OSV | 3.1 | 5.0 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| julia | LibArchive_jll | <3.8.0+0 |
3.8.0+0 |
Affected products
- Red Hat Red Hat Enterprise Linux 10
- Red Hat Red Hat Enterprise Linux 6
- Red Hat Red Hat Enterprise Linux 7
- Red Hat Red Hat Enterprise Linux 8
- Red Hat Red Hat Enterprise Linux 9
- Red Hat Red Hat OpenShift AI (RHOAI)
- Red Hat Red Hat OpenShift Container Platform 4
Classification
- Weakness
-
- CWE-787 Out-of-bounds Write
References
-
github.com
/libarchive/libarchive/pull/2588
patch, web
-
access.redhat.com
/security/cve/CVE-2025-5917
vdb-entry, vendor-advisory, web
-
bugzilla.redhat.com
/show_bug.cgi?id=2370874
issue-tracking, web
-
github.com
/libarchive/libarchive/releases/tag/v3.8.0
release-notes, web
Sources
- CVE List CVE-2025-5917
- NVD CVE-2025-5917
- OSV JLSEC-2025-247
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.