# CVE-2025-64031: 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 archivecompress…

- Severity: Low 2.5 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-14T00:00:00.000Z
- Modified: 2026-10-14T19:10:00.297Z
- Weaknesses: CWE-122
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- libarchive libarchive: from 3.8.0 before 3.8.2

## References

- <https://gist.github.com/ttuurrnn/1365a4a9b1c3d5826a3a9bbe111f26b8> (exploit)
- <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>

## Sources

- CVE List: [CVE-2025-64031](https://www.cve.org/CVERecord?id=CVE-2025-64031), CVE Terms of Use, modified 2026-09-16
- NVD: [CVE-2025-64031](https://nvd.nist.gov/vuln/detail/CVE-2025-64031), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2025-64031 · Whole record: https://cve.day/CVE-2025-64031.json · Rebuilt by cve.day 2026-11-25T22:59:12.499Z
