PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

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

Exploitability

The vulnerability can be reproduced by running specific commands with bsdtar when compiled with Address Sanitiser. It was initially discovered by accident with a genuine filename on a CHERI capability system, which faults immediately on the buffer overflow (Github PR).

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

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

libarchive: 3.6.2-1+deb12u3

Fixed

sid

libarchive: 3.7.4-4

Fixed

trixie

libarchive: 3.7.4-4

Fixed

RHEL / CentOS

Affected

OpenShift

openshift/ose-rhel-coreos-8

Affected

RHEL 8

libarchive.src

Affected

RHEL 9

libarchive.src

Affected

RHEL 10

libarchive.src

Affected

Source: This report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-112940HIGH7.1
  • Python logoPython
  • filelock
NoYesOct 20, 2026
CVE-2026-112937MEDIUM6.1
  • Python logoPython
  • python-filelock
NoYesOct 20, 2026
CVE-2026-112936MEDIUM6.1
  • Python logoPython
  • filelock
NoYesOct 20, 2026
CVE-2026-112939MEDIUM4.7
  • Python logoPython
  • python-filelock
NoYesOct 20, 2026
CVE-2026-112941LOW3.3
  • Python logoPython
  • filelock
NoYesOct 20, 2026

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