Off-by-one in libarchive - CVE-2025-5917

 

Off-by-one in libarchive - CVE-2025-5917

Published: June 16, 2025


Vulnerability identifier: #VU111144
CSH Severity: High
CVSS v4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-5917
CWE-ID: CWE-193
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to an off-by-one error when handling prefixes and suffixes for file names. A remote attacker can trigger an off-by-one error and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

libarchive
SUSE Manager Server 4.3
SUSE Manager Retail Branch Server 4.3
SUSE Manager Proxy 4.3
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Real Time 15
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Manager Server
SUSE Linux Enterprise Micro
SUSE Linux Enterprise Micro for Rancher
Ubuntu
Development Tools Module
Basesystem Module
openSUSE Leap
openEuler
libarchive (Ubuntu package)
libarchive-help
libarchive-devel
libarchive-debugsource
libarchive-debuginfo
libarchive
libarchive13-debuginfo
libarchive13
bsdtar
bsdtar-debuginfo
libarchive13-32bit
libarchive13-64bit
libarchive13-64bit-debuginfo
libarchive13-32bit-debuginfo
bsdcpio
bsdcat
bsdunzip
Cloud Pak for Data System - Cyclops

How to mitigate CVE-2025-5917

Install updates from vendor's website.

libarchive - update to 3.8.0
libarchive (Ubuntu package) - addressed in versions 3.1.2-7ubuntu2.8+esm4, 3.1.2-11ubuntu0.16.04.8+esm2, 3.2.2-3.1ubuntu0.7+esm2, 3.4.0-2ubuntu1.5+esm1, 3.6.0-1ubuntu1.5, 3.6.0-1ubuntu1.6, 3.7.2-2ubuntu0.5, 3.7.2-2ubuntu0.6, 3.7.4-1ubuntu0.3, 3.7.7-0ubuntu2.3, 3.7.7-0ubuntu3.1
libarchive-help - addressed in versions 3.4.3-10, 3.5.2-9, 3.7.1-7
libarchive-devel - addressed in versions 3.4.3-10, 3.5.2-9, 3.7.1-7
libarchive-debugsource - addressed in versions 3.4.3-10, 3.5.2-9, 3.7.1-7
libarchive-debuginfo - addressed in versions 3.4.3-10, 3.5.2-9, 3.7.1-7
libarchive - addressed in versions 3.4.3-10, 3.5.2-9, 3.7.1-7
libarchive13-debuginfo - addressed in versions 3.5.1-150400.3.21.1, 3.7.2-150600.3.17.1
libarchive13 - addressed in versions 3.5.1-150400.3.21.1, 3.7.2-150600.3.17.1
libarchive-debugsource - addressed in versions 3.5.1-150400.3.21.1, 3.7.2-150600.3.17.1
bsdtar - addressed in versions 3.5.1-150400.3.21.1, 3.7.2-150600.3.17.1
bsdtar-debuginfo - addressed in versions 3.5.1-150400.3.21.1, 3.7.2-150600.3.17.1
libarchive-devel - addressed in versions 3.5.1-150400.3.21.1, 3.7.2-150600.3.17.1
libarchive13-32bit - addressed in versions 3.5.1-150400.3.21.1, 3.7.2-150600.3.17.1
libarchive13-64bit - addressed in versions 3.5.1-150400.3.21.1, 3.7.2-150600.3.17.1
libarchive13-64bit-debuginfo - addressed in versions 3.5.1-150400.3.21.1, 3.7.2-150600.3.17.1
libarchive13-32bit-debuginfo - addressed in versions 3.5.1-150400.3.21.1, 3.7.2-150600.3.17.1
bsdtar - addressed in versions 3.5.2-9, 3.7.1-7
bsdcpio - addressed in versions 3.5.2-9, 3.7.1-7
bsdcat - addressed in versions 3.5.2-9, 3.7.1-7
bsdunzip - update to 3.7.1-7
Cloud Pak for Data System - Cyclops - update to 11.3.1.1

External References

Related Security Bulletins