CVE-2025-5917
published 2025-06-09CVE-2025-5917: A vulnerability has been identified in the libarchive library. This flaw involves an 'off-by-one' miscalculation when handling prefixes and suffixes for file…
PriorityP420medium5CVSS 3.1
AVLACLPRLUIRSUCNINAH
EPSS
0.17%
6.1th percentile
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.
Affected
29 ranges· showing 25
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | libarchive | < libarchive 3.6.2-1+deb12u3 (bookworm) | libarchive 3.6.2-1+deb12u3 (bookworm) |
| libarchive | libarchive | < 3.8.0 | 3.8.0 |
| libarchive | libarchive | >= 0 < 3.4.3-2+deb11u3 | 3.4.3-2+deb11u3 |
| libarchive | libarchive | >= 0 < 3.6.2-1+deb12u3 | 3.6.2-1+deb12u3 |
| libarchive | libarchive | >= 0 < 3.7.4-4 | 3.7.4-4 |
| libarchive | libarchive | >= 0 < 3.7.4-4 | 3.7.4-4 |
| libarchive | libarchive | >= 0 < 3.6.0-1ubuntu1.5 | 3.6.0-1ubuntu1.5 |
| libarchive | libarchive | >= 0 < 3.6.0-1ubuntu1.6 | 3.6.0-1ubuntu1.6 |
| libarchive | libarchive | >= 0 < 3.7.2-2ubuntu0.5 | 3.7.2-2ubuntu0.5 |
| libarchive | libarchive | >= 0 < 3.7.2-2ubuntu0.6 | 3.7.2-2ubuntu0.6 |
| libarchive | libarchive | >= 0 < 3.7.7-0ubuntu3.1 | 3.7.7-0ubuntu3.1 |
| libarchive | libarchive | >= 0 < 3.1.2-7ubuntu2.8+esm4 | 3.1.2-7ubuntu2.8+esm4 |
| libarchive | libarchive | >= 0 < 3.1.2-11ubuntu0.16.04.8+esm2 | 3.1.2-11ubuntu0.16.04.8+esm2 |
| libarchive | libarchive | >= 0 < 3.2.2-3.1ubuntu0.7+esm2 | 3.2.2-3.1ubuntu0.7+esm2 |
| libarchive | libarchive | >= 0 < 3.4.0-2ubuntu1.5+esm1 | 3.4.0-2ubuntu1.5+esm1 |
| msrc | azl3_cmake_3.30.3-8_on_azure_linux_3.0 | — | — |
| msrc | azl3_libarchive_3.7.7-2_on_azure_linux_3.0 | — | — |
| msrc | azl3_libarchive_3.7.7-3_on_azure_linux_3.0 | — | — |
| msrc | cbl2_cmake_3.21.4-18_on_cbl_mariner_2.0 | — | — |
| msrc | cbl2_cmake_3.21.4-19_on_cbl_mariner_2.0 | — | — |
| msrc | cbl2_cmake_3.21.4-20_on_cbl_mariner_2.0 | — | — |
| msrc | cbl2_libarchive_3.6.1-6_on_cbl_mariner_2.0 | — | — |
| msrc | cbl2_libarchive_3.6.1-7_on_cbl_mariner_2.0 | — | — |
| redhat | enterprise_linux | — | — |
| redhat | enterprise_linux | — | — |
CVSS provenance
nvdv3.15.0MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H
osv7.8HIGH
vendor_ubuntu7.8HIGH
vendor_debian2.8LOW
vendor_msrc2.8LOW
vendor_redhat2.8LOW
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
libarchive vulnerabilities
osv·2026-04-02·CVSS 5.5
CVE-2019-19221 [MEDIUM] libarchive vulnerabilities
libarchive vulnerabilities
It was discovered that libarchive incorrectly handled certain archive
files. An attacker could possibly use this issue to access sensitive
information. This issue only affected Ubuntu 14.04 LTS. (CVE-2019-19221)
It was discovered that libarchive incorrectly handled certain RAR archive
files. If a user or automated system were tricked into processing a
specially crafted RAR archive, an attacker could possibly use this issue to
cause libarchive to crash, resulting in a denial of service, or execute
arbitrary code. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS
and Ubuntu 18.04 LTS. (CVE-2024-20696)
It was discovered that libarchive incorrectly handled certain RAR archive
files. An attacker could possibly use this issue to execute arbitrary code
or c
OSV
libarchive vulnerabilities
osv·2025-06-26·CVSS 7.8
CVE-2025-5914 [HIGH] libarchive vulnerabilities
libarchive vulnerabilities
It was discovered that libarchive incorrectly handled certain RAR archive
files. An attacker could possibly use this issue to execute arbitrary
code or cause a denial of service. (CVE-2025-5914)
It was discovered that libarchive incorrectly handled certain RAR archive
files. An attacker could possibly use this issue to read sensitive data
or cause a denial of service. (CVE-2025-5915)
It was discovered that libarchive incorrectly handled certain WARC
archive files. If a user or automated system were tricked into processing
a specially crafted WARC archive, an attacker could use this issue to
cause libarchive to crash, resulting in a denial of service.
(CVE-2025-5916)
It was discovered that libarchive incorrectly handled certain file names
when handling prefixe
GHSA
GHSA-29vm-vjqm-q2mx: A vulnerability has been identified in the libarchive library
ghsa_unreviewed·2025-06-09
CVE-2025-5917 [LOW] CWE-787 GHSA-29vm-vjqm-q2mx: A vulnerability has been identified in the libarchive library
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.
OSV
CVE-2025-5917: A vulnerability has been identified in the libarchive library
osv·2025-06-09·CVSS 5.0
CVE-2025-5917 [MEDIUM] CVE-2025-5917: A vulnerability has been identified in the libarchive library
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.
Ubuntu
libarchive vulnerabilities
vendor_ubuntu·2026-04-02·CVSS 5.5
CVE-2025-5916 [MEDIUM] libarchive vulnerabilities
Title: libarchive vulnerabilities
Summary: Several security issues were fixed in libarchive.
It was discovered that libarchive incorrectly handled certain archive
files. An attacker could possibly use this issue to access sensitive
information. This issue only affected Ubuntu 14.04 LTS. (CVE-2019-19221)
It was discovered that libarchive incorrectly handled certain RAR archive
files. If a user or automated system were tricked into processing a
specially crafted RAR archive, an attacker could possibly use this issue to
cause libarchive to crash, resulting in a denial of service, or execute
arbitrary code. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS
and Ubuntu 18.04 LTS. (CVE-2024-20696)
It was discovered that libarchive incorrectly handled certain RAR archive
files. An at
Ubuntu
libarchive vulnerabilities
vendor_ubuntu·2025-06-26·CVSS 7.8
CVE-2025-5915 [HIGH] libarchive vulnerabilities
Title: libarchive vulnerabilities
Summary: Several security issues were fixed in libarchive.
It was discovered that libarchive incorrectly handled certain RAR archive
files. An attacker could possibly use this issue to execute arbitrary
code or cause a denial of service. (CVE-2025-5914)
It was discovered that libarchive incorrectly handled certain RAR archive
files. An attacker could possibly use this issue to read sensitive data
or cause a denial of service. (CVE-2025-5915)
It was discovered that libarchive incorrectly handled certain WARC
archive files. If a user or automated system were tricked into processing
a specially crafted WARC archive, an attacker could use this issue to
cause libarchive to crash, resulting in a denial of service.
(CVE-2025-5916)
It was discovered that liba
Microsoft
Libarchive: off by one error in build_ustar_entry_name() at archive_write_set_format_pax.c
vendor_msrc·2025-06-10·CVSS 2.8
CVE-2025-5917 [LOW] CWE-787 Libarchive: off by one error in build_ustar_entry_name() at archive_write_set_format_pax.c
Libarchive: off by one error in build_ustar_entry_name() at archive_write_set_format_pax.c
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
redhat: redhat
Customer Action Required: Yes
Remediation: CBL-Marin
Red Hat
libarchive: Off by one error in build_ustar_entry_name() at archive_write_set_format_pax.c
vendor_redhat·2025-05-20·CVSS 2.8
CVE-2025-5917 [LOW] CWE-787 libarchive: Off by one error in build_ustar_entry_name() at archive_write_set_format_pax.c
libarchive: Off by one error in build_ustar_entry_name() at archive_write_set_format_pax.c
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.
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 seeming
Debian
CVE-2025-5917: libarchive - A vulnerability has been identified in the libarchive library. This flaw involve...
vendor_debian·2025·CVSS 2.8
CVE-2025-5917 [LOW] CVE-2025-5917: libarchive - A vulnerability has been identified in the libarchive library. This flaw involve...
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.
Scope: local
bookworm: resolved (fixed in 3.6.2-1+deb12u3)
bullseye: resolved (fixed in 3.4.3-2+deb11u3)
forky: resolved (fixed in 3.7.4-4)
sid: resolved (fixed in 3.7.4-4)
trixie: resolved (fixed in 3.7.4-4)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2025-5917 mingw-libarchive: Off by one error in build_ustar_entry_name() at archive_write_set_format_pax.c [fedora-42]
bugzilla·2025-06-09·CVSS 5.0
CVE-2025-5917 [MEDIUM] CVE-2025-5917 mingw-libarchive: Off by one error in build_ustar_entry_name() at archive_write_set_format_pax.c [fedora-42]
CVE-2025-5917 mingw-libarchive: Off by one error in build_ustar_entry_name() at archive_write_set_format_pax.c [fedora-42]
More information about this security flaw is available in the following bug:
https://bugzilla.redhat.com/show_bug.cgi?id=2370874
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.
Discussion:
This message is a reminder that Fedora Linux 42 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 42 on 2026-05-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remai
Bugzilla
CVE-2025-5917 rpi-imager: Off by one error in build_ustar_entry_name() at archive_write_set_format_pax.c [fedora-42]
bugzilla·2025-06-09·CVSS 5.0
CVE-2025-5917 [MEDIUM] CVE-2025-5917 rpi-imager: Off by one error in build_ustar_entry_name() at archive_write_set_format_pax.c [fedora-42]
CVE-2025-5917 rpi-imager: Off by one error in build_ustar_entry_name() at archive_write_set_format_pax.c [fedora-42]
More information about this security flaw is available in the following bug:
https://bugzilla.redhat.com/show_bug.cgi?id=2370874
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.
Discussion:
This message is a reminder that Fedora Linux 42 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 42 on 2026-05-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains ope
2025-06-09
Published