Skip to content
RedCVE

CVE-2025-64031Libarchive heap-based buffer overflow

libarchivePublished:

CVSS score

2.5

Low

CVSS 3.1 from mitre.org

Exploit probability (EPSS)

0.16%

0.16% chance of exploitation in the next 30 days, higher than 5.19% of all CVEs.

CISA KEV

Not in KEV

No confirmed exploitation reported by CISA so far.

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

Source: NVD · CNA: cve@mitre.org

How to fix it, step by step

  1. Check whether you're affected

    Find every system running Libarchive and compare its version with the affected versions.

  2. Update to a fixed version

    • Update Libarchive to 3.8.2 or later.
  3. Confirm the fix

    Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.

Was this useful?

How it can be exploited

Attack vector
Local
Attack complexity
High
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L

Affected products

Affected productsVersions
libarchive Libarchive≥ 3.8.0, < 3.8.2

Weakness

Timeline

  1. Published:
  2. Last modified:

Frequently asked questions

Is CVE-2025-64031 being exploited?

There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.2% probability of exploitation in the next 30 days.

What is the CVSS score of CVE-2025-64031?

CVE-2025-64031 has a CVSS 3.1 base score of 2.5 (low).

Which versions are affected?

Libarchive Libarchive (≥ 3.8.0, < 3.8.2)

Is there a patch for CVE-2025-64031?

The official record links to vendor advisories or patches; see “What to do” above.

References

Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.