CVE-2025-5917
NixOS vulnerability analysis and mitigation

Overview

A vulnerability (CVE-2025-5917) was discovered in the libarchive library, disclosed on May 20, 2025. The vulnerability involves an 'off-by-one' miscalculation when handling prefixes and suffixes for file names in the buildustarentryname() function at archivewritesetformat_pax.c (NVD, Wiz Report).

Technical details

The vulnerability is classified as a low severity issue with a CVSS v3.1 base score of 2.8 (CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L). The flaw is categorized as CWE-787 (Out-of-bounds Write) and involves a one-byte write overflow that occurs due to incorrect calculations for the suffix and prefix when handling file names. The calculations for the suffix and prefix can increment the endpoint for a trailing slash, causing the limits used to be one lower than the maximum number of bytes (Github PR).

Impact

While the overflow is only one byte in size, it can corrupt adjacent memory, potentially leading to unpredictable program behavior and crashes. In specific circumstances, this vulnerability could be leveraged as a building block for more sophisticated exploitation (NVD, Wiz Report).

Mitigation and workarounds

The vulnerability has been fixed in libarchive version 3.8.0, released on May 20, 2025. Users are advised to upgrade to this version or later, which includes this and other important security fixes (Github Release, Wiz Report).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-48606HIGH7.8
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48625HIGH7
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48608MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48569MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-65799MEDIUM4.3
  • NixOSNixOS
  • memos
NoYesDec 08, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management