Moderate Vulnerability in libarchive: Heap Buffer Over-read Issue

libarchive Updated 04 Oct 2025

Summary

03/10/2025
N/A
Yes i
Medium
4.0

RLSA-2025:7510: Moderate: libarchive security update. Affects libarchive versions < 0:3.7.7-2.el10_0. Fixed in 0:3.7.7-2.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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

libarchive is a versatile programming library that facilitates the creation and reading of various streaming archive formats, such as GNU tar, cpio, and ISO 9660 CD-ROM images. It is widely utilized in tools like the bsdtar utility, scripting language bindings (e.g., python-libarchive), and numerous popular desktop file managers. Its ability to handle multiple archive formats makes it a critical component in many software applications.

Vulnerability Detail

The vulnerability identified as CVE-2024-57970 is a heap buffer over-read in the header_gnu_longlink function of libarchive. This issue arises from improper handling of certain input data, which can lead to unexpected behavior, including potential information leakage. The CVSS score for this vulnerability is 4.0, indicating a moderate severity level. If exploited, this vulnerability could allow an attacker to read sensitive data from memory, posing a risk to the confidentiality of the system.

How To Fix

Minimum fixed version

0:3.7.7-2.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 of now, no specific workarounds have been provided for this vulnerability. The best course of action is to apply the available patch as soon as possible.

Conclusion

In summary, the libarchive library has a moderate vulnerability (CVE-2024-57970) that can lead to heap buffer over-reads, potentially exposing sensitive information. Users are advised to update to the latest patched version to mitigate this risk. Regular monitoring for vulnerabilities using tools like Vulert can help maintain the security of your applications.

See every vulnerability recorded for libarchive →

Share this vulnerability

FAQ

CVE-2024-57970 is a vulnerability in the libarchive library that results in a heap buffer over-read, potentially allowing unauthorized access to sensitive information.

The vulnerability could lead to information leakage, where sensitive data may be exposed to unauthorized users, impacting system confidentiality.

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

The CVSS score for this vulnerability is 4.0, indicating a moderate severity level.

The best way to protect your system is to update the libarchive package to the patched version 0:3.7.7-2.el10_0 as soon as possible.

Related vulnerabilities

Recent vulnerabilities recorded for libarchive.

How To Fix

Minimum fixed version

0:3.7.7-2.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