---
id: CVE-2025-64031
title: >-
  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
summary: >-
  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.…
severity: low
cvss: 2.5
cvssVector: 'CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L'
cwe:
  - CWE-122
  - CWE-120
vendor: libarchive
product: libarchive
affected:
  - libarchive >= 3.8.0 < 3.8.2
patched:
  - hardened_images
published: '2026-09-14'
updated: '2026-09-22'
sourceUpdated: '2026-09-22T19:56:19.073'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-64031'
references:
  - url: 'https://gist.github.com/ttuurrnn/1365a4a9b1c3d5826a3a9bbe111f26b8'
    label: cve@mitre.org
  - url: >-
      https://github.com/libarchive/libarchive/blob/master/libarchive/archive_write_add_filter_gzip.c
    label: cve@mitre.org
  - url: 'https://github.com/libarchive/libarchive/pull/2734'
    label: cve@mitre.org
  - url: 'https://github.com/libarchive/libarchive/pull/2734/commits'
    label: cve@mitre.org
  - url: 'https://github.com/libarchive/libarchive/pull/2734/files'
    label: cve@mitre.org
  - url: 'https://gist.github.com/ttuurrnn/1365a4a9b1c3d5826a3a9bbe111f26b8'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-64031.json
  - url: 'https://access.redhat.com/security/cve/CVE-2025-64031'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2532805'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2025-64031'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-64031'
  - url: 'https://access.redhat.com/errata/RHSA-2026:43818'
tags:
  - nvd
  - cve.org
  - exploit-available
  - csaf
  - vex
  - red-hat
  - score-dispute
epss: 0.00179
epssPercentile: 0.06619
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-09-16T14:22:24.565126Z'
scores:
  nvd: 2.5
  cna: 2.5
  vendor: 4.7
ingestedAt: '2026-09-14T15:23:07.467Z'
---

## Overview

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.)

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **Red Hat VEX** · Moderate · affected: Red Hat OpenShift Container Platform 4 · no fix planned: Red Hat OpenShift Container Platform 4 · updated 2026-09-21 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-64031.json)
- **RHSA-2026:43818** · Red Hat · fixed in: Red Hat Hardened Images · released 2026-07-22 · [advisory](https://access.redhat.com/errata/RHSA-2026:43818)
