CVE-2025-5917 Libarchive: off by one error in build_ustar_entry_name() at archive_write_set_format_pax.c
MediumCVSS 5.0
EPSS 0.25%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebianRed Hat
Description
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.
Upgrade path
16 packages: 10 fixed, 1 partially fixed, 3 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat enterprise linux | = 6.0; = 7.0; = 8.0; = 9.0 +2 more | No fix listed | No fix yet |
| redhat openshift | All versions | No fix listed | No fix yet |
| redhat openshift ai | All versions | No fix listed | No fix yet |
| cbl-mariner cmake(CBL-Mariner 2.0) | < 3.21.4-20; All versions | 3.21.4-20 | Partially fixed |
| azure linux cmake(Azure Linux 3.0) | < 3.30.3-8 | 3.30.3-8 | Fixed |
| azure linux libarchive(Azure Linux 3.0) | < 3.7.7-3 | 3.7.7-3 | Fixed |
| cbl-mariner libarchive(CBL-Mariner 2.0) | < 3.6.1-7 | 3.6.1-7 | Fixed |
| debian/libarchive(Debian 12) | < 3.6.2-1+deb12u3; = 3.6.2-1; = 3.6.2-1+deb12u1; = 3.6.2-1+deb12u2 | 3.6.2-1+deb12u3 | Fixed |
| debian/libarchive(Debian 13) | < 3.7.4-4 | 3.7.4-4 | Fixed |
| debian/libarchive(Debian 14) | < 3.7.4-4 | 3.7.4-4 | Fixed |
| libarchive | < 3.8.0 | 3.8.0 | Fixed |
| libarchive | < 3.8.0 | 3.8.0 | Fixed |
| ubuntu/libarchive(Ubuntu 22.04) | < 3.6.0-1ubuntu1.5 | 3.6.0-1ubuntu1.5 | Fixed |
| ubuntu/libarchive(Ubuntu 24.04) | < 3.7.2-2ubuntu0.5 | 3.7.2-2ubuntu0.5 | Fixed |
| redhat openshift container platform | = 4.0 | No fix listed | Versions listed |
| redhat rhel els | = 6; = 7 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| azure linux cmake(Azure Linux:3.0) | < 3.30.3-8 | 3.30.3-8 |
| azure linux libarchive(Azure Linux:3.0) | < 3.7.7-3 | 3.7.7-3 |
| cbl-mariner cmake(CBL-Mariner:2.0) | All versions | No fix listed |
| cbl-mariner libarchive(CBL-Mariner:2.0) | < 3.6.1-7 | 3.6.1-7 |
| cbl-mariner cmake(CBL-Mariner:2.0) | < 3.21.4-20 | 3.21.4-20 |
| debian/libarchive(Debian:12) | < 3.6.2-1+deb12u3 | 3.6.2-1+deb12u3 |
| debian/libarchive(Debian:12) | = 3.6.2-1 | No fix listed |
| debian/libarchive(Debian:12) | = 3.6.2-1+deb12u1 | No fix listed |
| debian/libarchive(Debian:12) | = 3.6.2-1+deb12u2 | No fix listed |
| debian/libarchive(Debian:13) | < 3.7.4-4 | 3.7.4-4 |
| debian/libarchive(Debian:14) | < 3.7.4-4 | 3.7.4-4 |
| libarchive | < 3.8.0 | 3.8.0 |
| redhat enterprise linux | All versions | No fix listed |
| redhat rhel els | = 6 | No fix listed |
| redhat rhel els | = 7 | No fix listed |
| redhat openshift ai | All versions | No fix listed |
| redhat openshift | All versions | No fix listed |
| ubuntu/libarchive(Ubuntu:22.04) | < 3.6.0-1ubuntu1.5 | 3.6.0-1ubuntu1.5 |
| ubuntu/libarchive(Ubuntu:24.04) | < 3.7.2-2ubuntu0.5 | 3.7.2-2ubuntu0.5 |
| redhat openshift container platform | = 4.0 | No fix listed |
| redhat enterprise linux | = 6.0 | No fix listed |
| redhat enterprise linux | = 7.0 | No fix listed |
| redhat enterprise linux | = 8.0 | No fix listed |
| redhat enterprise linux | = 9.0 | No fix listed |
| redhat enterprise linux | = 10.0 | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Debian Security Tracker CVE-2025-5917 vendor-advisory
- access.redhat.com vdb-entry vendor-advisory
- RHBZ#2370874 issue-tracking
- github.com patch
- github.com release-notes
- Ubuntu CVE tracker vendor-advisory
- USN-7601-1 vendor-advisory
- USN-8147-1 vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking
- ENISA EUVD EUVD-2025-17574 third-party-advisory