CVE-2019-19221: Libarchive - Buffer Overflow
- Cve: CVE-2019-19221
- Name: Libarchive - Buffer Overflow
- 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.
- Impact: Attackers can cause application crashes or potential arbitrary code execution through crafted archives.
- Remediation: Update to the latest version of Libarchive where this issue is fixed.
- Vulnerability type: buffer_overflow
- Vulnerability impact: denial_of_service, remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.5
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- Epss score: 0.00656
- Epss percentile: 0.52354
- Assignee: [email protected]
- Published at: 2019-11-21T23:15:13Z
- Age in days: 2560
- Modified at: 2026-06-17T02:26:18Z
- Patch available: yes
- Public exploits total: 1
- References total: 6
- Products total: 4
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2019-19221
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-125 | Out-of-bounds Read |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/libarchive/libarchive/issues/1276 | nvd | 2019-11-21 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/libarchive/libarchive/commit/22b1db9d46654afc6f0c28f90af8cdc84a199f41 | Patch, Third Party Advisory |
| https://usn.ubuntu.com/4293-1/ | Patch, Third Party Advisory |
| https://github.com/libarchive/libarchive/issues/1276 | Exploit, Issue Tracking, Third Party 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 |
| https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RHFV25AVTASTWZRF3KTSL357AQ6TYHM4/ |
Products
Same in every row:
- Platform bound: no
- Sources: nvd
| Product | Affected | Url |
|---|---|---|
| libarchive:libarchive | = 3.4.0 | /v1/products/libarchive/libarchive |
| debian:debian_linux | = 10.0, = 9.0 | /v1/products/debian/debian_linux |
| fedoraproject:fedora | = 32 | /v1/products/fedoraproject/fedora |
| canonical:ubuntu_linux | = 19.10, = 18.04, = 16.04 | /v1/products/canonical/ubuntu_linux |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| libarchive/libarchive | commit, fix, issues | yes | /v1/repositories/libarchive/libarchive |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2019-11-21
- Exposed hosts: 21216412
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports