Heap-based buffer overflow in libarchive
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
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
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| libarchive | libarchive | 3.8.0 to before 3.8.2 | 3.8.2 | Patch available | CNA |
- 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 ModerateRed 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 →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet: Fix deferred |
| Red Hat Hardened Images | Fixed | RHSA-2026:43818 |
Timeline
- 2026-10-02 Threatist record created from CVE-2025-64031
- 2026-10-03 Alias added: GHSA-pqgv-phc2-5p8r
References
Other 5
- https://github.com/libarchive/libarchive/pull/2734
- https://github.com/libarchive/libarchive/pull/2734/commits
- https://github.com/libarchive/libarchive/pull/2734/files
- https://github.com/libarchive/libarchive/blob/master/libarchive/archive_write_add_filter_gzip.c
- https://gist.github.com/ttuurrnn/1365a4a9b1c3d5826a3a9bbe111f26b8
More libarchive vulnerabilities
- 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
Sources
- CVE-2025-64031 · CVE Program
- CVE-2025-64031 · NVD
- FIRST EPSS
- GHSA-pqgv-phc2-5p8r · GitHub Advisory Database · CC BY 4.0
- CVE-2025-64031 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences