# CVE-2019-19221: In Libarchive 3.4.0, archivewstringappendfrommbs in archivestring.c has an out-of-bounds read because of an incorrect mbrtowc or mbtowc cal…

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/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): 0.66%, higher than 52% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2019-11-21T00:00:00.000Z
- Modified: 2026-06-17T02:26:18.910Z
- Weaknesses: CWE-125
- Assigned by: mitre

## Description

In Libarchive 3.4.0, archive_wstring_append_from_mbs in archive_string.c has an out-of-bounds read because of an incorrect mbrtowc or mbtowc call. For example, bsdtar crashes via a crafted archive.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- libarchive libarchive: 3.4.0
- debian debian_linux: 9.0; 10.0
- fedoraproject fedora: 32
- canonical ubuntu_linux: 16.04; 18.04; 19.10

## Every score

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

## References

- <https://github.com/libarchive/libarchive/issues/1276> (exploit, issue-tracking, third-party-advisory)
- <https://github.com/libarchive/libarchive/commit/22b1db9d46654afc6f0c28f90af8cdc84a199f41> (patch, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RHFV25AVTASTWZRF3KTSL357AQ6TYHM4/> (vendor-advisory)
- <https://usn.ubuntu.com/4293-1/> (patch, third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/04/msg00020.html> (mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/11/msg00030.html> (mailing-list, third-party-advisory)

## Sources

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

---

Page: https://cve.day/CVE-2019-19221 · Whole record: https://cve.day/CVE-2019-19221.json · Rebuilt by cve.day 2026-11-25T22:57:48.146Z
