BreachSpiderVerified, not vibes

CVE-2025-5917 in Libarchive and 2 more products

Medium 5.0

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

Affects 3 products from 2 vendors. Facts below cite their sources.

CVSS 3.15.0
EPSS0.3%
EPSS percentile15th
FixSee advisory

Requires local access, low complexity, low privileges required, requires user interaction, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Libarchive Libarchive < 3.8.0
Redhat Enterprise Linux 6.0 7.0 8.0 9.0 10.0
Redhat Openshift Container Platform 4.0

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2025-5917
BreachSpider IDBS-2025-GLOBAL-330161-M
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H
Published2025-06-09
Last modified2026-11-25
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-787: Out-of-Bounds Write

Software writes data past buffer boundaries, corrupting memory and potentially enabling code execution.

Analysis AI-written, not human-reviewed

A vulnerability in the libarchive library due to an 'off-by-one' miscalculation can lead to a 1-byte write overflow, potentially causing program crashes or being exploited for more severe attacks.

The vulnerability arises from an incorrect handling of prefixes and suffixes for file names, resulting in a 1-byte write overflow that can corrupt adjacent memory.

Questions

What is CVE-2025-5917?

A vulnerability in the libarchive library due to an 'off-by-one' miscalculation can lead to a 1-byte write overflow, potentially causing program crashes or being exploited for more severe attacks.

What is the CVSS score for CVE-2025-5917?

CVE-2025-5917 has CVSS 5.0 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H. EPSS: 0.3%.

Is CVE-2025-5917 actively exploited?

No confirmed active exploitation of CVE-2025-5917 as of 2026-11-26.

How do I remediate CVE-2025-5917?

Priority: MEDIUM. Advisory: https://access.redhat.com/security/cve/CVE-2025-5917 PSIRT: [email protected]

What systems are affected by CVE-2025-5917?

CVE-2025-5917 affects Libarchive Libarchive; Redhat Enterprise Linux, Openshift Container Platform.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Libarchive","product":"Libarchive","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-11-25.