CVE-2025-5914 Libarchive: double free at archive_read_format_rar_seek_data() in archive_read_support_format_rar.c

High 7.8 Published Updated

An integer overflow in Libarchive's RAR handler leads to a double-free, allowing attackers to execute arbitrary code or cause denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-5914?

CVE-2025-5914 is a high-severity memory corruption vulnerability in Libarchive Libarchive, published on 9 Jun 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

A vulnerability has been identified in the libarchive library, specifically within the archive_read_format_rar_seek_data() function. This flaw involves an integer overflow that can ultimately lead to a double-free condition. Exploiting a double-free vulnerability can result in memory corruption, enabling an attacker to execute arbitrary code or cause a denial-of-service condition.

Weakness: CWE-190

Which versions are affected by CVE-2025-5914?

It affects 3 products.

Linux distribution packages (40)
bsdtar AlmaLinux:10All versions3.7.7-4.el10_0
libarchive AlmaLinux:10All versions3.7.7-4.el10_0
libarchive-devel AlmaLinux:10All versions3.7.7-4.el10_0
bsdtar AlmaLinux:8All versions3.3.3-6.el8_10
libarchive AlmaLinux:8All versions3.3.3-6.el8_10
libarchive-devel AlmaLinux:8All versions3.3.3-6.el8_10
bsdtar AlmaLinux:9All versions3.5.3-6.el9_6
libarchive AlmaLinux:9All versions3.5.3-6.el9_6
libarchive-devel AlmaLinux:9All versions3.5.3-6.el9_6
bsdcat-debuginfo Red Hat:enterprise_linux:10.0All versions0:3.7.7-4.el10_0
bsdcpio-debuginfo Red Hat:enterprise_linux:10.0All versions0:3.7.7-4.el10_0
bsdtar Red Hat:enterprise_linux:10.0All versions0:3.7.7-4.el10_0
bsdtar-debuginfo Red Hat:enterprise_linux:10.0All versions0:3.7.7-4.el10_0
bsdunzip-debuginfo Red Hat:enterprise_linux:10.0All versions0:3.7.7-4.el10_0
libarchive Red Hat:enterprise_linux:10.0All versions0:3.7.7-4.el10_0
libarchive-debuginfo Red Hat:enterprise_linux:10.0All versions0:3.7.7-4.el10_0
libarchive-debugsource Red Hat:enterprise_linux:10.0All versions0:3.7.7-4.el10_0
libarchive-devel Red Hat:enterprise_linux:10.0All versions0:3.7.7-4.el10_0
bsdcat-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:3.3.3-6.el8_10
bsdcpio-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:3.3.3-6.el8_10
bsdtar Red Hat:enterprise_linux:8::baseosAll versions0:3.3.3-6.el8_10
bsdtar-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:3.3.3-6.el8_10
libarchive Red Hat:enterprise_linux:8::baseosAll versions0:3.3.3-6.el8_10
libarchive-debuginfo Red Hat:enterprise_linux:8::baseosAll versions0:3.3.3-6.el8_10
libarchive-debugsource Red Hat:enterprise_linux:8::baseosAll versions0:3.3.3-6.el8_10
bsdcat-debuginfo Red Hat:enterprise_linux:8::crbAll versions0:3.3.3-6.el8_10
bsdcpio-debuginfo Red Hat:enterprise_linux:8::crbAll versions0:3.3.3-6.el8_10
bsdtar-debuginfo Red Hat:enterprise_linux:8::crbAll versions0:3.3.3-6.el8_10
libarchive-debuginfo Red Hat:enterprise_linux:8::crbAll versions0:3.3.3-6.el8_10
libarchive-debugsource Red Hat:enterprise_linux:8::crbAll versions0:3.3.3-6.el8_10
libarchive-devel Red Hat:enterprise_linux:8::crbAll versions0:3.3.3-6.el8_10
bsdcat-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:3.5.3-6.el9_6
bsdcpio-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:3.5.3-6.el9_6
bsdtar Red Hat:enterprise_linux:9::appstreamAll versions0:3.5.3-6.el9_6
bsdtar-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:3.5.3-6.el9_6
libarchive-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:3.5.3-6.el9_6
libarchive-debugsource Red Hat:enterprise_linux:9::appstreamAll versions0:3.5.3-6.el9_6
libarchive-devel Red Hat:enterprise_linux:9::appstreamAll versions0:3.5.3-6.el9_6
bsdcat-debuginfo Red Hat:enterprise_linux:9::baseosAll versions0:3.5.3-6.el9_6
bsdcpio-debuginfo Red Hat:enterprise_linux:9::baseosAll versions0:3.5.3-6.el9_6

Products include Libarchive Libarchive, Redhat Enterprise Linux, Redhat Openshift Container Platform.

How do I fix CVE-2025-5914?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-5914 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-5914 exists.

All Libarchive Libarchive vulnerabilities

Sources

Also known as ALSA-2025:14130, ALSA-2025:14135, ALSA-2025:14137, AZL-63783, AZL-63860, BELL-CVE-2025-5914 and 22 more.

Is CVE-2025-5914 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free