Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker supplies oversized original-filename metadata
-
ExploitVulnerable application passes string to gzip filter API
-
ExecutionUnchecked strcpy() overflows heap buffer at offset 10
-
ImpactHeap corruption triggers process crash (DoS)
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires three simultaneous conditions: (1) the vulnerable application must invoke libarchive's gzip compression filter (archive_write_add_filter_gzip) with an explicitly set original-filename value - this is NOT automatically populated from the file being archived; (2) that original-filename value must be attacker-controlled or derived from untrusted input, which is an application design choice rather than a default; and (3) the value must exceed the remaining space in the gzip header buffer (typically a few hundred bytes above the 10-byte header offset). The CVSS vector additionally requires local access (AV:L) and user interaction (UI:R), meaning a victim application or user must actively trigger the archiving operation. Default bsdtar usage and standard libarchive archive creation workflows that do not set a custom original-filename are entirely unaffected. The CVE description explicitly acknowledges the exploitation scenario is 'marginally plausible.' |
| Impact | The CVSS 2.5 score with vector AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L is an appropriately conservative, low-severity assessment consistent with the exploitation constraints. All signals align: the attack vector is local (AV:L), complexity is high (AC:H) because the marginally plausible scenario requires an application to accept and relay a long, attacker-controlled original-filename to the libarchive API, user interaction is required (UI:R), and the sole impact is limited availability (A:L - a crash, not code execution). There is no confidentiality or integrity impact. No CISA KEV listing exists, no EPSS data was provided in the input (though the low CVSS and non-default trigger suggest it would be negligible), and the referenced PoC gist has not been confirmed as a working weaponized exploit. This is a genuine low-priority maintenance fix rather than an urgent patching emergency for most deployments. |
| Exploit ScenarioDerived | An application that constructs gzip archives from untrusted metadata (e.g., a workflow that reads a user-supplied or third-party-supplied filename and passes it as the GZIP original-filename parameter) would be vulnerable if an attacker can influence that value. The attacker supplies a string longer than the pre-allocated compressed header buffer; the strcpy overflows the heap allocation, causing the process to crash. A PoC gist is publicly referenced at https://gist.github.com/ttuurrnn/1365a4a9b1c3d5826a3a9bbe111f26b8, though this non-default API usage pattern severely limits real-world impact. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 14, 2026
Unchecked strcpy() of the GZIP original-filename header field in libarchive 3.8.x causes a heap-based buffer overflow (CWE-122) in the gzip compression writer, with impact limited to a low-severity application crash. The overflow can only be triggered when a caller explicitly passes an overly long, untrusted original-filename string through the libarchive API - a condition the CVE itself characterizes as marginally plausible, since this field is not derived from archived input data. No active exploitation has been confirmed, and the official CVSS score of 2.5 (Low) with AV:L/AC:H/UI:R accurately reflects the constrained, non-default exploitation path.
RemediationAI
Upgrade to libarchive 3.8.2, which replaces the unbounded strcpy() with a length-checked bounded copy, limits the GZIP original-filename field to the lesser of 32,768 bytes or the remaining space in the compressed header buffer, and discards oversized filenames with an ARCHIVE_WARN return rather than a buffer overflow. The fix is available upstream via PR #2734 at https://github.com/libarchive/libarchive/pull/2734. Applications that never set a gzip original-filename via the libarchive API are not exposed to this code path and require no immediate action. As a compensating control before patching, audit all call sites that invoke archive_write_add_filter_gzip() to ensure any original-filename value is either truncated to a safe length or sourced exclusively from trusted, length-bounded inputs - this eliminates the attack surface without patching but requires application-level code review.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
libarchive is a widely-used C library for reading and writing archive formats (tar, zip, cpio, etc.) and is the backend for the bsdtar utility. The affected code lives in archive_write_add_filter_gzip.c, specifically in archive_compressor_gzip_open(). The GZIP format (RFC 1952) supports an optional FNAME header field storing the original filename of the compressed content. Prior to 3.8.2, the code unconditionally performed strcpy((char*)data->compressed + 10, data->original_filename) into a fixed-size heap-allocated buffer without first validating the length of the source string. The PR #2734 diff confirms the root cause: the fix replaces the raw strcpy with a bounded copy that limits the filename to min(32768, available_buffer_space) bytes and gracefully emits ARCHIVE_WARN if the filename is too long, rather than copying it. Affected CPE: cpe:2.3:a:libarchive:libarchive:*:*:*:*:*:*:*:* (3.8.x series before 3.8.2).
Know when Libarchive gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L
Local access and high complexity reflect the non-default API usage required; impact is crash-only (A:L) with no confidentiality or integrity consequence.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
Lifecycle Timeline
2DescriptionCVE.org
libarchive 3.8.x before 3.8.2 has a strcpy heap-based buffer overflow in the gzip writer via the original-filename field to archive_compressor_gzip_open in archive_write_add_filter_gzip.c, aka GHSA-92wx-p669-8gr9. This relates to bsdtar. Exploitation envisions a marginally plausible scenario in which original-filename is obtained from an untrusted party. (original-filename is not derived from the input data.)
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.
More in Libarchive
View allCVE-2025-5914 is an integer overflow vulnerability in libarchive's archive_read_format_rar_seek_data() function that lea
Libarchive before 3.7.4 allows name out-of-bounds access when a ZIP archive has an empty-name file and mac-ext is enable
The sandboxing code in libarchive 3.2.0 and earlier mishandles hardlink archive entries of non-zero data size, which mig
Stack-based buffer overflow in the parse_device function in archive_read_support_format_mtree.c in libarchive before 3.2
Heap-based buffer overflow in the parse_codes function in archive_read_support_format_rar.c in libarchive before 3.2.1 a
Integer overflow in the read_SubStreamsInfo function in archive_read_support_format_7zip.c in libarchive before 3.2.1 al
Multiple integer overflows in the (1) get_time_t_max and (2) get_time_t_min functions in archive_read_support_format_mtr
Null Pointer Dereference vulnerability in libarchive 3.7.6 and earlier when running program bsdtar in function header_pa
Absolute path traversal vulnerability in bsdcpio in libarchive 3.1.2 and earlier allows remote attackers to write to arb
Integer overflow in the ISO parser in libarchive before 3.2.1 allows remote attackers to cause a denial of service (appl
Heap-based buffer overflow in the zip_read_mac_metadata function in archive_read_support_format_zip.c in libarchive befo
Libarchive v3.6.0 was discovered to contain an out-of-bounds read via the component zipx_lzma_alone_init. Rated medium s
EUVD-2025-210902
GHSA-pqgv-phc2-5p8r
NVD
CVE.org
EPSS
VulDB
Exploit-DB