CVE-2025-64031
libarchive 3.8.x before 3.8.2 has a strcpy heap-based buffer …
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.)
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- gist.github.com/ttuurrnn/1365a4a9b1c3d5826a3a9bbe111f26b8
- github.com/libarchive/libarchive/blob/master/libarchive/archive_write_add_filter_gzip.c
- github.com/libarchive/libarchive/pull/2734
- github.com/libarchive/libarchive/pull/2734/commits
- github.com/libarchive/libarchive/pull/2734/files
- nvd.nist.gov/vuln/detail/CVE-2025-64031
- cve.org/CVERecord?id=CVE-2025-64031
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.