CVE-2025-5918
Low · 3.9CVSS
3.9
EPSS
0.4%
Published
Jun 9, 2025
CISA due date
—
Cloudanix analysis
A flaw in a widely used file handling library could let someone with access to the same computer cause archiving tools to crash or act unpredictably when processing certain data streams.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Out-of-bounds read in libarchive when processing piped file streams via bsdtar, resulting in memory corruption, unpredictable behavior, or denial of service.
Why it matters to the business
Archive extraction or inspection tools on systems using libarchive may crash or produce unreliable output when handling streamed input, increasing operational risk for backup, packaging, and distribution workflows; the low exploitability and absence from known exploited lists reduce immediate urgency but the widespread use of the library still warrants prompt patching.
How an attack unfolds
An attacker with local access crafts or supplies a file stream that triggers the out-of-bounds read condition when fed into bsdtar; no public exploits or named threat actors are associated with this issue.
How to fix it
Update libarchive to the commit 70ff28fcf04ec129a1d064f96e49aa57fcc90e37 or later; rebuild and redeploy any dependent packages that statically link the library.
How to confirm the fix worked
Confirm the installed libarchive version or build contains commit 70ff28fcf04ec129a1d064f96e49aa57fcc90e37; run regression tests that exercise piped bsdtar operations with varied archive streams.
Typical attack path
- Obtain local access or ability to supply input to bsdtar on the target system
- Pipe a specially constructed file stream into bsdtar
- Trigger the out-of-bounds read leading to memory corruption or crash
How to detect it
Review system and application logs for unexpected bsdtar crashes or segmentation faults during archive operations; no specific post-exploitation artifacts are known.
What your security team should do
- Prioritize upgrade of libarchive to the fixed commit across all build and runtime environments
- Scan package manifests and container images for affected libarchive versions
- Monitor EPSS trend for any future increase in exploitation likelihood
The record
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 packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | libarchive | 0 | No fix |
| Debian:12 | libarchive | 0 | No fix |
| Debian:13 | libarchive | 0 | No fix |
| Debian:14 | libarchive | 0 | No fix |
| SUSE:Linux Enterprise Micro 5.3 | libarchive | 0 | 3.5.1-150400.3.21.1 |
| SUSE:Linux Enterprise Micro 5.4 | libarchive | 0 | 3.5.1-150400.3.21.1 |
| SUSE:Linux Enterprise Micro 5.5 | libarchive | 0 | 3.5.1-150400.3.21.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP6 | libarchive | 0 | 3.7.2-150600.3.17.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP7 | libarchive | 0 | 3.7.2-150600.3.17.1 |
| SUSE:Linux Enterprise Module for Development Tools 15 SP6 | libarchive | 0 | 3.7.2-150600.3.17.1 |
| SUSE:Linux Enterprise Module for Development Tools 15 SP7 | libarchive | 0 | 3.7.2-150600.3.17.1 |
| openSUSE:Leap 15.6 | libarchive | 0 | 3.7.2-150600.3.17.1 |
Related vulnerabilities
- JLSEC-2025-250 libarchive through 3.7.7 has a heap-based buffer over-read in header_gnu_longlink in… Also affects libarchive
- CVE-2025-5917 A vulnerability has been identified in the libarchive library. Also affects libarchive
- CVE-2025-5916 A vulnerability has been identified in the libarchive library. Also affects libarchive
- CVE-2025-5915 A vulnerability has been identified in the libarchive library. Also affects libarchive
- CVE-2025-5914 A vulnerability has been identified in the libarchive library, specifically within the… Also affects libarchive
- CVE-2025-25724 list_item_verbose in tar/util.c in libarchive through 3.7.7 does not check an strftime… Also affects libarchive
- CVE-2025-1632 A vulnerability was found in libarchive up to 3.7.7. Also affects libarchive
- CVE-2024-57970 libarchive through 3.7.7 has a heap-based buffer over-read in header_gnu_longlink in… Also affects libarchive