# CVE-2020-21674: Heap-based buffer overflow in archivestringappendfromwcs() (archivestring.c) in libarchive-3.4.1dev allows remote attackers to cause a deni…

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- 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): 2.08%, higher than 82% of CVEs (2026-12-01)
- Published: 2020-10-15T14:59:02.000Z
- Modified: 2026-06-17T03:03:51.130Z
- Weaknesses: CWE-787
- Assigned by: mitre

## Description

Heap-based buffer overflow in archive_string_append_from_wcs() (archive_string.c) in libarchive-3.4.1dev allows remote attackers to cause a denial of service (out-of-bounds write in heap memory resulting into a crash) via a crafted archive file. NOTE: this only affects users who downloaded the development code from GitHub. Users of the product's official releases are unaffected.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- libarchive libarchive: 3.4.1

## Every score

- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/libarchive/libarchive/issues/1298> (third-party-advisory)
- <https://github.com/libarchive/libarchive/commit/4f085eea879e2be745f4d9bf57e8513ae48157f4> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2020-21674](https://www.cve.org/CVERecord?id=CVE-2020-21674), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-21674](https://nvd.nist.gov/vuln/detail/CVE-2020-21674), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-21674 · Whole record: https://cve.day/CVE-2020-21674.json · Rebuilt by cve.day 2026-11-25T22:57:55.171Z
