CVE-2025-5918

published 9 Jun 2025 · updated 16 Nov 2026

Libarchive: reading past eof may be triggered for piped file streams

3.9LowCVSS 3.9EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 3.8.0.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Red HatEnterprise Linux
Red HatOpenShift AI
Red HatOpenShift Container Platform
libarchivelibarchive<3.8.03.8.0
redhatenterprise_linux=9.0, =8.0, =7.0, =6.0
redhatopenshift_container_platform=4.0
<3.8.03.8.0

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Red Hat, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-5918 severity on Zeptric[![CVE-2025-5918](https://zeptric.io/badge/cve/CVE-2025-5918.svg)](https://zeptric.io/cve/CVE-2025-5918)