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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libarchive | 3.4.2-1 | — |
| Debian 13 | libarchive | 3.4.2-1 | — |
| Debian 12 | libarchive | 3.4.2-1 | — |
| Debian 10 | libarchive | 3.3.3-4+deb10u2 | DLA-3202-1 |
| Debian 9 | libarchive | 3.2.2-2+deb9u3 | DLA-2987-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | libarchive | 3.4.0-1ubuntu2 | — |
| Ubuntu 18.04 LTS | libarchive | 3.2.2-3.1ubuntu0.6 | USN-4293-1 |
| Ubuntu 16.04 LTS | libarchive | 3.1.2-11ubuntu0.16.04.8 | USN-4293-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 14.04 LTS | libarchive | 3.1.2-7ubuntu2.8+esm4 | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8 | bsdtar +2 | 3.3.2-9.el8 | RHSA-2020:4443 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 8 | libarchive-devel | 3.3.2-9.el8 | ALSA-2020:4443 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP5 | libarchive | 3.3.3-32.5.1 | SUSE-SU-2021:3722-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP5 | libarchive | 3.3.3-32.5.1 | SUSE-SU-2021:3722-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | bsdtar | 3.5.1-1.5 | openSUSE-SU-2024:10925-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | libarchive | 3.4.2-r0 | — |
| Alpine v3.23 | libarchive | 3.4.2-r0 | — |
| Alpine v3.22 | libarchive | 3.4.2-r0 | — |
| Alpine v3.21 | libarchive | 3.4.2-r0 | — |
| Alpine v3.20 | libarchive | 3.4.2-r0 | — |
Show 7 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | libarchive | 3.4.2-r0 | — |
| Alpine v3.18 | libarchive | 3.4.2-r0 | — |
| Alpine v3.17 | libarchive | 3.4.2-r0 | — |
| Alpine v3.16 | libarchive | 3.4.2-r0 | — |
| Alpine v3.15 | libarchive | 3.4.2-r0 | — |
| Alpine v3.14 | libarchive | 3.4.2-r0 | — |
| Alpine v3.13 | libarchive | 3.4.2-r0 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 8 | bsdtar +2 | 3.3.2-9.el8 | ELSA-2020-4443 |
Advisories 10
- ALSA-2020:4443 Moderate: libarchive security update AlmaLinux Security Advisories · Oct 29, 2026
- WID-SEC-2025-0227 IBM QRadar SIEM: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 11, 2026
- RHSA-2020:4443 Red Hat Security Advisory: libarchive security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- USN-4293-1 libarchive vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- WID-SEC-2022-2148 libarchive: Schwachstelle ermöglicht Denial of Service BSI CERT-Bund (WID) · Apr 6, 2026
- DLA-3202-1 libarchive - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-2987-1 libarchive - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:10925-1 bsdtar-3.5.1-1.5 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:3722-1 Security update for libarchive SUSE / openSUSE Security Updates · Feb 4, 2026
- ELSA-2020-4443 Moderate: libarchive security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Nov 10, 2020
References
- https://github.com/libarchive/libarchive/issues/1276
- https://github.com/libarchive/libarchive/commit/22b1db9d46654afc6f0c28f90af8cdc84a199f41
- FEDORA-2020-235688c222 vendor-advisory
- USN-4293-1 vendor-advisory
- [debian-lts-announce] 20220430 [SECURITY] [DLA 2987-1] libarchive security update mailing-list
- [debian-lts-announce] 20221122 [SECURITY] [DLA 3202-1] libarchive security update mailing-list