2.8Low

Libarchive Libarchive

CVE-2025-5917

A vulnerability has been identified in the libarchive library. This flaw involves an 'off-by-one' miscalculation when handling prefixes and suffixes for file names. This can lead to a 1-byte write overflow. While seemingly small, such an overflow can corrupt adjacent memory, leading to unpredictable program behavior, crashes, or in specific circumstances, could be leveraged as a building block for more sophisticated exploitation. This bug affects libarchive versions prior to 3.8.0.

What this means for your business

  • It affects Libarchive. It matters if your company, or a supplier that handles your data, runs it.
  • An attacker can use it only with access to the machine itself, with an ordinary user login, but only after tricking someone into an action such as opening a file or a link.

What to do

  1. 1Check whether your company or your suppliers run Libarchive, and which version. The affected versions are listed further down this page.
  2. 2If you do, apply the vendor's fix. A patch or vendor advisory has been published.

Not sure if your company is exposed?

Fastnexa’s certified penetration testers can check whether attackers could use this flaw, or others like it, against your websites, apps and network. The full test is free for our first 10 founding clients until 31 December 2026.

Scoring

CVSS
2.8 (v3.1)
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L
Weakness
CWE-787
Assigned by
secalert@redhat.com

Dates

Published
2025-06-09
Last modified
2026-09-01
Sources
NVD

Affected products

  • Libarchive Libarchive- 3.8.0
  • Redhat Openshift Container Platform4.0
  • Redhat Enterprise Linux6.0, 7.0, 8.0, 9.0, 10.0

As listed in the NVD configuration data. Not a statement about your estate.

References