Critical Vulnerability in libarchive: Double Free Issue in RAR Format Handling

libarchive Updated 04 Oct 2025

Summary

03/10/2025
N/A
Yes i
High
7.3

RLSA-2025:14137: Important: libarchive security update. Affects libarchive versions < 0:3.7.7-4.el10_0. Fixed in 0:3.7.7-4.el10_0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

libarchive is a versatile programming library that enables the creation and reading of various streaming archive formats, including GNU tar, cpio, and ISO 9660 CD-ROM images. It is widely utilized in tools like bsdtar, language bindings such as python-libarchive, and numerous desktop file managers. This library's functionality is crucial for managing file archives efficiently, but it is not without its vulnerabilities.

Vulnerability Detail

The vulnerability identified as CVE-2025-5914 is a double free issue located in the archive_read_format_rar_seek_data() function within the archive_read_support_format_rar.c file. This flaw can lead to potential exploitation, allowing attackers to manipulate memory management, which may result in arbitrary code execution or application crashes. The severity of this vulnerability is underscored by its CVSS score of 7.3, indicating a high level of risk to systems utilizing affected versions of libarchive.

How To Fix

Minimum fixed version

0:3.7.7-4.el10_0

This is the first release that contains the fix.

sudo dnf update libarchive

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, if updating the package is not immediately feasible, consider disabling the use of RAR format archives until the patch is applied. This can help mitigate the risk of exploitation while a permanent fix is being implemented.

Conclusion

The libarchive library, while essential for managing various archive formats, has a critical vulnerability (CVE-2025-5914) that requires immediate attention. Users are advised to update to the patched version to mitigate risks associated with this flaw. For those unable to update right away, disabling RAR format usage is recommended as a temporary measure.

See every vulnerability recorded for libarchive →

Share this vulnerability

FAQ

CVE-2025-5914 is a vulnerability in the libarchive library that allows for a double free condition, potentially leading to memory corruption and arbitrary code execution.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Exploitation of this vulnerability can lead to application crashes or arbitrary code execution, posing significant security risks to affected systems.

If an immediate update is not possible, consider disabling the use of RAR format archives as a temporary workaround to reduce the risk of exploitation.

The libarchive library is maintained by the Rocky Enterprise Software Foundation and Red Hat, who provide updates and security patches.

Related vulnerabilities

Recent vulnerabilities recorded for libarchive.

How To Fix

Minimum fixed version

0:3.7.7-4.el10_0

This is the first release that contains the fix.

sudo dnf update libarchive

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback