# CVE-2021-31566: bsdtar: The libarchive programming library can create and read several different streaming archive formats, including GNU tar...

CVE-2021-31566 is fixed in 12 products on 1 platform, first by libarchive-tools 3.4.0-2ubuntu1.1, released December 23, 2021. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2021-31566
- Priority: High
- CVSS: 7.8 (Moderate)
- EPSS: 0.0039
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Dec 23, 2021

## Description

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: extracting a symlink with ACLs modifies ACLs of target (CVE-2021-23177)  * libarchive: symbolic links incorrectly followed when changing modes, times, ACL and flags of a file while extracting an archive (CVE-2021-31566)  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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | bsdcat amzn 2023 | 3.5.3-2.amzn2023.0.2 | [ALAS2023-2023-071](https://patchblox.com/security/data/fix/linux/alas2023-2023-071.md) | Feb 17, 2023 |
| Linux | bsdcat-debuginfo amzn 2023 | 3.5.3-2.amzn2023.0.2 | [ALAS2023-2023-071](https://patchblox.com/security/data/fix/linux/alas2023-2023-071.md) | Feb 17, 2023 |
| Linux | bsdcpio amzn 2023 | 3.5.3-2.amzn2023.0.2 | [ALAS2023-2023-071](https://patchblox.com/security/data/fix/linux/alas2023-2023-071.md) | Feb 17, 2023 |
| Linux | bsdcpio-debuginfo amzn 2023 | 3.5.3-2.amzn2023.0.2 | [ALAS2023-2023-071](https://patchblox.com/security/data/fix/linux/alas2023-2023-071.md) | Feb 17, 2023 |
| Linux | bsdtar RHEL 8 | 0:3.3.3-3.el8_5 | [RHSA-2022:0892](https://patchblox.com/security/data/fix/linux/rhsa-2022-0892.md) | Mar 15, 2022 |
| Linux | bsdtar almalinux 8 | 3.3.3-3.el8_5 | [ALSA-2022:0892](https://patchblox.com/security/data/fix/linux/alsa-2022-0892.md) | Mar 15, 2022 |
| Linux | bsdtar amzn 2023 | 3.5.3-2.amzn2023.0.2 | [ALAS2023-2023-071](https://patchblox.com/security/data/fix/linux/alas2023-2023-071.md) | Feb 17, 2023 |
| Linux | bsdtar ol 8 | 0:3.3.3-3.el8_5 | [ELSA-2022-0892](https://patchblox.com/security/data/fix/linux/elsa-2022-0892.md) | Mar 16, 2022 |
| Linux | bsdtar-debuginfo amzn 2023 | 3.5.3-2.amzn2023.0.2 | [ALAS2023-2023-071](https://patchblox.com/security/data/fix/linux/alas2023-2023-071.md) | Feb 17, 2023 |
| Linux | libarchive Debian 12.15 (bookworm) | 3.5.2-1 | [DEBIAN-CVE-2021-31566](https://patchblox.com/security/data/fix/linux/debian-cve-2021-31566.md) | Aug 23, 2022 |
| Linux | libarchive Debian 13.5 (trixie) | 3.5.2-1 | [DEBIAN-CVE-2021-31566](https://patchblox.com/security/data/fix/linux/debian-cve-2021-31566.md) | Aug 23, 2022 |
| Linux | libarchive Debian 14 | 3.5.2-1 | [DEBIAN-CVE-2021-31566](https://patchblox.com/security/data/fix/linux/debian-cve-2021-31566.md) | Aug 23, 2022 |
| Linux | libarchive RHEL 8 | 0:3.3.3-3.el8_5 | [RHSA-2022:0892](https://patchblox.com/security/data/fix/linux/rhsa-2022-0892.md) | Mar 15, 2022 |
| Linux | libarchive almalinux 8 | 3.3.3-3.el8_5 | [ALSA-2022:0892](https://patchblox.com/security/data/fix/linux/alsa-2022-0892.md) | Mar 15, 2022 |
| Linux | libarchive amzn 2023 | 3.5.3-2.amzn2023.0.2 | [ALAS2023-2023-071](https://patchblox.com/security/data/fix/linux/alas2023-2023-071.md) | Feb 17, 2023 |
| Linux | libarchive ol 8 | 0:3.3.3-3.el8_5 | [ELSA-2022-0892](https://patchblox.com/security/data/fix/linux/elsa-2022-0892.md) | Mar 16, 2022 |
| Linux | libarchive rocky 8 | 0:3.3.3-3.el8_5 | [RLSA-2022:0892](https://patchblox.com/security/data/fix/linux/rlsa-2022-0892.md) | Mar 15, 2022 |
| Linux | libarchive-debuginfo amzn 2023 | 3.5.3-2.amzn2023.0.2 | [ALAS2023-2023-071](https://patchblox.com/security/data/fix/linux/alas2023-2023-071.md) | Feb 17, 2023 |
| Linux | libarchive-debugsource amzn 2023 | 3.5.3-2.amzn2023.0.2 | [ALAS2023-2023-071](https://patchblox.com/security/data/fix/linux/alas2023-2023-071.md) | Feb 17, 2023 |
| Linux | libarchive-devel RHEL 8 | 0:3.3.3-3.el8_5 | [RHSA-2022:0892](https://patchblox.com/security/data/fix/linux/rhsa-2022-0892.md) | Mar 15, 2022 |
| Linux | libarchive-devel almalinux 8 | 3.3.3-3.el8_5 | [ALSA-2022:0892](https://patchblox.com/security/data/fix/linux/alsa-2022-0892.md) | Mar 15, 2022 |
| Linux | libarchive-devel amzn 2023 | 3.5.3-2.amzn2023.0.2 | [ALAS2023-2023-071](https://patchblox.com/security/data/fix/linux/alas2023-2023-071.md) | Feb 17, 2023 |
| Linux | libarchive-devel ol 8 | 0:3.3.3-3.el8_5 | [ELSA-2022-0892](https://patchblox.com/security/data/fix/linux/elsa-2022-0892.md) | Mar 16, 2022 |
| Linux | libarchive-tools Ubuntu 20.04 LTS (focal) | 3.4.0-2ubuntu1.1 | [libarchive-tools 3.4.0-2ubuntu1.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libarchive-tools-3.4.0-2ubuntu1.1.md) | Dec 23, 2021 |
| Linux | libarchive13 Ubuntu 20.04 LTS (focal) | 3.4.0-2ubuntu1.1 | [libarchive13 3.4.0-2ubuntu1.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libarchive13-3.4.0-2ubuntu1.1.md) | Dec 23, 2021 |

---

Data as of 2026-11-09T19:38:12Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
