CVE & CISA-KEV Catalog

CVE-2025-5917

LOW
2.8
CVSS v3
NVD

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.

How to fix

Remediation Available
libarchiveDebian
Fixed in:3.4.3-2+deb11u3CVE-2025-5917
Fixed in:3.6.2-1+deb12u3CVE-2025-5917
Fixed in:3.7.4-4CVE-2025-5917
Fixed in:3.7.4-4CVE-2025-5917
bsdcpioUbuntu
Fixed in:3.1.2-7ubuntu2.8+esm4USN-8147-1
Fixed in:3.1.2-11ubuntu0.16.04.8+esm2USN-8147-1
Fixed in:3.2.2-3.1ubuntu0.7+esm2USN-8147-1
bsdtarUbuntu
Fixed in:3.1.2-7ubuntu2.8+esm4USN-8147-1
Fixed in:3.1.2-11ubuntu0.16.04.8+esm2USN-8147-1
Fixed in:3.2.2-3.1ubuntu0.7+esm2USN-8147-1
libarchiveUbuntu
Fixed in:3.1.2-7ubuntu2.8+esm4USN-8147-1
Fixed in:3.1.2-11ubuntu0.16.04.8+esm2USN-8147-1
Fixed in:3.2.2-3.1ubuntu0.7+esm2USN-8147-1
Fixed in:3.4.0-2ubuntu1.5+esm1USN-8147-1
Fixed in:3.6.0-1ubuntu1.6USN-8147-1
Fixed in:3.6.0-1ubuntu1.5USN-7601-1
Fixed in:3.7.2-2ubuntu0.6USN-8147-1
Fixed in:3.7.2-2ubuntu0.5USN-7601-1
Fixed in:3.7.7-0ubuntu3.1USN-8147-1
libarchive-devUbuntu
Fixed in:3.1.2-7ubuntu2.8+esm4USN-8147-1
Fixed in:3.1.2-11ubuntu0.16.04.8+esm2USN-8147-1
Fixed in:3.2.2-3.1ubuntu0.7+esm2USN-8147-1
Fixed in:3.4.0-2ubuntu1.5+esm1USN-8147-1
Fixed in:3.6.0-1ubuntu1.6USN-8147-1
Fixed in:3.7.2-2ubuntu0.6USN-8147-1
Fixed in:3.7.7-0ubuntu3.1USN-8147-1
libarchive-toolsUbuntu
Fixed in:3.2.2-3.1ubuntu0.7+esm2USN-8147-1
Fixed in:3.4.0-2ubuntu1.5+esm1USN-8147-1
Fixed in:3.6.0-1ubuntu1.6USN-8147-1
Fixed in:3.7.2-2ubuntu0.6USN-8147-1
Fixed in:3.7.7-0ubuntu3.1USN-8147-1
libarchive13Ubuntu
Fixed in:3.1.2-7ubuntu2.8+esm4USN-8147-1
Fixed in:3.1.2-11ubuntu0.16.04.8+esm2USN-8147-1
Fixed in:3.2.2-3.1ubuntu0.7+esm2USN-8147-1
Fixed in:3.4.0-2ubuntu1.5+esm1USN-8147-1
Fixed in:3.6.0-1ubuntu1.6USN-8147-1
Fixed in:3.6.0-1ubuntu1.5USN-7601-1
libarchive13t64Ubuntu
Fixed in:3.7.2-2ubuntu0.6USN-8147-1
Fixed in:3.7.2-2ubuntu0.5USN-7601-1
Fixed in:3.7.7-0ubuntu3.1USN-8147-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionRequired
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityLow

CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L

Exploit Intelligence

0.17%probability of exploitation in 30 days
6thpercentile

Low risk: more likely to be exploited than 6% of all known CVEs.

References

Vendor Advisory1
Issue Tracking1
Release Notes1

Related Vulnerabilities

Other CWE-787 (Out-of-bounds Write) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2025-22457Critical9.0100%KEV + RansomFix
CVE-2025-0282Critical9.0100%KEV + Ransom-
CVE-2015-3113Critical9.8100%KEVFix
CVE-2021-20038Critical9.8100%KEV + Ransom-
CVE-2023-4863High8.8100%KEVFix
CVE-2020-16040Medium6.5100%-Fix
Embed a live status badge for CVE-2025-5917
CVE-2025-5917 severity badge

Markdown

[![CVE-2025-5917](https://tridentstack.com/cve/badge/CVE-2025-5917.svg)](https://tridentstack.com/cve/CVE-2025-5917)

HTML

<a href="https://tridentstack.com/cve/CVE-2025-5917"><img src="https://tridentstack.com/cve/badge/CVE-2025-5917.svg" alt="CVE-2025-5917"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-06-30.