{"id":"CVE-2025-5917","title":"A vulnerability has been identified in the libarchive library","summary":"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…","severity":"low","cvss":2.8,"cvssVector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L","cwe":["CWE-787"],"vendor":"libarchive","product":"libarchive","affected":["libarchive < 3.8.0","openshift_container_platform = 4.0","enterprise_linux = 6.0","enterprise_linux = 7.0","enterprise_linux = 8.0","enterprise_linux = 9.0","enterprise_linux = 10.0"],"patched":["libarchive 3.8.0"],"published":"2025-06-09","updated":"2026-06-25","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2025-5917","references":[{"url":"https://access.redhat.com/security/cve/CVE-2025-5917","label":"secalert@redhat.com"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2370874","label":"secalert@redhat.com"},{"url":"https://github.com/libarchive/libarchive/pull/2588","label":"secalert@redhat.com"},{"url":"https://github.com/libarchive/libarchive/releases/tag/v3.8.0","label":"secalert@redhat.com"}],"tags":["nvd"],"epss":0.00197,"epssPercentile":0.08368,"ingestedAt":"2026-06-29T13:24:34.360Z","slug":"CVE-2025-5917","body":"## Overview\n\nA 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.\n\n## Affected\n\n- `libarchive < 3.8.0`\n- `openshift_container_platform = 4.0`\n- `enterprise_linux = 6.0`\n- `enterprise_linux = 7.0`\n- `enterprise_linux = 8.0`\n- `enterprise_linux = 9.0`\n- `enterprise_linux = 10.0`\n\n## Remediation\n\nUpgrade past the affected range:\n\n- `libarchive 3.8.0`","depth":"sunlit","depthScore":15,"depthScoreParts":{"impact":15.4,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}