Buffer overflow in libarchive - CVE-2025-25724

 

Buffer overflow in libarchive - CVE-2025-25724

Published: March 20, 2025


Vulnerability identifier: #VU105900
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-25724
CWE-ID: CWE-119
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 a boundary error when processing .tar files within the list_item_verbose() function in tar/util.c. A remote attacker can create a specially crafted archive, trick the victim into opening it, trigger memory corruption and execute arbitrary code on the target system.

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


Affected software

libarchive
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data
IBM Observability with Instana
Oracle Communications Network Analytics Data Director
APEX Cloud Platform for Red Hat OpenShift
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Micro
SUSE Linux Enterprise Micro for Rancher
Anolis OS
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux Server - AUS
Ubuntu
Slackware Linux
Basesystem Module
Development Tools Module
openSUSE Leap
openEuler
DataStax Hyper-Converged Database
WatsonX BI Assistant
APEX Cloud Platform for Microsoft Azure
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
libarchive (Ubuntu package)
libarchive13 (Ubuntu package)
libarchive-tools (Ubuntu package)
libarchive-help
libarchive-devel
libarchive-debugsource
libarchive-debuginfo
libarchive
libarchive13-32bit
libarchive13
libarchive13-debuginfo
bsdtar-debuginfo
bsdtar
libarchive13-32bit-debuginfo
libarchive13-64bit
libarchive13-64bit-debuginfo
bsdcat
bsdcpio
libarchive (Red Hat package)
bsdunzip
libarchive-doc
libarchive13t64 (Ubuntu package)
IBM API Connect
OpenShift API for Data Protection (OADP)
Multicluster Engine for Kubernetes
Red Hat Ceph Storage

How to mitigate CVE-2025-25724

Install updates from vendor's website.

libarchive - update to 3.7.8
IBM Watson Speech Services Cartridge for IBM Cloud Pak for Data - update to 5.2.1
IBM Observability with Instana - update to 1.0.307
DataStax Hyper-Converged Database - update to 1.2.5
WatsonX BI Assistant - update to 5.2.1
IBM API Connect - update to 10.0.8.5
APEX Cloud Platform for Microsoft Azure - addressed in versions 01.04.01.00, 01.05.01.00
OpenShift API for Data Protection (OADP) - update to 1.4.5
Multicluster Engine for Kubernetes - update to 2.6.8
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
APEX Cloud Platform for Red Hat OpenShift - update to 03.02.04.00
libarchive13 (Ubuntu package) - addressed in versions 3.4.0-2ubuntu1.5, 3.6.0-1ubuntu1.4
libarchive-tools (Ubuntu package) - addressed in versions 3.4.0-2ubuntu1.5, 3.6.0-1ubuntu1.4, 3.7.2-2ubuntu0.4, 3.7.4-1ubuntu0.2, 3.7.7-0ubuntu2.1
libarchive-help - addressed in versions 3.4.3-9, 3.5.2-8, 3.7.1-6
libarchive-devel - addressed in versions 3.4.3-9, 3.5.2-8, 3.7.1-6
libarchive-debugsource - addressed in versions 3.4.3-9, 3.5.2-8, 3.7.1-6
libarchive-debuginfo - addressed in versions 3.4.3-9, 3.5.2-8, 3.7.1-6
libarchive - addressed in versions 3.4.3-9, 3.5.2-8, 3.7.1-6
libarchive13-32bit - addressed in versions 3.5.1-150400.3.18.1, 3.7.2-150600.3.12.1
libarchive13 - addressed in versions 3.5.1-150400.3.18.1, 3.7.2-150600.3.12.1
libarchive13-debuginfo - addressed in versions 3.5.1-150400.3.18.1, 3.7.2-150600.3.12.1
libarchive-debugsource - addressed in versions 3.5.1-150400.3.18.1, 3.7.2-150600.3.12.1
bsdtar-debuginfo - addressed in versions 3.5.1-150400.3.18.1, 3.7.2-150600.3.12.1
libarchive-devel - addressed in versions 3.5.1-150400.3.18.1, 3.7.2-150600.3.12.1
bsdtar - addressed in versions 3.5.1-150400.3.18.1, 3.7.2-150600.3.12.1
libarchive13-32bit-debuginfo - addressed in versions 3.5.1-150400.3.18.1, 3.7.2-150600.3.12.1
libarchive13-64bit - addressed in versions 3.5.1-150400.3.18.1, 3.7.2-150600.3.12.1
libarchive13-64bit-debuginfo - addressed in versions 3.5.1-150400.3.18.1, 3.7.2-150600.3.12.1
bsdtar - addressed in versions 3.5.2-8, 3.7.1-6
bsdcat - addressed in versions 3.5.2-8, 3.7.1-6
bsdcpio - addressed in versions 3.5.2-8, 3.7.1-6
libarchive-devel - addressed in versions 3.5.3-5, 3.7.1-4
libarchive - addressed in versions 3.5.3-5, 3.7.1-4
bsdtar - addressed in versions 3.5.3-5, 3.7.1-4
libarchive (Red Hat package) - addressed in versions 3.5.3-5.el9_4.1, 3.5.3-5.el9_6, 3.7.7-3.el10_0
bsdunzip - update to 3.7.1-4
bsdcat - update to 3.7.1-4
bsdcpio - update to 3.7.1-4
libarchive-doc - update to 3.7.1-4
bsdunzip - update to 3.7.1-6
libarchive13t64 (Ubuntu package) - addressed in versions 3.7.2-2ubuntu0.4, 3.7.4-1ubuntu0.2, 3.7.7-0ubuntu2.1
libarchive - update to 3.7.8
Red Hat Ceph Storage - update to 7.1

External References

Related Security Bulletins