Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-5916: Integer Overflow or Wraparound

0
Low
VulnerabilityCVE-2025-5916cvecve-2025-5916
Published: Mon Jun 09 2025 (06/09/2025, 19:49:07 UTC)
Source: CVE Database V5
Vendor/Project: Red Hat
Product: Red Hat Enterprise Linux 10

Description

A vulnerability has been identified in the libarchive library. This flaw involves an integer overflow that can be triggered when processing a Web Archive (WARC) file that claims to have more than INT64_MAX - 4 content bytes. An attacker could craft a malicious WARC archive to induce this overflow, potentially leading to unpredictable program behavior, memory corruption, or a denial-of-service condition within applications that process such archives using libarchive. This bug affects libarchive versions prior to 3.8.0.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/27/2026, 15:39:01 UTC

Technical Analysis

CVE-2025-5916 is a vulnerability identified in the libarchive library, a widely used open-source library for reading and writing various archive formats. The issue is an integer overflow or wraparound triggered when libarchive processes a Web Archive (WARC) file that falsely claims to contain more than INT64_MAX - 4 content bytes. Since the size field exceeds the maximum value representable by a signed 64-bit integer, arithmetic operations on this value wrap around, causing incorrect memory allocation or buffer size calculations. This can lead to memory corruption, unpredictable program behavior, or denial-of-service (DoS) conditions in applications that rely on libarchive to handle WARC files. The vulnerability affects all libarchive versions prior to 3.8.0, including those bundled with Red Hat Enterprise Linux 10. Exploitation requires local access with limited privileges and user interaction, such as opening or processing a malicious WARC archive. The CVSS v3.1 base score is 3.9, reflecting low severity due to limited impact on confidentiality and integrity, and the requirement for local privileges and user interaction. No public exploits have been reported, and no patches or mitigation links were provided in the source data, but upgrading to libarchive 3.8.0 or later is the recommended remediation.

Potential Impact

The primary impact of CVE-2025-5916 is the potential for denial-of-service or application crashes due to memory corruption when processing malicious WARC files. While the vulnerability does not directly compromise confidentiality or integrity, the resulting instability could disrupt services that rely on libarchive for archive handling, such as backup systems, forensic tools, or content management platforms. Organizations that process large volumes of archive files or use automated systems to ingest WARC files are at higher risk. The requirement for local privileges and user interaction limits remote exploitation, reducing the threat to internet-facing services. However, insider threats or compromised user accounts could leverage this vulnerability to cause service interruptions or application failures. The absence of known exploits in the wild suggests limited active exploitation currently, but the vulnerability should be addressed proactively to avoid future risks.

Mitigation Recommendations

To mitigate CVE-2025-5916, organizations should upgrade libarchive to version 3.8.0 or later, where the integer overflow issue has been resolved. If immediate upgrading is not feasible, implement strict validation and filtering of WARC files before processing, ensuring that file size headers do not exceed safe limits. Employ application-level sandboxing or containerization to isolate archive processing components, limiting the impact of potential crashes or memory corruption. Monitor logs and application behavior for abnormal crashes or denial-of-service symptoms related to archive handling. Restrict local user permissions to minimize the risk of unprivileged users triggering the vulnerability. Additionally, educate users about the risks of opening untrusted archive files and enforce policies to avoid processing archives from unknown or unverified sources. Regularly review and apply security updates from vendors, especially for Red Hat Enterprise Linux 10 environments where libarchive is included.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
redhat
Date Reserved
2025-06-09T08:10:51.733Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 68487f561b0bd07c3938a581

Added to database: 6/10/2025, 6:54:14 PM

Last enriched: 2/27/2026, 3:39:01 PM

Last updated: 3/24/2026, 3:08:34 PM

Views: 56

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses