CVE-2025-5915: Libarchive: heap buffer over read in copy_from_lzss_window() at archive_read_support_format_rar.c

Published Jun 6, 2025
·
Updated

A vulnerability has been identified in the libarchive library. This flaw can lead to a heap buffer over-read due to the size of a filter block potentially exceeding the Lempel-Ziv-Storer-Schieber (LZSS) window. This means the library may attempt to read beyond the allocated memory buffer, which can result in unpredictable program behavior, crashes (denial of service), or the disclosure of sensitive information from adjacent memory regions.

Other sources

In libarchive before 3.8.0, because size of filter block can sometime be larger then lzss window, a heap buffer over read may occur.

Red Hat

Libarchive: heap buffer over read in copyfromlzsswindow() at archivereadsupportformatrar.c

Microsoft

Affected Software

12 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
redhat Enterprise Linux=10.0
Microsoft cbl2 libarchive 3.6.1-7<3.6.1-7
3.6.1-7
Microsoft azl3 libarchive 3.7.7-3<3.7.7-3
3.7.7-3
Microsoft cbl2 libarchive 3.6.1-6<3.6.1-7
3.6.1-7
Microsoft azl3 libarchive 3.7.7-2<3.7.7-3
3.7.7-3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.7.7-3
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.6.1-7

Event History

Jun 6, 2025
Data Sourced
via Red Hat·06:25 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 4, 2025
Data Sourced
via Microsoft·06:53 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·06:53 AM
Affected Software
Updated
via Microsoft·06:53 AM
Affected Software
Updated
via Microsoft·06:53 AM
SeverityAffected Software
Updated
via Microsoft·06:53 AM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2025-5915?

CVE-2025-5915 is classified as a moderate severity vulnerability due to the potential for heap buffer over-read.

2

How do I fix CVE-2025-5915?

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

3

What systems are affected by CVE-2025-5915?

CVE-2025-5915 affects systems using the vulnerable versions of the libarchive library.

4

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

CVE-2025-5915 can result in information disclosure and may allow attackers to exploit memory corruption.

5

Is there a workaround for CVE-2025-5915?

Currently, there are no known workarounds for CVE-2025-5915 other than applying the security updates.

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