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

CVE-2025-5917 is fixed in 15 products on 1 platform, first by libarchive-tools 3.6.0-1ubuntu1.5, released June 9, 2025. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2025-5917
- Priority: Routine
- CVSS: 5.0 (Medium)
- EPSS: 0.0024
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jun 9, 2025
- Weakness: Out-of-bounds Write
- Vendor advisory: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-5917

## Description

A vulnerability has been identified in the libarchive library. This flawinvolves an 'off-by-one' miscalculation when handling prefixes and suffixesfor file names. This can lead to a 1-byte write overflow. While seeminglysmall, such an overflow can corrupt adjacent memory, leading tounpredictable 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | bsdcat amzn 2023 | 3.7.4-2.amzn2023.0.4 | [ALAS2023-2025-1091](https://patchblox.com/security/data/fix/linux/alas2023-2025-1091.md) | Jul 21, 2025 |
| Linux | bsdcat-debuginfo amzn 2023 | 3.7.4-2.amzn2023.0.4 | [ALAS2023-2025-1091](https://patchblox.com/security/data/fix/linux/alas2023-2025-1091.md) | Jul 21, 2025 |
| Linux | bsdcpio Ubuntu 18.04.6 LTS (bionic) | 3.2.2-3.1ubuntu0.7+esm2 | [bsdcpio 3.2.2-3.1ubuntu0.7+esm2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-bsdcpio-3.2.2-3.1ubuntu0.7-esm2.md) | Mar 13, 2026 |
| Linux | bsdcpio amzn 2023 | 3.7.4-2.amzn2023.0.4 | [ALAS2023-2025-1091](https://patchblox.com/security/data/fix/linux/alas2023-2025-1091.md) | Jul 21, 2025 |
| Linux | bsdcpio-debuginfo amzn 2023 | 3.7.4-2.amzn2023.0.4 | [ALAS2023-2025-1091](https://patchblox.com/security/data/fix/linux/alas2023-2025-1091.md) | Jul 21, 2025 |
| Linux | bsdtar Ubuntu 18.04.6 LTS (bionic) | 3.2.2-3.1ubuntu0.7+esm2 | [bsdtar 3.2.2-3.1ubuntu0.7+esm2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-bsdtar-3.2.2-3.1ubuntu0.7-esm2.md) | Mar 13, 2026 |
| Linux | bsdtar amzn 2023 | 3.7.4-2.amzn2023.0.4 | [ALAS2023-2025-1091](https://patchblox.com/security/data/fix/linux/alas2023-2025-1091.md) | Jul 21, 2025 |
| Linux | bsdtar-debuginfo amzn 2023 | 3.7.4-2.amzn2023.0.4 | [ALAS2023-2025-1091](https://patchblox.com/security/data/fix/linux/alas2023-2025-1091.md) | Jul 21, 2025 |
| Linux | bsdunzip amzn 2023 | 3.7.4-2.amzn2023.0.4 | [ALAS2023-2025-1091](https://patchblox.com/security/data/fix/linux/alas2023-2025-1091.md) | Jul 21, 2025 |
| Linux | bsdunzip-debuginfo amzn 2023 | 3.7.4-2.amzn2023.0.4 | [ALAS2023-2025-1091](https://patchblox.com/security/data/fix/linux/alas2023-2025-1091.md) | Jul 21, 2025 |
| Linux | libarchive Debian 12.15 (bookworm) | 3.6.2-1+deb12u3 | [DEBIAN-CVE-2025-5917](https://patchblox.com/security/data/fix/linux/debian-cve-2025-5917.md) | Jun 9, 2025 |
| Linux | libarchive Debian 13.5 (trixie) | 3.7.4-4 | [DEBIAN-CVE-2025-5917](https://patchblox.com/security/data/fix/linux/debian-cve-2025-5917.md) | Jun 9, 2025 |
| Linux | libarchive Debian 14 | 3.7.4-4 | [DEBIAN-CVE-2025-5917](https://patchblox.com/security/data/fix/linux/debian-cve-2025-5917.md) | Jun 9, 2025 |
| Linux | libarchive amzn 2023 | 3.7.4-2.amzn2023.0.4 | [ALAS2023-2025-1091](https://patchblox.com/security/data/fix/linux/alas2023-2025-1091.md) | Jul 21, 2025 |
| Linux | libarchive opensuse-leap 15.6 | 3.7.2-150600.3.17.1 | [SUSE-SU-2025:02566-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-02566-1.md) | Jul 31, 2025 |
| Linux | libarchive sles 15.6 | 3.7.2-150600.3.17.1 | [SUSE-SU-2025:02566-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-02566-1.md) | Jul 31, 2025 |
| Linux | libarchive sles 15.7 | 3.7.2-150600.3.17.1 | [SUSE-SU-2025:02566-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-02566-1.md) | Jul 31, 2025 |
| Linux | libarchive-debuginfo amzn 2023 | 3.7.4-2.amzn2023.0.4 | [ALAS2023-2025-1091](https://patchblox.com/security/data/fix/linux/alas2023-2025-1091.md) | Jul 21, 2025 |
| Linux | libarchive-debugsource amzn 2023 | 3.7.4-2.amzn2023.0.4 | [ALAS2023-2025-1091](https://patchblox.com/security/data/fix/linux/alas2023-2025-1091.md) | Jul 21, 2025 |
| Linux | libarchive-devel amzn 2023 | 3.7.4-2.amzn2023.0.4 | [ALAS2023-2025-1091](https://patchblox.com/security/data/fix/linux/alas2023-2025-1091.md) | Jul 21, 2025 |
| Linux | libarchive-tools Ubuntu 18.04.6 LTS (bionic) | 3.2.2-3.1ubuntu0.7+esm2 | [libarchive-tools 3.2.2-3.1ubuntu0.7+esm2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libarchive-tools-3.2.2-3.1ubuntu0.7-esm2.md) | Mar 13, 2026 |
| Linux | libarchive-tools Ubuntu 20.04 LTS (focal) | 3.4.0-2ubuntu1.5+esm1 | [libarchive-tools 3.4.0-2ubuntu1.5+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libarchive-tools-3.4.0-2ubuntu1.5-esm1.md) | Mar 13, 2026 |
| Linux | libarchive-tools Ubuntu 22.04.1 LTS (jammy) | 3.6.0-1ubuntu1.5 | [libarchive-tools 3.6.0-1ubuntu1.5](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libarchive-tools-3.6.0-1ubuntu1.5.md) | Jun 9, 2025 |
| Linux | libarchive-tools Ubuntu 24.04.5 LTS (noble) | 3.7.2-2ubuntu0.5 | [libarchive-tools 3.7.2-2ubuntu0.5](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libarchive-tools-3.7.2-2ubuntu0.5.md) | Jun 9, 2025 |
| Linux | libarchive-tools Ubuntu 24.10 (oracular) | 3.7.4-1ubuntu0.3 | [libarchive-tools 3.7.4-1ubuntu0.3](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-libarchive-tools-3.7.4-1ubuntu0.3.md) | Jan 16, 2026 |
| Linux | libarchive-tools Ubuntu 25.04 (plucky) | 3.7.7-0ubuntu2.3 | [libarchive-tools 3.7.7-0ubuntu2.3](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-libarchive-tools-3.7.7-0ubuntu2.3.md) | Jan 16, 2026 |
| Linux | libarchive-tools Ubuntu 25.10 (questing) | 3.7.7-0ubuntu3 | [libarchive-tools 3.7.7-0ubuntu3](https://patchblox.com/security/data/fix/linux/ubuntu-questing-libarchive-tools-3.7.7-0ubuntu3.md) | Jun 9, 2025 |
| Linux | libarchive13 Ubuntu 18.04.6 LTS (bionic) | 3.2.2-3.1ubuntu0.7+esm2 | [libarchive13 3.2.2-3.1ubuntu0.7+esm2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libarchive13-3.2.2-3.1ubuntu0.7-esm2.md) | Mar 13, 2026 |
| Linux | libarchive13 Ubuntu 20.04 LTS (focal) | 3.4.0-2ubuntu1.5+esm1 | [libarchive13 3.4.0-2ubuntu1.5+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libarchive13-3.4.0-2ubuntu1.5-esm1.md) | Mar 13, 2026 |
| Linux | libarchive13 Ubuntu 22.04.1 LTS (jammy) | 3.6.0-1ubuntu1.5 | [libarchive13 3.6.0-1ubuntu1.5](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libarchive13-3.6.0-1ubuntu1.5.md) | Jun 9, 2025 |
| Linux | libarchive13t64 Ubuntu 24.04.5 LTS (noble) | 3.7.2-2ubuntu0.5 | [libarchive13t64 3.7.2-2ubuntu0.5](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libarchive13t64-3.7.2-2ubuntu0.5.md) | Jun 9, 2025 |
| Linux | libarchive13t64 Ubuntu 24.10 (oracular) | 3.7.4-1ubuntu0.3 | [libarchive13t64 3.7.4-1ubuntu0.3](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-libarchive13t64-3.7.4-1ubuntu0.3.md) | Jan 16, 2026 |
| Linux | libarchive13t64 Ubuntu 25.04 (plucky) | 3.7.7-0ubuntu2.3 | [libarchive13t64 3.7.7-0ubuntu2.3](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-libarchive13t64-3.7.7-0ubuntu2.3.md) | Jan 16, 2026 |
| Linux | libarchive13t64 Ubuntu 25.10 (questing) | 3.7.7-0ubuntu3 | [libarchive13t64 3.7.7-0ubuntu3](https://patchblox.com/security/data/fix/linux/ubuntu-questing-libarchive13t64-3.7.7-0ubuntu3.md) | Jun 9, 2025 |

---

Data as of 2026-11-08T19:12:23Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
