---
id: CVE-2025-5916
title: A vulnerability has been identified in the libarchive library
summary: >-
  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 …
severity: low
cvss: 3.9
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:N/A:L'
cwe:
  - CWE-190
vendor: libarchive
product: libarchive
affected:
  - libarchive < 3.8.0
  - openshift_container_platform = 4.0
  - enterprise_linux = 6.0
  - enterprise_linux = 7.0
  - enterprise_linux = 8.0
  - enterprise_linux = 9.0
  - enterprise_linux = 10.0
patched:
  - libarchive 3.8.0
published: '2025-06-09'
updated: '2026-06-25'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-5916'
references:
  - url: 'https://access.redhat.com/security/cve/CVE-2025-5916'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2370872'
    label: secalert@redhat.com
  - url: 'https://github.com/libarchive/libarchive/pull/2568'
    label: secalert@redhat.com
  - url: 'https://github.com/libarchive/libarchive/releases/tag/v3.8.0'
    label: secalert@redhat.com
tags:
  - nvd
epss: 0.00185
epssPercentile: 0.07131
ingestedAt: '2026-06-29T13:24:34.358Z'
---

## Overview

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.

## Affected

- `libarchive < 3.8.0`
- `openshift_container_platform = 4.0`
- `enterprise_linux = 6.0`
- `enterprise_linux = 7.0`
- `enterprise_linux = 8.0`
- `enterprise_linux = 9.0`
- `enterprise_linux = 10.0`

## Remediation

Upgrade past the affected range:

- `libarchive 3.8.0`
