CVE-2025-5916: Libarchive: integer overflow while reading warc files at archive_read_support_format_warc.c

Published Jun 6, 2025
·
Updated

A vulnerability has been identified in the libarchive library. This flaw involves an integer overflow that can be triggered when processing a Web Archive (WARC) file that claims to have more than INT64MAX - 4 content bytes. An attacker could craft a malicious WARC archive to induce this overflow, potentially leading to unpredictable program behavior, memory corruption, or a denial-of-service condition within applications that process such archives using libarchive. This bug affects libarchive versions prior to 3.8.0.

Other sources

In libarchive before 3.8.0, a warc archive that claims to have more than INT64MAX - 4 content bytes may lead to an integer overflow.

Red Hat

Libarchive: integer overflow while reading warc files at archivereadsupportformatwarc.c

Microsoft

Affected Software

16 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-6<3.6.1-7
3.6.1-7
Microsoft azl3 libarchive 3.7.7-2<3.7.7-3
3.7.7-3
Microsoft azl3 cmake 3.30.3-8<3.30.3-8
3.30.3-8
Microsoft cbl2 libarchive 3.6.1-7<3.6.1-7
3.6.1-7
Microsoft cbl2 cmake 3.21.4-19<3.21.4-20
3.21.4-20
Microsoft cbl2 cmake 3.21.4-20<3.21.4-20
3.21.4-20
Microsoft azl3 libarchive 3.7.7-3<3.7.7-3
3.7.7-3
Microsoft cbl2 cmake 3.21.4-18

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.30.3-8
  2. Upgrade

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

    Fixed in 3.7.7-3
  3. Upgrade

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

    Fixed in 3.6.1-7
  4. Upgrade

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

    Fixed in 3.21.4-20
  5. 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·07:19 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:34 PM
DescriptionSeverityWeaknessAffected Software
Sep 4, 2025
Updated
via Microsoft·06:34 AM
SeverityAffected Software
Updated
via Microsoft·06:34 AM
Affected Software
Updated
via Microsoft·06:34 AM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2025-5916?

CVE-2025-5916 has been classified with a high severity due to the potential for remote code execution from an integer overflow.

2

How do I fix CVE-2025-5916?

To fix CVE-2025-5916, you should update to the latest version of the libarchive library where the vulnerability has been addressed.

3

What types of systems are affected by CVE-2025-5916?

CVE-2025-5916 affects systems that utilize the libarchive library to process Web Archive (WARC) files.

4

What kind of attack can be executed using CVE-2025-5916?

An attacker could exploit CVE-2025-5916 to craft a malicious WARC file, potentially leading to memory corruption and executing arbitrary code.

5

Is there a workaround for CVE-2025-5916?

As of now, the best approach is to apply the patch for CVE-2025-5916 since there are no reliable workarounds available.

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