Critical Vulnerabilities in libarchive Package: Potential for Code Execution and Denial of Service

libarchive Updated 03 Oct 2025

Summary

26/06/2025
N/A
Yes i
Unrated
Not published

USN-7601-1: libarchive vulnerabilities. Affects libarchive versions < 3.6.0-1ubuntu1.5. Fixed in 3.6.0-1ubuntu1.5. 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 widely used library for reading and writing various archive formats, including ZIP, TAR, and RAR. It provides developers with a robust API for handling compressed files and is integral to many applications on Ubuntu systems. However, recent vulnerabilities have been discovered that compromise its security, particularly in handling certain archive types, making it susceptible to attacks that could lead to arbitrary code execution or denial of service.

Vulnerability Detail

The vulnerabilities in libarchive stem from improper handling of specific RAR and WARC archive files. Attackers can exploit these flaws to execute arbitrary code, read sensitive data, or cause the library to crash, resulting in denial of service. The vulnerabilities are identified as CVE-2025-5914, CVE-2025-5915, CVE-2025-5916, and CVE-2025-5917, each highlighting different aspects of the library's failure to validate input correctly.

How To Fix

Minimum fixed version

3.6.0-1ubuntu1.5

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libarchive

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

Workaround

As a temporary measure, avoid processing untrusted RAR or WARC archive files until the package is updated. Implement strict validation checks on file inputs to mitigate the risk of exploitation.

Conclusion

The vulnerabilities in the libarchive package pose significant risks, including potential code execution and denial of service. It is crucial for users to update their packages to the latest versions to mitigate these risks. Regular monitoring and validation of archive files can further enhance security.

See every vulnerability recorded for libarchive →

Share this vulnerability

FAQ

libarchive is a library that provides a flexible interface for reading and writing various archive formats, such as ZIP, TAR, and RAR.

The vulnerabilities could lead to arbitrary code execution, exposure of sensitive data, or denial of service, impacting the stability and security of applications using the library.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.

If immediate updates are not possible, refrain from processing untrusted archive files and implement input validation to reduce the risk of exploitation.

Detailed information about the vulnerabilities can be found in the Ubuntu Security Notices, specifically USN-7601-1.

Related vulnerabilities

Recent vulnerabilities recorded for libarchive.

How To Fix

Minimum fixed version

3.6.0-1ubuntu1.5

This is the first release that contains the fix.

sudo apt-get install --only-upgrade 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