CVE-2025-5918 Libarchive: reading past eof may be triggered for piped file streams
An out-of-bounds read in Libarchive when processing piped streams can cause memory corruption or denial of service.
- 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-5918?
CVE-2025-5918 is a low-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 be triggered when file streams are piped into bsdtar, potentially allowing for reading past the end of the file. This out-of-bounds read can lead to unintended consequences, including unpredictable program behavior, memory corruption, or a denial-of-service condition.
Weakness: CWE-125
Which versions are affected by CVE-2025-5918?
It affects 3 products.
Products include Libarchive Libarchive, Redhat Enterprise Linux, Redhat Openshift Container Platform.
How do I fix CVE-2025-5918?
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-5918 being exploited?
There is no known exploitation of CVE-2025-5918 in the wild and no public exploit code.
Other vulnerabilities in Libarchive Libarchive
Sources
Also known as AZL-63753, AZL-63780, AZL-63821, AZL-63851, BELL-CVE-2025-5918, DEBIAN-CVE-2025-5918 and 5 more.