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

Published Jun 6, 2025
·
Updated

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.

Other sources

App Store. A permissions issue was addressed with additional restrictions.

Apple

AppleJPEG. The issue was addressed with improved bounds checks.

Apple

AppleMobileFileIntegrity. A downgrade issue affecting Intel-based Mac computers was addressed with additional code-signing restrictions.

Apple

AppleMobileFileIntegrity. A permissions issue was addressed with additional restrictions.

Apple

AppleMobileFileIntegrity. The issue was addressed by adding additional logic.

Apple

Credit

Michael Reeves@@IntegralPilot, an anonymous researcher, Jex Amro, Wojciech Regula(SecuRing), Riley Walz, CVE-2024-7264, CVE-2025-9086, Noah Gregory (wts.dev), Andrew Calvano(Meta Product Security), Lucas Pinheiro(Meta Product Security), Andreas Jaegersberger & Ro Achterberg(Nosebeard Labs), Kaitao Xie(Alibaba Group), Xiaolong Bai(Alibaba Group), CVE-2025-5918, Rosyna Keller(Totally Not Malicious Software), Haoling Zhou(SecLab of The Ohio State University), Shixuan Zhao@@NSKernel(SecLab of The Ohio State University), Chao Wang@@evi0s(SecLab of The Ohio State University), Zhiqiang Lin(SecLab of The Ohio State University), Iván Savransky, Mickey Jin@@patch1t, Amy@@asentientbot, Gergely Kalman@@gergely_kalman, Kay Belardinelli (Harvard University), Claudio Bozzato(Cisco Talos), Francesco Benvenuto(Cisco Talos), Yiğit Ocak, Duy Trần@@khanhduytran0, Sumanth Rao(UC San Diego), Ye Shu(UC San Diego), Stefan Savage(UC San Diego), Aaron Schulman(UC San Diego), Geoffrey M. Voelker(UC San Diego), Enze Liu (Carnegie Mellon University), Bing Shi(Alibaba Group), Wenchao Li(Alibaba Group), (Indiana University Bloomington), Luyi Xing(Indiana University Bloomington), Nan Wang@@eternalsakura13, Google Big Sleep, Hossein Lotfi@@hosselot(Trend Micro Zero Day Initiative), Phil Pizlo(Epic Games), Google Threat Analysis Group, Apple, floeki(IES Red Team of ByteDance), Zhongcheng Li(IES Red Team of ByteDance), Andrei Simion, piffz, Daniel Nurkin, Al Sadman Awal, Mohamed Hamdadou & Mahran Alhazmi, Hichem Maloufi, Christian Mina, Gerson Aldaz, qwerty j0y & Ricardo Garcia, Dorian Del Valle, iG0x72(XiguaSec), JJ(XiguaSec), Lehan Dilusha Jayasinghe, an anonymous researcher(Technische Hochschule Ingolstadt), Michael Schmutzer(Technische Hochschule Ingolstadt), Kirin@@Pwnrin, 이동하 (Lee Dong Ha(BoB 14th), Ron Elemans, Kirin@@Pwnrin(Fudan University), LFY@@secsys(Fudan University), Csaba Fitzl@@theevilbit(Iru), Kenneth Chew, Atul R V, @@retsew0x01, Morris Richman@@morrisinlife

Affected Software

22 affected componentsFixes available
Libarchive libarchive<3.8.0
Libarchive libarchive<3.8.0
redhat OpenShift Container Platform=4.0
redhat Enterprise Linux=6.0
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
Microsoft cbl2 libarchive 3.6.1-7
Microsoft cbl2 cmake 3.21.4-20
Microsoft cbl2 cmake 3.21.4-19
Microsoft cbl2 cmake 3.21.4-18
Microsoft azl3 libarchive 3.7.7-3
Microsoft azl3 libarchive 3.7.7-2
Microsoft azl3 cmake 3.30.3-8
Microsoft cbl2 libarchive 3.6.1-6
Apple iOS<18.7.3
18.7.3
Apple iPadOS<18.7.3
18.7.3
Apple macOS Tahoe<26.2
26.2
Apple macOS Sonoma<14.8.3
14.8.3
Apple iOS<26.2
26.2
Apple iPadOS<26.2
26.2
Apple macOS Sequoia<15.7.3
15.7.3

Event History

Jun 6, 2025
Data Sourced
via Red Hat·07:44 PM
DescriptionSeverityAffected Software
Jun 9, 2025
CVE Published
via MITRE·07:49 PM
Data Sourced
via MITRE·07:49 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Sep 3, 2025
Data Sourced
via Microsoft·11:17 PM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·11:17 PM
Affected Software
Updated
via Microsoft·11:17 PM
Affected Software
Updated
via Microsoft·11:17 PM
SeverityAffected Software
Updated
via Microsoft·11:17 PM
DescriptionSeverity
Dec 12, 2025
Data Sourced
via Apple·12:00 AM
DescriptionWeaknessAffected Software
Updated
via Apple·12:00 AM
DescriptionWeakness
Updated
via Apple·12:00 AM
Description
Updated
via Apple·12:00 AM
Affected Software
Updated
via Apple·12:00 AM
DescriptionWeaknessAffected Software
Updated
via Apple·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-5918?

CVE-2025-5918 is classified as a medium severity vulnerability due to the potential for out-of-bounds reads.

2

How do I fix CVE-2025-5918?

To mitigate CVE-2025-5918, you should update the libarchive library to the latest patched version.

3

What are the potential impacts of CVE-2025-5918?

CVE-2025-5918 could lead to unpredictable behavior in applications using libarchive, including potential data leakage.

4

What software is affected by CVE-2025-5918?

CVE-2025-5918 affects all software that utilizes the libarchive library, particularly when using bsdtar.

5

How can I determine if CVE-2025-5918 is present in my system?

You can check for CVE-2025-5918 by reviewing the version of the libarchive library installed on your system.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203