CVE-2025-5914: Libarchive: double free at archive_read_format_rar_seek_data() in archive_read_support_format_rar.c

Published Jun 6, 2025
·
Updated

A vulnerability has been identified in the libarchive library, specifically within the archivereadformatrarseekdata() function. This flaw involves an integer overflow that can ultimately lead to a double-free condition. Exploiting a double-free vulnerability can result in memory corruption, enabling an attacker to execute arbitrary code or cause a denial-of-service condition.

Other sources

In libarchive before 3.8.0, an integer overflow in the archivereadformatrarseekdata() function may lead to a double free problem.

— Red Hat

Libarchive: double free at archivereadformatrarseekdata() in archivereadsupportformatrar.c

— Microsoft

Affected Software

23 affected componentsFixes available
Libarchive libarchive<3.8.0
Microsoft azl3 libarchive 3.7.7-2<3.7.7-3
3.7.7-3
Microsoft cbl2 libarchive 3.6.1-7<3.6.1-7
3.6.1-7
Microsoft cbl2 libarchive 3.6.1-6<3.6.1-7
3.6.1-7
Microsoft azl3 libarchive 3.7.7-3<3.7.7-3
3.7.7-3
debian/libarchive
3.6.2-1+deb12u43.6.2-1+deb12u53.7.4-4+deb13u13.8.10-2
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
debian/libarchive<3.6.2-1+deb12u3
3.6.2-1+deb12u3
debian/libarchive<3.7.4-4
3.7.4-4
debian/libarchive<3.7.4-4
3.7.4-4
ubuntu/libarchive<3.1.2-7ubuntu2.8+esm4
3.1.2-7ubuntu2.8+esm4
ubuntu/libarchive<3.1.2-11ubuntu0.16.04.8+esm2
3.1.2-11ubuntu0.16.04.8+esm2
ubuntu/libarchive<3.2.2-3.1ubuntu0.7+esm2
3.2.2-3.1ubuntu0.7+esm2
ubuntu/libarchive<3.4.0-2ubuntu1.5+esm1
3.4.0-2ubuntu1.5+esm1
ubuntu/libarchive<3.6.0-1ubuntu1.5
3.6.0-1ubuntu1.5
ubuntu/libarchive<3.7.2-2ubuntu0.5
3.7.2-2ubuntu0.5
ubuntu/libarchive<3.7.7-0ubuntu3
3.7.7-0ubuntu3

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
  3. Upgrade

    Upgrade debian/libarchive to a version that resolves this vulnerability.

    Fixed in 3.6.2-1+deb12u4Fixed in 3.6.2-1+deb12u5Fixed in 3.7.4-4+deb13u1Fixed in 3.8.10-2
  4. Upgrade

    Upgrade debian/libarchive to a version that resolves this vulnerability.

    Fixed in 3.6.2-1+deb12u3
  5. Upgrade

    Upgrade debian/libarchive to a version that resolves this vulnerability.

    Fixed in 3.7.4-4
  6. Upgrade

    Upgrade ubuntu/libarchive to a version that resolves this vulnerability.

    Fixed in 3.1.2-7ubuntu2.8+esm4
  7. Upgrade

    Upgrade ubuntu/libarchive to a version that resolves this vulnerability.

    Fixed in 3.1.2-11ubuntu0.16.04.8+esm2
  8. Upgrade

    Upgrade ubuntu/libarchive to a version that resolves this vulnerability.

    Fixed in 3.2.2-3.1ubuntu0.7+esm2
  9. Upgrade

    Upgrade ubuntu/libarchive to a version that resolves this vulnerability.

    Fixed in 3.4.0-2ubuntu1.5+esm1
  10. Upgrade

    Upgrade ubuntu/libarchive to a version that resolves this vulnerability.

    Fixed in 3.6.0-1ubuntu1.5
  11. Upgrade

    Upgrade ubuntu/libarchive to a version that resolves this vulnerability.

    Fixed in 3.7.2-2ubuntu0.5
  12. Upgrade

    Upgrade ubuntu/libarchive to a version that resolves this vulnerability.

    Fixed in 3.7.7-0ubuntu3
  13. Upgrade

    Upgrade libarchive to a version that resolves this vulnerability.

    Fixed in 3.8.0

Event History

Jun 6, 2025
Data Sourced
via Red Hat·06:03 PM
DescriptionSeverityAffected Software
Jun 9, 2025
CVE Published
via MITRE·07:53 PM
Data Sourced
via MITRE·07:53 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:15 PM
DescriptionSeverityWeakness
Jun 10, 2025
Exploit Published
via CISA·03:14 PM
Jun 20, 2025
Data Sourced
via NVD·02:49 PM
RemedyAffected Software
Updated
via NVD·02:49 PM
Severity
Jul 11, 2025
Event
via FIRST·12:00 AM
Aug 12, 2025
Updated
via MITRE·10:27 AM
Severity
Updated
via Red Hat·10:38 AM
Severity
Updated
via NVD·11:15 AM
Severity
Sep 4, 2025
Data Sourced
via Microsoft·06:49 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·06:49 AM
Affected Software
Jan 7, 2026
Updated
via MITRE·03:51 PM
Severity
Updated
via NVD·04:15 PM
Severity
Jan 15, 2026
Event
via MITRE·06:48 PM
Jan 21, 2026
Updated
via NVD·03:16 PM
Severity
Feb 5, 2026
Updated
via MITRE·05:26 PM
Weakness
Updated
via NVD·06:16 PM
Weakness
Nov 24, 2026
Data Sourced
via OSV·02:55 PM
Affected Software

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2025-5914?

The severity of CVE-2025-5914 is high due to the potential for an integer overflow leading to a double-free condition.

2

How do I fix CVE-2025-5914?

To fix CVE-2025-5914, update the libarchive library to the latest version that addresses this vulnerability.

3

What are the potential impacts of exploiting CVE-2025-5914?

Exploiting CVE-2025-5914 may result in memory corruption, application crashes, or potential code execution depending on the context.

4

Which software is affected by CVE-2025-5914?

CVE-2025-5914 affects applications utilizing the libarchive library, particularly those handling RAR file formats.

5

Is CVE-2025-5914 a local or remote vulnerability?

CVE-2025-5914 can be exploited remotely if an attacker can manipulate file input to the affected applications.

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