CVE-2025-5915 Libarchive: heap buffer over read in copy_from_lzss_window() at archive_read_support_format_rar.c
A heap buffer over-read in Libarchive allows attackers to cause crashes or disclose sensitive memory information via crafted RAR archives.
- 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-5915?
CVE-2025-5915 is a medium-severity memory corruption 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 can lead to a heap buffer over-read due to the size of a filter block potentially exceeding the Lempel-Ziv-Storer-Schieber (LZSS) window. This means the library may attempt to read beyond the allocated memory buffer, which can result in unpredictable program behavior, crashes (denial of service), or the disclosure of sensitive information from adjacent memory regions.
Weakness: CWE-122
Which versions are affected by CVE-2025-5915?
It affects 3 products.
Products include Libarchive Libarchive, Redhat Enterprise Linux, Redhat Openshift Container Platform.
How do I fix CVE-2025-5915?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2025-5915 being exploited?
There is no known exploitation of CVE-2025-5915 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in Libarchive Libarchive
Sources
Also known as AZL-63786, AZL-63857, BELL-CVE-2025-5915, DEBIAN-CVE-2025-5915, ECHO-ef0f-bb47-0359, GHSA-rfq2-xjgr-h957 and 3 more.