CVE-2019-19221
In Libarchive 3.4.0, archive_wstring_append_from_mbs in archive_string.c has an out-of-bounds...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
5.5
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.
- Record
CVE-2019-19221- 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 - CVSS 2.0
- 2.1 Low
AV:L/AC:L/Au:N/C:N/I:N/A:P - Weakness
- CWE-125
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2019-19221- Updated
- 2026-11-02
EUVDEUVD-2019-8847 No score
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.
- Record
EUVD-2019-8847- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-m55v-6hqc-x3jh
5.5
In Libarchive 3.4.0, archive_wstring_append_from_mbs in archive_string.c has an out-of-bounds...
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.
- Record
GHSA-m55v-6hqc-x3jh- 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 - Weakness
- CWE-125
- Updated
- 2026-11-02
OSVALPINE-CVE-2019-19221
5.5
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.
- Record
ALPINE-CVE-2019-19221- 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 - Updated
- 2026-11-02
OSVBELL-CVE-2019-19221
5.5
CVE-2019-19221 does not affect BellSoft software
- Record
BELL-CVE-2019-19221- 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 - Updated
- 2026-11-02
Show 10 moreShow less
OSV
5.5
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.
- Record
CVE-2019-19221- 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 - Updated
- 2026-11-02
OSVDEBIAN-CVE-2019-19221
5.5
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.
- Record
DEBIAN-CVE-2019-19221- 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 - Updated
- 2026-11-02
OSVRHSA-2020:4443
6.5
Red Hat Security Advisory: libarchive security update
- Record
RHSA-2020:4443- 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 - Updated
- 2026-11-02
OSVUBUNTU-CVE-2019-19221
5.5
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.
- Record
UBUNTU-CVE-2019-19221- 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 - Updated
- 2026-11-02
OSVALSA-2020:4443 No score
Moderate: libarchive security update
The libarchive programming library can create and read several different streaming archive formats, including GNU tar, cpio, and ISO 9660 CD-ROM images. Libarchive is used notably in the bsdtar utility, scripting language bindings such as python-libarchive, and several popular desktop file managers.
Security Fix(es):
- libarchive: out-of-bounds read in archive_wstring_append_from_mbs in archive_string.c (CVE-2019-19221)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
Additional Changes:
For detailed information on changes in this release, see the AlmaLinux Release Notes linked from the References section.
- Record
ALSA-2020:4443- Updated
- 2026-11-02
OSVMGASA-2020-0127 No score
Updated libarchive packages fix security vulnerabilities
The updated packages fix several issues including security vulnerabilities:
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. (CVE-2019-19221)
archive_read_support_format_rar5.c in libarchive before 3.4.2 attempts to unpack a RAR5 file with an invalid or corrupted header (such as a header size of zero), leading to a SIGSEGV or possibly unspecified other impact. (CVE-2020-9308)
- Record
MGASA-2020-0127- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10925-1 No score
bsdtar-3.5.1-1.5 on GA media
These are all security issues fixed in the bsdtar-3.5.1-1.5 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10925-1- Updated
- 2026-11-02
OSVSUSE-SU-2021:3722-1 No score
Security update for libarchive
This update for libarchive fixes the following issues:
-
CVE-2019-19221: Fixed out-of-bounds read caused by incorrect mbrtowc or mbtowc call (bsc#1157569)
-
backporting symlink security fixes from 3.5.2:
- extracting with ACLs modifies ACLs of target (bsc#1192425)
- modifies file flags of target (bsc#1192426)
- avoid follow on fixup entries (bsc#1192427)
- Record
SUSE-SU-2021:3722-1- Updated
- 2026-11-02
OSVUSN-4293-1 No score
libarchive vulnerabilities
It was discovered that libarchive incorrectly handled certain archive files. An attacker could possibly use this issue to access sensitive information. (CVE-2019-19221)
It was discovered that libarchive incorrectly handled certain archive files. An attacker could possibly use this issue to cause a crash resulting in a denial of service or possibly unspecified other impact. This issue only affected Ubuntu 19.10. (CVE-2020-9308)
- Record
USN-4293-1- Updated
- 2026-11-02
OSVUSN-8147-1 No score
libarchive vulnerabilities
It was discovered that libarchive incorrectly handled certain archive files. An attacker could possibly use this issue to access sensitive information. This issue only affected Ubuntu 14.04 LTS. (CVE-2019-19221)
It was discovered that libarchive incorrectly handled certain RAR archive files. If a user or automated system were tricked into processing a specially crafted RAR archive, an attacker could possibly use this issue to cause libarchive to crash, resulting in a denial of service, or execute arbitrary code. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS and Ubuntu 18.04 LTS. (CVE-2024-20696)
It was discovered that libarchive incorrectly handled certain RAR archive files. An attacker could possibly use this issue to execute arbitrary code or cause a denial of service. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS and Ubuntu 20.04 LTS. (CVE-2025-5914)
It was discovered that libarchive incorrectly handled certain WARC archive files. If a user or automated system were tricked into processing a specially crafted WARC archive, an attacker could possibly use this issue to cause libarchive to crash, resulting in a denial of service. This issue only affected Ubuntu 18.04 LTS and Ubuntu 20.04 LTS. (CVE-2025-5916)
It was discovered that libarchive incorrectly handled certain file names when handling prefixes and suffixes. An attacker could possibly use this issue to cause libarchive to crash, resulting in a denial of service. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS and Ubuntu 20.04 LTS. (CVE-2025-5917)
It was discovered that libarchive could read past the end of file streams when processing input to bsdtar. An attacker could possibly use this issue to cause memory corruption or a denial of service. (CVE-2025-5918)
It was discovered that libarchive incorrectly handled certain TAR archive files. If a user or automated system were tricked into processing a specially crafted TAR archive, an attacker could possibly use this issue to cause libarchive to crash, resulting in a denial of service, or execute arbitrary code. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS and Ubuntu 18.04 LTS. (CVE-2025-25724)
HyungJung Joo discovered that libarchive did not properly limit memory allocation when processing substitution rules in bsdtar. An attacker could possibly use this issue to cause excessive memory consumption, leading to a denial of service. (CVE-2025-60753)
Elhanan Haenel discovered that libarchive could enter an infinite loop when processing crafted RAR5 archives. An attacker could possibly use this issue to cause excessive CPU consumption, leading to a denial of service. This issue only affected Ubuntu 20.04 LTS, Ubuntu 22.04 LTS, Ubuntu 24.04 LTS and Ubuntu 25.10. (CVE-2026-4111)
- Record
USN-8147-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
libarchiveAlpine:v3.13 |
before 3.4.2-r0 | 3.4.2-r0 |
libarchiveAlpine:v3.14 |
before 3.4.2-r0 | 3.4.2-r0 |
libarchiveAlpine:v3.15 |
before 3.4.2-r0 | 3.4.2-r0 |
libarchiveAlpine:v3.16 |
before 3.4.2-r0 | 3.4.2-r0 |
libarchiveAlpine:v3.17 |
before 3.4.2-r0 | 3.4.2-r0 |
libarchiveAlpine:v3.18 |
before 3.4.2-r0 | 3.4.2-r0 |
libarchiveAlpine:v3.19 |
before 3.4.2-r0 | 3.4.2-r0 |
libarchiveAlpine:v3.20 |
before 3.4.2-r0 | 3.4.2-r0 |
libarchiveAlpine:v3.21 |
before 3.4.2-r0 | 3.4.2-r0 |
libarchiveAlpine:v3.22 |
before 3.4.2-r0 | 3.4.2-r0 |
Show 36 moreShow less
| Package | Affected | Fixed |
|---|---|---|
libarchiveAlpine:v3.23 |
before 3.4.2-r0 | 3.4.2-r0 |
libarchiveAlpine:v3.24 |
before 3.4.2-r0 | 3.4.2-r0 |
libarchive-develAlmaLinux:8 |
before 3.3.2-9.el8 | 3.3.2-9.el8 |
libarchiveDebian:12 |
before 3.4.2-1 | 3.4.2-1 |
libarchiveDebian:13 |
before 3.4.2-1 | 3.4.2-1 |
libarchiveDebian:14 |
before 3.4.2-1 | 3.4.2-1 |
libarchiveDebian:9 From an advisory covering 3 CVEs |
before 3.2.2-2+deb9u3, plus listed versions 3.2.2-23.2.2-2+deb9u13.2.2-2+deb9u2 |
3.2.2-2+deb9u3 |
libarchiveDebian:10 From an advisory covering 3 CVEs |
before 3.3.3-4+deb10u2, plus listed versions 3.3.3-43.3.3-4+deb10u1 |
3.3.3-4+deb10u2 |
libarchiveMageia:7 From an advisory covering 2 CVEs |
before 3.4.0-1.1.mga7 | 3.4.0-1.1.mga7 |
bsdcat-debuginfoRed Hat:enterprise_linux:8::baseos |
before 0:3.3.2-9.el8 | 0:3.3.2-9.el8 |
bsdcpio-debuginfoRed Hat:enterprise_linux:8::baseos |
before 0:3.3.2-9.el8 | 0:3.3.2-9.el8 |
bsdtarRed Hat:enterprise_linux:8::baseos |
before 0:3.3.2-9.el8 | 0:3.3.2-9.el8 |
bsdtar-debuginfoRed Hat:enterprise_linux:8::baseos |
before 0:3.3.2-9.el8 | 0:3.3.2-9.el8 |
libarchiveRed Hat:enterprise_linux:8::baseos |
before 0:3.3.2-9.el8 | 0:3.3.2-9.el8 |
libarchive-debuginfoRed Hat:enterprise_linux:8::baseos |
before 0:3.3.2-9.el8 | 0:3.3.2-9.el8 |
libarchive-debugsourceRed Hat:enterprise_linux:8::baseos |
before 0:3.3.2-9.el8 | 0:3.3.2-9.el8 |
bsdcat-debuginfoRed Hat:enterprise_linux:8::crb |
before 0:3.3.2-9.el8 | 0:3.3.2-9.el8 |
bsdcpio-debuginfoRed Hat:enterprise_linux:8::crb |
before 0:3.3.2-9.el8 | 0:3.3.2-9.el8 |
bsdtar-debuginfoRed Hat:enterprise_linux:8::crb |
before 0:3.3.2-9.el8 | 0:3.3.2-9.el8 |
libarchive-debuginfoRed Hat:enterprise_linux:8::crb |
before 0:3.3.2-9.el8 | 0:3.3.2-9.el8 |
libarchive-debugsourceRed Hat:enterprise_linux:8::crb |
before 0:3.3.2-9.el8 | 0:3.3.2-9.el8 |
libarchive-develRed Hat:enterprise_linux:8::crb |
before 0:3.3.2-9.el8 | 0:3.3.2-9.el8 |
libarchiveSUSE:Linux Enterprise Software Development Kit 12 SP5 |
before 3.3.3-32.5.1 | 3.3.3-32.5.1 |
libarchiveSUSE:Linux Enterprise Server 12 SP5 |
before 3.3.3-32.5.1 | 3.3.3-32.5.1 |
libarchiveSUSE:Linux Enterprise Server for SAP Applications 12 SP5 |
before 3.3.3-32.5.1 | 3.3.3-32.5.1 |
libarchiveUbuntu:Pro:14.04:LTS |
before 3.1.2-7ubuntu2.8+esm4, plus listed versions 3.1.2-5ubuntu13.1.2-7ubuntu13.1.2-7ubuntu23.1.2-7ubuntu2.13.1.2-7ubuntu2.2 Show 7 moreShow less3.1.2-7ubuntu2.33.1.2-7ubuntu2.43.1.2-7ubuntu2.63.1.2-7ubuntu2.73.1.2-7ubuntu2.83.1.2-7ubuntu2.8+esm13.1.2-7ubuntu2.8+esm3 |
3.1.2-7ubuntu2.8+esm4 |
libarchiveUbuntu:16.04:LTS |
before 3.1.2-11ubuntu0.16.04.8, plus listed versions 3.1.2-11build13.1.2-11ubuntu0.16.04.13.1.2-11ubuntu0.16.04.23.1.2-11ubuntu0.16.04.33.1.2-11ubuntu0.16.04.43.1.2-11ubuntu0.16.04.53.1.2-11ubuntu0.16.04.63.1.2-11ubuntu0.16.04.7 |
3.1.2-11ubuntu0.16.04.8 |
libarchiveUbuntu:18.04:LTS |
before 3.2.2-3.1ubuntu0.6, plus listed versions 3.2.2-3.13.2.2-3.1ubuntu0.13.2.2-3.1ubuntu0.23.2.2-3.1ubuntu0.33.2.2-3.1ubuntu0.43.2.2-3.1ubuntu0.5 |
3.2.2-3.1ubuntu0.6 |
libarchiveUbuntu:20.04:LTS |
before 3.4.0-1ubuntu2, plus listed versions 3.4.0-13.4.0-1build1 |
3.4.0-1ubuntu2 |
libarchiveUbuntu:Pro:16.04:LTS |
before 3.1.2-11ubuntu0.16.04.8+esm2, plus listed versions 3.1.2-11build13.1.2-11ubuntu0.16.04.13.1.2-11ubuntu0.16.04.23.1.2-11ubuntu0.16.04.33.1.2-11ubuntu0.16.04.4 Show 5 moreShow less3.1.2-11ubuntu0.16.04.53.1.2-11ubuntu0.16.04.63.1.2-11ubuntu0.16.04.73.1.2-11ubuntu0.16.04.83.1.2-11ubuntu0.16.04.8+esm1 |
3.1.2-11ubuntu0.16.04.8+esm2 |
libarchiveUbuntu:Pro:18.04:LTS |
before 3.2.2-3.1ubuntu0.7+esm2, plus listed versions 3.2.2-3.13.2.2-3.1ubuntu0.13.2.2-3.1ubuntu0.23.2.2-3.1ubuntu0.33.2.2-3.1ubuntu0.4 Show 4 moreShow less3.2.2-3.1ubuntu0.53.2.2-3.1ubuntu0.63.2.2-3.1ubuntu0.73.2.2-3.1ubuntu0.7+esm1 |
3.2.2-3.1ubuntu0.7+esm2 |
libarchiveUbuntu:Pro:20.04:LTS |
before 3.4.0-2ubuntu1.5+esm1, plus listed versions 3.4.0-13.4.0-1build13.4.0-1ubuntu23.4.0-2ubuntu13.4.0-2ubuntu1.1 Show 4 moreShow less3.4.0-2ubuntu1.23.4.0-2ubuntu1.33.4.0-2ubuntu1.43.4.0-2ubuntu1.5 |
3.4.0-2ubuntu1.5+esm1 |
libarchiveUbuntu:22.04:LTS |
before 3.6.0-1ubuntu1.6, plus listed versions 3.4.3-23.4.3-2build13.5.2-13.5.2-1ubuntu13.6.0-1ubuntu1 Show 5 moreShow less3.6.0-1ubuntu1.13.6.0-1ubuntu1.23.6.0-1ubuntu1.33.6.0-1ubuntu1.43.6.0-1ubuntu1.5 |
3.6.0-1ubuntu1.6 |
libarchiveUbuntu:24.04:LTS |
before 3.7.2-2ubuntu0.6, plus listed versions 3.6.2-1ubuntu13.7.2-1ubuntu13.7.2-1ubuntu23.7.2-1.1ubuntu23.7.2-2 Show 5 moreShow less3.7.2-2ubuntu0.13.7.2-2ubuntu0.23.7.2-2ubuntu0.33.7.2-2ubuntu0.43.7.2-2ubuntu0.5 |
3.7.2-2ubuntu0.6 |
libarchiveUbuntu:25.10 |
before 3.7.7-0ubuntu3.1, plus listed versions 3.7.7-0ubuntu23.7.7-0ubuntu2.13.7.7-0ubuntu2.23.7.7-0ubuntu3 |
3.7.7-0ubuntu3.1 |
bsdtaropenSUSE:Tumbleweed From an advisory covering 12 CVEs |
before 3.5.1-1.5 | 3.5.1-1.5 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2019-19221 is a medium vulnerability (CVSS 5.5) in Libarchive, published November 21, 2019. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.66%, the 51st percentile. Fixed in libarchive 3.4.2-r0.
References
github.com/libarchive/libarchive/issues/1276
github.com/libarchive/libarchive/commit/22b1db9d46654afc6f0c28f90af8cdc84a199f41
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RHFV25AVTASTWZRF3KTSL357AQ6TYHM4
usn.ubuntu.com/4293-1
lists.debian.org/debian-lts-announce/2022/04/msg00020.html
lists.debian.org/debian-lts-announce/2022/11/msg00030.html
Show 45 moreShow less
nvd.nist.gov/vuln/detail/CVE-2019-19221
lists.fedoraproject.org/archives/list/[email protected]/message/RHFV25AVTASTWZRF3KTSL357AQ6TYHM4
github.com/advisories/GHSA-m55v-6hqc-x3jh
security.alpinelinux.org/vuln/CVE-2019-19221
vulners.com/cve/CVE-2019-19221
docs.bell-sw.com/security/cves/CVE-2019-19221
security-tracker.debian.org/tracker/CVE-2019-19221
advisories.mageia.org/MGASA-2020-0127.html
bugs.mageia.org/show_bug.cgi?id=26290
access.redhat.com/errata/RHSA-2020:4443
access.redhat.com/security/updates/classification
access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/8.3_release_notes
bugzilla.redhat.com/show_bug.cgi?id=1801635
security.access.redhat.com/data/csaf/v2/advisories/2020/rhsa-2020_4443.json
access.redhat.com/security/cve/CVE-2019-19221
cve.org/CVERecord?id=CVE-2019-19221
suse.com/support/update/announcement/2021/suse-su-20213722-1
bugzilla.suse.com/1157569
bugzilla.suse.com/1192425
bugzilla.suse.com/1192426
bugzilla.suse.com/1192427
suse.com/security/cve/CVE-2019-19221
ubuntu.com/security/CVE-2019-19221
ubuntu.com/security/notices/USN-4293-1
ubuntu.com/security/notices/USN-8147-1
ubuntu.com/security/CVE-2020-9308
ubuntu.com/security/CVE-2024-20696
ubuntu.com/security/CVE-2025-5914
ubuntu.com/security/CVE-2025-5916
ubuntu.com/security/CVE-2025-5917
ubuntu.com/security/CVE-2025-5918
ubuntu.com/security/CVE-2025-25724
ubuntu.com/security/CVE-2025-60753
ubuntu.com/security/CVE-2026-4111
suse.com/security/cve/CVE-2006-5680
suse.com/security/cve/CVE-2007-3641
suse.com/security/cve/CVE-2017-14166
suse.com/security/cve/CVE-2017-14501
suse.com/security/cve/CVE-2018-1000877
suse.com/security/cve/CVE-2018-1000878
suse.com/security/cve/CVE-2018-1000879
suse.com/security/cve/CVE-2018-1000880
suse.com/security/cve/CVE-2019-1000019
suse.com/security/cve/CVE-2019-1000020
suse.com/security/cve/CVE-2019-18408