Read the docs
TI-2025-39512 Aliases CVE-2025-64031GHSA-pqgv-phc2-5p8r

Heap-based buffer overflow in libarchive

Priority MEDIUM 46CWE-122Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
Required
Attack complexity
High
Impact type
—
Confidentiality · integrity · availability
None · None · Low
Fix status
Partial Red Hat: 1 fixed, 1 without a fix

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat.

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

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.0016 5th percentileScored 2026-11-07
Fix Partial libarchive (libarchive): 3.8.2Red Hat: 1 advisoryRed Hat: 1 fixed, 1 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
libarchivelibarchive3.8.0 to before 3.8.23.8.2Patch availableCNA
  • libarchive Vendorlibarchive Affected 3.8.0 to before 3.8.2 Fixed in 3.8.2 Patch available CNA

Remediation

  • Fix · CNA libarchive (libarchive) Fixed in 3.8.2

Red Hat 1 advisory

  • RHSA-2026:43818 Released 2026-07-22 · Red Hat rating Moderate
    Red Hat Hardened Images RPMs Security Update
    • Red Hat Hardened Images bsdcat-3.8.8-3.1.hum1@aarch64, bsdcat-3.8.8-3.1.hum1@x86_64, bsdcpio-3.8.8-3.1.hum1@aarch64 +10

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat OpenShift Container Platform 4AffectedNo fix yet: Fix deferred
Red Hat Hardened ImagesFixed RHSA-2026:43818

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-64031
  2. 2026-10-03 Alias added: GHSA-pqgv-phc2-5p8r

References

  • TI-2024-17342 Libarchive Remote Code Execution Vulnerability CVSS 3.1HIGH 7.8
  • TI-2024-24911 Libarchive before 3.7.4 allows name out-of-bounds access when a ZIP archive has an… CVSS 3.1CRITICAL 9.1
  • TI-2025-05340 Libarchive: double free at archive_read_format_rar_seek_data() in archive_read_support_format_rar.c CVSS 3.1HIGH 7.8
  • TI-2024-32437 Null Pointer Dereference vulnerability in libarchive 3.7.6 and earlier when running… CVSS 3.1HIGH 7.5
  • TI-2025-37810 An issue was discovered in libarchive bsdtar before version 3.8.1 in function… CVSS 3.1MEDIUM 5.5
  • TI-2025-01402 libarchive bsdunzip.c list null pointer dereference CVSS 4.0MEDIUM 4.8
See all 77 →

Sources