# CVE-2025-5918: Libarchive: reading past eof may be triggered for piped file streams

- Priority: **Routine**
- Reason: Not severe (CVSS 3.9, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-06-09 · Modified: 2026-11-25
- Aliases: UBUNTU-CVE-2025-5918, DEBIAN-CVE-2025-5918
- Record: https://cvemate.com/vulnerability/CVE-2025-5918 · JSON: https://cvemate.com/vulnerability/CVE-2025-5918/json

## Description

```text
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.
```

## Signals

- CVSS: 6.6 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:H
- EPSS: 0.489%, percentile 43.671%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian libarchive (Debian): \< 3.6.2-1+deb12u4 \| \< 3.7.4-4+deb13u1 \| \< 3.8.4-1
- ubuntu libarchive (Ubuntu): \< 3.1.2-7ubuntu2.8+esm4 \| \< 3.1.2-11ubuntu0.16.04.8+esm2 \| \< 3.2.2-3.1ubuntu0.7+esm2 \| \< 3.4.0-2ubuntu1.5+esm1 \| \< 3.6.0-1ubuntu1.6 \| \< 3.7.2-2ubuntu0.6 \| \< 3.7.7-0ubuntu3.1
- libarchive libarchive: \< 3.8.0
- redhat enterprise\_linux: 6.0 \| 7.0 \| 8.0 \| 9.0
- redhat openshift\_container\_platform: 4.0

## References

- <https://access.redhat.com/security/cve/CVE-2025-5918>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2370877>
- <https://github.com/libarchive/libarchive/pull/2584>
- <https://github.com/libarchive/libarchive/releases/tag/v3.8.0>
- <https://ubuntu.com/security/CVE-2025-5918>
- <https://www.cve.org/CVERecord?id=CVE-2025-5918>
- <https://ubuntu.com/security/notices/USN-8147-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-5918>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-5918>

---

Data as of 2026-12-05T04:02:49.659Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
