Vulnerability · Published Sep 14, 2026 · Assigned by mitre
CVE-2025-64031
Low 2.5
In plain English
A low-severity heap buffer overflow in libarchive from libarchive. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 5% of all known vulnerabilities).
Official 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.)
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu:22.04:LTS | libarchive | no fix listed | UBUNTU-CVE-2025-64031 |
| Ubuntu:24.04:LTS | libarchive | no fix listed | UBUNTU-CVE-2025-64031 |
| Ubuntu:26.04:LTS | libarchive | no fix listed | UBUNTU-CVE-2025-64031 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| libarchive | libarchive | 3.8.0 – before 3.8.2 |
Weakness: CWE-122 · Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L
References
- 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