Out-of-bounds read in libarchive - CVE-2025-5918

 

Out-of-bounds read in libarchive - CVE-2025-5918

Published: June 16, 2025


Vulnerability identifier: #VU111147
CSH Severity: Medium
CVSS v4: 4.6 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-5918
CWE-ID: CWE-125
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to gain access to potentially sensitive information.

The vulnerability exists due to a boundary condition when file streams are piped into bsdtar. A remote attacker can create a specially crafted file, trick the victim into opening it, trigger an out-of-bounds read error and read contents of memory on the system.


Affected software

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

How to mitigate CVE-2025-5918

Install updates from vendor's website.

libarchive - update to 3.8.0
macOS - addressed in versions 14.8.3 23J220, 15.7.3 24G419, 26.2 25C56
iPadOS - addressed in versions 18.7.3 22H217, 26.2 23C55
Apple iOS - addressed in versions 18.7.3 22H217, 26.2 23C55
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.6, 3.7.2-2ubuntu0.6, 3.7.7-0ubuntu3.1
libarchive - 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-debugsource - 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-help - 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
libarchive-debugsource - 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
bsdtar-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
bsdtar - 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
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
bsdcpio - addressed in versions 3.5.2-9, 3.7.1-7
bsdcat - addressed in versions 3.5.2-9, 3.7.1-7
bsdtar - 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