Description
An issue was discovered in libarchive bsdtar before version 3.8.1 in function apply_substitution in file tar/subst.c when processing crafted -s substitution rules. This can cause unbounded memory allocation and lead to denial of service (Out-of-Memory crash).
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.8.4-1 | — |
| Debian 13 | libarchive | No fix yet | — |
| Debian 12 | libarchive | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 25.10 | libarchive | 3.7.7-0ubuntu3.1 | — |
| Ubuntu 24.04 LTS | libarchive | 3.7.2-2ubuntu0.6 | — |
| Ubuntu 22.04 LTS | libarchive | 3.6.0-1ubuntu1.6 | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | libarchive | 3.4.0-2ubuntu1.5+esm1 | — |
| Ubuntu Pro 18.04 LTS | libarchive | 3.2.2-3.1ubuntu0.7+esm2 | — |
| Ubuntu Pro 16.04 LTS | libarchive | 3.1.2-11ubuntu0.16.04.8+esm2 | — |
| Ubuntu Pro 14.04 LTS | libarchive | 3.1.2-7ubuntu2.8+esm4 | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Hardened Images 1 | libarchive +1 | 3.8.7-1.hum1 | RHSA-2026:8944 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | libarchive | 3.7.2-150600.3.20.1 | SUSE-SU-2026:2490-1 |
| SLES 15 SP6 | libarchive | 3.7.2-150600.3.20.1 | SUSE-SU-2026:2490-1 |
| SLES 15 SP5 | libarchive | 3.5.1-150400.3.24.1 | SUSE-SU-2026:2599-1 |
| SLES 15 SP4 | libarchive | 3.5.1-150400.3.24.1 | SUSE-SU-2026:2599-1 |
| SLES 12 SP5 | libarchive | 3.3.3-32.17.1 | SUSE-SU-2026:2747-1 |
Show 10 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP6 | libarchive | 3.7.2-150600.3.20.1 | SUSE-SU-2026:2490-1 |
| SLES for SAP 15 SP5 | libarchive | 3.5.1-150400.3.24.1 | SUSE-SU-2026:2599-1 |
| SLES for SAP 15 SP4 | libarchive | 3.5.1-150400.3.24.1 | SUSE-SU-2026:2599-1 |
| SLE Micro 6.1 | libarchive | 3.7.4-slfo.1.1_4.1 | SUSE-SU-2026:22248-1 |
| SLE Micro 6.0 | libarchive | 3.6.2-6.1 | SUSE-SU-2026:22241-1 |
| SLE Micro 5.5 | libarchive | 3.5.1-150400.3.24.1 | SUSE-SU-2026:2599-1 |
| SLE Micro 5.4 | libarchive | 3.5.1-150400.3.24.1 | SUSE-SU-2026:2599-1 |
| SLE Micro 5.3 | libarchive | 3.5.1-150400.3.24.1 | SUSE-SU-2026:2599-1 |
| SLE HPC 15 SP5 | libarchive | 3.5.1-150400.3.24.1 | SUSE-SU-2026:2599-1 |
| SLE HPC 15 SP4 | libarchive | 3.5.1-150400.3.24.1 | SUSE-SU-2026:2599-1 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | libarchive | 3.7.7-4 | — |
| Azure Linux 2 (CBL-Mariner) | libarchive | 3.6.1-8 | — |
Advisories 8
- RHSA-2026:8944 Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update Red Hat Security Advisories (RHSA) · Oct 15, 2026
- WID-SEC-2025-2497 libarchive: Schwachstelle ermöglicht Denial of Service BSI CERT-Bund (WID) · Jul 5, 2026
- SUSE-SU-2026:2747-1 Security update for libarchive SUSE / openSUSE Security Updates · Jul 4, 2026
- SUSE-SU-2026:22248-1 Security update for libarchive SUSE / openSUSE Security Updates · Jun 26, 2026
- SUSE-SU-2026:22241-1 Security update for libarchive SUSE / openSUSE Security Updates · Jun 26, 2026
- SUSE-SU-2026:2599-1 Security update for libarchive SUSE / openSUSE Security Updates · Jun 24, 2026
- SUSE-SU-2026:2490-1 Security update for libarchive SUSE / openSUSE Security Updates · Jun 24, 2026
- WID-SEC-2025-2563 Microsoft Azure Linux: Mehrere Schwachstellen BSI CERT-Bund (WID) · May 11, 2026