CVEfocus › CVE database › CVE-2025-5917

CVE-2025-5917Libarchive: off by one error in build_ustar_entry_name() at archive_write_set_format_pax.c

CVSS 2.8 LowEPSS 0.3% (higher than 15% of CVEs)Published 2025-06-09Updated 2026-11-25Assigner: redhat

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.

CWE-787

What to do

Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

6Fixed
13Fix pending
6Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 25.10libarchiveFixed3.7.7-0ubuntu3UBUNTU-CVE-2025-5917
Ubuntu 24.04libarchiveFixed3.7.2-2ubuntu0.5UBUNTU-CVE-2025-5917
Ubuntu 22.04libarchiveFixed3.6.0-1ubuntu1.5UBUNTU-CVE-2025-5917
Ubuntu 20.04libarchiveFix pending3.4.0-2ubuntu1.5+esm1 (Ubuntu Pro)UBUNTU-CVE-2025-5917
Ubuntu 18.04libarchiveFix pending3.2.2-3.1ubuntu0.7+esm2 (Ubuntu Pro)UBUNTU-CVE-2025-5917
Ubuntu 16.04libarchiveFix pending3.1.2-11ubuntu0.16.04.8+esm2 (Ubuntu Pro)UBUNTU-CVE-2025-5917
Ubuntu 14.04libarchiveFix pending3.1.2-7ubuntu2.8+esm4 (Ubuntu Pro)UBUNTU-CVE-2025-5917
Debian 14libarchiveFixed3.7.4-4DEBIAN-CVE-2025-5917
Debian 13libarchiveFixed3.7.4-4DEBIAN-CVE-2025-5917
Debian 12libarchiveFixed3.6.2-1+deb12u3DEBIAN-CVE-2025-5917
Red Hat Enterprise Linux 10bsdtarFix pending
Fix deferred
Red Hat Enterprise Linux 10libarchiveFix pending
Fix deferred
Red Hat Enterprise Linux 10libarchive-develFix pending
Fix deferred
Red Hat Enterprise Linux 9bsdtarFix pending
Fix deferred
Red Hat Enterprise Linux 9libarchiveFix pending
Fix deferred
Red Hat Enterprise Linux 9libarchive-develFix pending
Fix deferred
Red Hat Enterprise Linux 8bsdtarFix pending
Fix deferred
Red Hat Enterprise Linux 8libarchiveFix pending
Fix deferred
Red Hat Enterprise Linux 8libarchive-develFix pending
Fix deferred
Red Hat Enterprise Linux 7bsdcpioWill not fix
Out of support scope
Red Hat Enterprise Linux 7bsdtarWill not fix
Out of support scope
Red Hat Enterprise Linux 7libarchiveWill not fix
Out of support scope
Red Hat Enterprise Linux 7libarchive-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6libarchiveWill not fix
Out of support scope
Red Hat Enterprise Linux 6libarchive-develWill not fix
Out of support scope

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.