# CVE-2025-5917: Libarchive: off by one error in build\_ustar\_entry\_name() at archive\_write\_set\_format\_pax.c

- Priority: **Routine**
- Reason: Not severe (CVSS 2.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-06-09 · Modified: 2026-11-25
- Aliases: UBUNTU-CVE-2025-5917, DEBIAN-CVE-2025-5917
- Record: https://cvemate.com/vulnerability/CVE-2025-5917 · JSON: https://cvemate.com/vulnerability/CVE-2025-5917/json

## Description

```text
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.
```

## Signals

- CVSS: 5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H
- EPSS: 0.322%, percentile 27.162%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian libarchive (Debian): \< 3.6.2-1+deb12u3 \| \< 3.7.4-4
- ubuntu libarchive (Ubuntu): \< 3.1.2-7ubuntu2.8+esm4 \| \< 3.1.2-11ubuntu0.16.04.8+esm2 \| \< 3.2.2-3.1ubuntu0.7+esm2 \| \< 3.4.0-2ubuntu1.5+esm1 \| \< 3.6.0-1ubuntu1.5 \| \< 3.7.2-2ubuntu0.5 \| \< 3.7.7-0ubuntu3
- libarchive libarchive: \< 3.8.0
- redhat enterprise\_linux: 6.0 \| 7.0 \| 8.0 \| 9.0 \| 10.0
- redhat openshift\_container\_platform: 4.0

## References

- <https://access.redhat.com/security/cve/CVE-2025-5917>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2370874>
- <https://github.com/libarchive/libarchive/pull/2588>
- <https://github.com/libarchive/libarchive/releases/tag/v3.8.0>
- <https://ubuntu.com/security/CVE-2025-5917>
- <https://www.cve.org/CVERecord?id=CVE-2025-5917>
- <https://ubuntu.com/security/notices/USN-7601-1>
- <https://ubuntu.com/security/notices/USN-8147-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-5917>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-5917>

---

Data as of 2026-12-05T04:45:12.775Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
