Every CVE Search/ Get API key

CVE-2019-19221

In Libarchive 3.4.0, archive_wstring_append_from_mbs in archive_string.c has an out-of-bounds...

5.5 MediumFix available

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

0.66%Down 0.4 points since Apr 14, 2021
90%50%10%1%

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 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.0
2.1 LowAV: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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

Affected packages
PackageAffectedFixed
libarchive
Alpine:v3.13
before 3.4.2-r0
3.4.2-r0
libarchive
Alpine:v3.14
before 3.4.2-r0
3.4.2-r0
libarchive
Alpine:v3.15
before 3.4.2-r0
3.4.2-r0
libarchive
Alpine:v3.16
before 3.4.2-r0
3.4.2-r0
libarchive
Alpine:v3.17
before 3.4.2-r0
3.4.2-r0
libarchive
Alpine:v3.18
before 3.4.2-r0
3.4.2-r0
libarchive
Alpine:v3.19
before 3.4.2-r0
3.4.2-r0
libarchive
Alpine:v3.20
before 3.4.2-r0
3.4.2-r0
libarchive
Alpine:v3.21
before 3.4.2-r0
3.4.2-r0
libarchive
Alpine:v3.22
before 3.4.2-r0
3.4.2-r0
Show 36 moreShow less
Affected packages
PackageAffectedFixed
libarchive
Alpine:v3.23
before 3.4.2-r0
3.4.2-r0
libarchive
Alpine:v3.24
before 3.4.2-r0
3.4.2-r0
libarchive-devel
AlmaLinux:8
before 3.3.2-9.el8
3.3.2-9.el8
libarchive
Debian:12
before 3.4.2-1
3.4.2-1
libarchive
Debian:13
before 3.4.2-1
3.4.2-1
libarchive
Debian:14
before 3.4.2-1
3.4.2-1
libarchive
Debian: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
libarchive
Debian: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
libarchive
Mageia:7
From an advisory covering 2 CVEs
before 3.4.0-1.1.mga7
3.4.0-1.1.mga7
bsdcat-debuginfo
Red Hat:enterprise_linux:8::baseos
before 0:3.3.2-9.el8
0:3.3.2-9.el8
bsdcpio-debuginfo
Red Hat:enterprise_linux:8::baseos
before 0:3.3.2-9.el8
0:3.3.2-9.el8
bsdtar
Red Hat:enterprise_linux:8::baseos
before 0:3.3.2-9.el8
0:3.3.2-9.el8
bsdtar-debuginfo
Red Hat:enterprise_linux:8::baseos
before 0:3.3.2-9.el8
0:3.3.2-9.el8
libarchive
Red Hat:enterprise_linux:8::baseos
before 0:3.3.2-9.el8
0:3.3.2-9.el8
libarchive-debuginfo
Red Hat:enterprise_linux:8::baseos
before 0:3.3.2-9.el8
0:3.3.2-9.el8
libarchive-debugsource
Red Hat:enterprise_linux:8::baseos
before 0:3.3.2-9.el8
0:3.3.2-9.el8
bsdcat-debuginfo
Red Hat:enterprise_linux:8::crb
before 0:3.3.2-9.el8
0:3.3.2-9.el8
bsdcpio-debuginfo
Red Hat:enterprise_linux:8::crb
before 0:3.3.2-9.el8
0:3.3.2-9.el8
bsdtar-debuginfo
Red Hat:enterprise_linux:8::crb
before 0:3.3.2-9.el8
0:3.3.2-9.el8
libarchive-debuginfo
Red Hat:enterprise_linux:8::crb
before 0:3.3.2-9.el8
0:3.3.2-9.el8
libarchive-debugsource
Red Hat:enterprise_linux:8::crb
before 0:3.3.2-9.el8
0:3.3.2-9.el8
libarchive-devel
Red Hat:enterprise_linux:8::crb
before 0:3.3.2-9.el8
0:3.3.2-9.el8
libarchive
SUSE:Linux Enterprise Software Development Kit 12 SP5
before 3.3.3-32.5.1
3.3.3-32.5.1
libarchive
SUSE:Linux Enterprise Server 12 SP5
before 3.3.3-32.5.1
3.3.3-32.5.1
libarchive
SUSE:Linux Enterprise Server for SAP Applications 12 SP5
before 3.3.3-32.5.1
3.3.3-32.5.1
libarchive
Ubuntu: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 less
3.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
libarchive
Ubuntu: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
libarchive
Ubuntu: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
libarchive
Ubuntu:20.04:LTS
before 3.4.0-1ubuntu2, plus listed versions
3.4.0-13.4.0-1build1
3.4.0-1ubuntu2
libarchive
Ubuntu: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 less
3.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
libarchive
Ubuntu: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 less
3.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
libarchive
Ubuntu: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 less
3.4.0-2ubuntu1.23.4.0-2ubuntu1.33.4.0-2ubuntu1.43.4.0-2ubuntu1.5
3.4.0-2ubuntu1.5+esm1
libarchive
Ubuntu: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 less
3.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
libarchive
Ubuntu: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 less
3.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
libarchive
Ubuntu: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
bsdtar
openSUSE:Tumbleweed
From an advisory covering 12 CVEs
before 3.5.1-1.5
3.5.1-1.5

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE 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

Show 45 moreShow less
MoveEnter Open