CVE-2026-5121Libarchive: libarchive: arbitrary code execution via integer overflow in iso9660 image…
A flaw was found in libarchive. On 32-bit systems, an integer overflow vulnerability exists in the zisofs block pointer allocation logic. A remote attacker can exploit this by providing a specially crafted ISO9660 image, which can lead to a heap buffer overflow. This could potentially allow for arbitrary code execution on the affected system.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | libarchive | Fixed | 3.8.5-1ubuntu2.1 | UBUNTU-CVE-2026-5121 |
| Ubuntu 25.10 | libarchive | Fixed | 3.7.7-0ubuntu3.2 | UBUNTU-CVE-2026-5121 |
| Ubuntu 24.04 | libarchive | Fixed | 3.7.2-2ubuntu0.7 | UBUNTU-CVE-2026-5121 |
| Ubuntu 22.04 | libarchive | Fixed | 3.6.0-1ubuntu1.7 | UBUNTU-CVE-2026-5121 |
| Ubuntu 20.04 | libarchive | Fix pending | 3.4.0-2ubuntu1.5+esm2 (Ubuntu Pro) | UBUNTU-CVE-2026-5121 |
| Ubuntu 18.04 | libarchive | Fix pending | 3.2.2-3.1ubuntu0.7+esm3 (Ubuntu Pro) | UBUNTU-CVE-2026-5121 |
| Ubuntu 16.04 | libarchive | Fix pending | 3.1.2-11ubuntu0.16.04.8+esm3 (Ubuntu Pro) | UBUNTU-CVE-2026-5121 |
| Ubuntu 14.04 | libarchive | Fix pending | 3.1.2-7ubuntu2.8+esm5 (Ubuntu Pro) | UBUNTU-CVE-2026-5121 |
| Debian 14 | libarchive | Fixed | 3.8.7-1 | DEBIAN-CVE-2026-5121 |
| Debian 13 | libarchive | Fixed | 3.7.4-4+deb13u1 | DEBIAN-CVE-2026-5121 |
| Debian 12 | libarchive | Fixed | 3.6.2-1+deb12u4 | DEBIAN-CVE-2026-5121 |
| Red Hat Enterprise Linux 10 | bsdtar | Under investigation | ||
| Red Hat Enterprise Linux 10 | libarchive | Under investigation | ||
| Red Hat Enterprise Linux 10 | libarchive-devel | Under investigation | ||
| Red Hat Enterprise Linux 9 | bsdtar | Fixed | 0:3.5.3-9.el9_7 | RHSA-2026:8510 |
| Red Hat Enterprise Linux 9 | libarchive | Fixed | 0:3.5.3-9.el9_7 | RHSA-2026:8510 |
| Red Hat Enterprise Linux 9 | libarchive-devel | Fixed | 0:3.5.3-9.el9_7 | RHSA-2026:8510 |
| Red Hat Enterprise Linux 8 | bsdtar | Fixed | 0:3.3.3-7.el8_10 | RHSA-2026:8534 |
| Red Hat Enterprise Linux 8 | libarchive | Fixed | 0:3.3.3-7.el8_10 | RHSA-2026:8534 |
| Red Hat Enterprise Linux 8 | libarchive-devel | Fixed | 0:3.3.3-7.el8_10 | RHSA-2026:8534 |
| Red Hat Enterprise Linux 6 | libarchive | Under investigation | ||
| Red Hat Enterprise Linux 6 | libarchive-devel | Under investigation | ||
| AlmaLinux 9 | bsdtar | Fixed | 3.5.3-9.el9_7 | ALSA-2026:8510 |
| AlmaLinux 9 | libarchive | Fixed | 3.5.3-9.el9_7 | ALSA-2026:8510 |
| AlmaLinux 9 | libarchive-devel | Fixed | 3.5.3-9.el9_7 | ALSA-2026:8510 |
| AlmaLinux 8 | bsdtar | Fixed | 3.3.3-7.el8_10 | ALSA-2026:8534 |
| AlmaLinux 8 | libarchive | Fixed | 3.3.3-7.el8_10 | ALSA-2026:8534 |
| AlmaLinux 8 | libarchive-devel | Fixed | 3.3.3-7.el8_10 | ALSA-2026:8534 |
| Rocky Linux 9 | libarchive | Fixed | 0:3.5.3-9.el9_7 | RLSA-2026:8510 |
| Rocky Linux 8 | libarchive | Fixed | 0:3.3.3-7.el8_10 | RLSA-2026:8534 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Red Hat Enterprise Linux 7 Extended Lifecycle Support
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 8.2 Advanced Update Support
- Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
- Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On
- Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
- Red Hat Enterprise Linux 8.6 Telecommunications Update Service
- Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
- Red Hat Enterprise Linux 8.8 Telecommunications Update Service
- Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions
Workaround: To mitigate this issue, avoid processing untrusted ISO9660 images with applications that utilize `libarchive`. Users should only extract or read content from ISO images obtained from trusted sources.
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2026:10065 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:10097 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:11768 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:12071 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:12274 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:13812 (vendor-advisory)
References
- https://access.redhat.com/errata/RHSA-2026:10065
- https://access.redhat.com/errata/RHSA-2026:10097
- https://access.redhat.com/errata/RHSA-2026:11768
- https://access.redhat.com/errata/RHSA-2026:12071
- https://access.redhat.com/errata/RHSA-2026:12274
- https://access.redhat.com/errata/RHSA-2026:13812
- https://access.redhat.com/errata/RHSA-2026:14773
- https://access.redhat.com/errata/RHSA-2026:14937
- https://access.redhat.com/errata/RHSA-2026:15087
- https://access.redhat.com/errata/RHSA-2026:16008
- https://access.redhat.com/errata/RHSA-2026:16009
- https://access.redhat.com/errata/RHSA-2026:16030
- https://access.redhat.com/errata/RHSA-2026:16174
- https://access.redhat.com/errata/RHSA-2026:17596
- https://access.redhat.com/errata/RHSA-2026:19724
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.