Cloudanix VulnDB

CVE-2025-5914

High · 7.8

CVSS

7.8

EPSS

0.5%

Published

Jun 9, 2025

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in a widely used library for reading archive files can let attackers who supply a bad RAR file take control of or crash programs that open archives.

Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Moderate
Impact
Full Compromise
Component
Library
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Integer overflow in archive_read_format_rar_seek_data() leads to double-free, enabling memory corruption that can be leveraged for arbitrary code execution or denial of service.

Why it matters to the business

Systems that extract or inspect RAR archives can be crashed or compromised when handling malicious files, potentially disrupting backup, packaging, or file-processing workflows across many applications that depend on libarchive.

How an attack unfolds

An attacker crafts a malicious RAR archive containing values that trigger the integer overflow during the seek operation in archive_read_format_rar_seek_data(); the resulting double-free corrupts heap metadata, allowing control of execution flow to achieve code execution or a crash.

How to fix it

Upgrade libarchive to the commit 70ff28fcf04ec129a1d064f96e49aa57fcc90e37 or later; rebuild and redeploy all dependent applications; test archive-handling functionality with the updated library.

How to confirm the fix worked

Confirm the installed libarchive version or commit hash matches or exceeds 70ff28fcf04ec129a1d064f96e49aa57fcc90e37; run regression tests that exercise RAR seeking paths; monitor for absence of double-free crashes on crafted inputs.

Typical attack path

  1. Deliver a specially crafted RAR archive to a target process that uses libarchive for extraction or inspection
  2. Trigger archive_read_format_rar_seek_data() on the malformed archive
  3. Induce integer overflow leading to double-free and memory corruption
  4. Leverage the corruption to execute arbitrary code or cause denial of service

How to detect it

Review application logs and crash reports for segmentation faults or heap corruption signals when processing RAR files; correlate with file-upload or archive-extraction events; no public exploit artifacts are known.

What your security team should do

  • Immediately update all instances of libarchive to the fixed commit across development, build, and production environments
  • Identify and inventory all downstream products and containers that statically or dynamically link libarchive
  • Add archive-processing tests that include malformed RAR inputs to CI/CD pipelines
  • Monitor EPSS and exploit maturity indicators for any future increase in risk

The record

A vulnerability has been identified in the libarchive library, specifically within the archive_read_format_rar_seek_data() 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.

Affected packages

Ecosystem Package Introduced Fixed
AlmaLinux:10 bsdtar 0 3.7.7-4.el10_0
AlmaLinux:10 libarchive 0 3.7.7-4.el10_0
AlmaLinux:10 libarchive-devel 0 3.7.7-4.el10_0
AlmaLinux:8 bsdtar 0 3.3.3-6.el8_10
AlmaLinux:8 libarchive 0 3.3.3-6.el8_10
AlmaLinux:8 libarchive-devel 0 3.3.3-6.el8_10
AlmaLinux:9 bsdtar 0 3.5.3-6.el9_6
AlmaLinux:9 libarchive 0 3.5.3-6.el9_6
AlmaLinux:9 libarchive-devel 0 3.5.3-6.el9_6
Debian:11 libarchive 0 No fix
Debian:12 libarchive 0 No fix
Debian:13 libarchive 0 No fix
Debian:14 libarchive 0 3.7.4-4
Mageia:9 libarchive 0 3.6.2-5.5.mga9
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
SUSE:Linux Enterprise Server 12 SP5-LTSS libarchive 0 3.3.3-32.14.1
SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 libarchive 0 3.3.3-32.14.1
openSUSE:Leap 15.6 libarchive 0 3.7.2-150600.3.17.1

Related vulnerabilities