Skip to content
OpenAdvisories
Unscored CVE-2021-31566 EUVD-2021-18460GHSA-mg62-fpgc-6hjj

An improper link resolution flaw can occur while extracting an archive leading to changing modes, times, access control lists, and flags of…

Published Aug 23, 2022 · Updated Nov 2, 2026 · Assigned by redhat

Description

An improper link resolution flaw can occur while extracting an archive leading to changing modes, times, access control lists, and flags of a file outside of the archive. An attacker may provide a malicious archive to a victim user, who would trigger this flaw when trying to extract the archive. A local attacker may use this flaw to gain more privileges in a system.

Affected products

VendorProductAffectedFixed
— libarchive Fixed in libarchive 3.5.2 —

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.

ReleasePackageFixed inAdvisory
Debian 14 libarchive 3.5.2-1 —
Debian 13 libarchive 3.5.2-1 —
Debian 12 libarchive 3.5.2-1 —
Debian 10 libarchive 3.3.3-4+deb10u2 DLA-3202-1
Debian 9 libarchive 3.2.2-2+deb9u3 DLA-2987-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS libarchive 3.4.0-2ubuntu1.1 USN-5291-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS libarchive No fix yet —
Ubuntu Pro 16.04 LTS libarchive No fix yet —
Ubuntu Pro 14.04 LTS libarchive No fix yet —
ReleasePackageFixed inAdvisory
RHEL 8 bsdtar +2 3.3.3-3.el8_5 RHSA-2022:0892

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 bsdtar +2 3.3.3-3.el8_5 ALSA-2022:0892

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 libarchive 3.3.3-3.el8_5 RLSA-2022:0892
ReleasePackageFixed inAdvisory
SLES 15 SP4 libarchive 3.5.1-150400.3.9.1 SUSE-SU-2022:3936-1
SLES 15 SP3 libarchive 3.4.2-150200.4.12.1 SUSE-SU-2022:3935-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLE Micro 5.3 libarchive 3.5.1-150400.3.9.1 SUSE-SU-2022:3936-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed bsdtar 3.6.0-1.1 openSUSE-SU-2024:11894-1
openSUSE Leap 15.4 libarchive 3.5.1-150400.3.9.1 SUSE-SU-2022:3936-1
openSUSE Leap 15.3 libarchive 3.4.2-150200.4.12.1 SUSE-SU-2022:3935-1
ReleasePackageFixed inAdvisory
Alpine v3.14 libarchive 3.5.3-r0 —
Alpine v3.13 libarchive 3.5.3-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 bsdcat +4 3.5.3-2.amzn2023.0.2 ALAS2023-2023-071
Amazon Linux 2 bsdtar +3 3.1.2-14.amzn2.0.3 ALAS2-2023-2374

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 bsdtar +2 3.3.3-3.el8_5 ELSA-2022-0892

Advisories 15

References