Description
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.)
Published: 2026-09-14
Score: 2.5 Low
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service via heap-based buffer overflow
Action: Update Library
AI Analysis

Impact

A strcpy heap-based buffer overflow exists in libarchive’s gzip writer, triggered by the original‑filename field used in archive_compressor_gzip_open. The overflow can corrupt the heap, potentially leading to a memory corruption. The flaw exists.x before 3.8.2 and directly relates to bsdtar. The vulnerability is confined to processes that load the affected library and invoke the gzip compression path, so impact is local but can is identified as CWE-120 and CWE-122.

Affected Systems

The libc archive component, libarchive, version 3.8.x prior to 3.8.2 is affected. Users of this library, including applications that wrap or use libarchive for gzip archive creation (for example bsdtar), should verify the version and consider upgrading.

Risk and Exploitability

The vulnerability carries a CVSS score of 2.5, indicating low overall severity, and has an EPSS score of < 1%, indicating a marginally plausible exploitation scenario. It is not listed in CISA’s KEV catalog. The likely attack vector involves an attacker supplying a crafted original‑filename field to a process that uses libarchive’s gzip writer. Because the original‑filename is not derived from other input data, the scenario requires the attacker to control the filename supplied by the application or the environment. Low CVSS and limited exploitation probability mitigate immediate risk; nevertheless, the presence of a heap‑based overwrite warrants remediation.

Generated by OpenCVE AI on September 15, 2026 at 15:48 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade libarchive to version 3.8.2 or later, which contains a fixed strcpy guard in the gzip writer.
  • If upgrading is not immediately possible, avoid passing untrusted data into the original‑filename field or sanitize the filename string before use to prevent overflow.
  • For critical environments where the library cannot be updated, consider disabling the gzip writer or configuring the application to omit the original‑filename altogether.

Generated by OpenCVE AI on September 15, 2026 at 15:48 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 16 Sep 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 14 Sep 2026 12:15:00 +0000

Type Values Removed Values Added
Title Heap Overflow in libarchive Gzip Writer via Original-Filename libarchive: libarchive: Denial of Service via heap-based buffer overflow in gzip writer
Weaknesses CWE-120
References
Metrics threat_severity

None

threat_severity

Moderate


Mon, 14 Sep 2026 12:00:00 +0000

Type Values Removed Values Added
Title Heap Overflow in libarchive Gzip Writer via Original-Filename

Mon, 14 Sep 2026 00:45:00 +0000

Type Values Removed Values Added
Description 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.)
First Time appeared Libarchive
Libarchive libarchive
Weaknesses CWE-122
CPEs cpe:2.3:a:libarchive:libarchive:*:*:*:*:*:*:*:*
Vendors & Products Libarchive
Libarchive libarchive
References
Metrics cvssV3_1

{'score': 2.5, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L'}


Subscriptions

Libarchive Libarchive
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-09-16T14:22:52.108Z

Reserved: 2025-10-27T00:00:00.000Z

Link: CVE-2025-64031

cve-icon Vulnrichment

Updated: 2026-09-16T14:22:45.315Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-09-14T01:16:26.190

Modified: 2026-09-22T19:56:19.073

Link: CVE-2025-64031

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-14T00:00:00Z

Links: CVE-2025-64031 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-15T16:00:17Z

Weaknesses
  • CWE-120

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

  • CWE-122

    Heap-based Buffer Overflow