Vulnerability · Published Jun 9, 2025 · Assigned by redhat

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

Low 2.8

In plain English

A low-severity out-of-bounds write in libarchive. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 15% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)2.8Low
Exploit odds (30 days)0.2%top 85.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12libarchive3.6.2-1+deb12u3DEBIAN-CVE-2025-5917
Debian:13libarchive3.7.4-4DEBIAN-CVE-2025-5917
Debian:14libarchive3.7.4-4DEBIAN-CVE-2025-5917
Ubuntu:22.04:LTSlibarchive3.6.0-1ubuntu1.5USN-7601-1
Ubuntu:22.04:LTSlibarchive3.6.0-1ubuntu1.5UBUNTU-CVE-2025-5917
Ubuntu:24.04:LTSlibarchive3.7.2-2ubuntu0.5UBUNTU-CVE-2025-5917
Ubuntu:24.04:LTSlibarchive3.7.2-2ubuntu0.5USN-7601-1
Ubuntu:25.10libarchive3.7.7-0ubuntu3UBUNTU-CVE-2025-5917

Affected products (as reported)

VendorProductVersions
libarchive 0 – before 3.8.0
Red Hat Red Hat Enterprise Linux 10 see references
Red Hat Red Hat Enterprise Linux 6 see references
Red Hat Red Hat Enterprise Linux 7 see references
Red Hat Red Hat Enterprise Linux 8 see references
Red Hat Red Hat Enterprise Linux 9 see references
Red Hat Red Hat OpenShift Container Platform 4 see references
Red Hat Red Hat OpenShift Container Platform 4 see references

Weakness: CWE-787 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L

References