CVE-2025-5916 Libarchive: integer overflow while reading warc files at archive_read_support_format_warc.c

Low 3.9 Published Updated

An integer overflow in Libarchive allows attackers to cause denial of service or memory corruption via malicious WARC files.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-5916?

CVE-2025-5916 is a low-severity vulnerability in Libarchive Libarchive, published on 9 Jun 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-190

Which versions are affected by CVE-2025-5916?

It affects 3 products.

Linux distribution packages (1)
rpi-imager openSUSE:TumbleweedAll versions1.9.5-1.1

Products include Libarchive Libarchive, Redhat Enterprise Linux, Redhat Openshift Container Platform.

How do I fix CVE-2025-5916?

Upgrade to a fixed version.

Is CVE-2025-5916 being exploited?

There is no known exploitation of CVE-2025-5916 in the wild and no public exploit code.

All Libarchive Libarchive vulnerabilities

Sources

Also known as AZL-63759, AZL-63774, AZL-63824, AZL-63863, BELL-CVE-2025-5916, DEBIAN-CVE-2025-5916 and 6 more.

Is CVE-2025-5916 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free