Every CVE Search/ Get API key

CVE-2021-23177

An improper link resolution flaw while extracting an archive can lead to changing the access...

7.8 HighFix available

An improper link resolution flaw while extracting an archive can lead to changing the access control list (ACL) of the target of the link. 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 change the ACL of a file on the system and gain more privileges.

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
Low
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

0.39%Down 0.6 points since Aug 24, 2022
90%50%10%1%

What each source reports

NVD Score used 7.8

An improper link resolution flaw while extracting an archive can lead to changing the access control list (ACL) of the target of the link. 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 change the ACL of a file on the system and gain more privileges.

Record
CVE-2021-23177
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-59
Updated
2026-11-02
CVE List No score

An improper link resolution flaw while extracting an archive can lead to changing the access control list (ACL) of the target of the link. 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 change the ACL of a file on the system and gain more privileges.

Record
CVE-2021-23177
Weakness
CWE-59
Updated
2026-11-02
EUVDEUVD-2021-10287 No score

An improper link resolution flaw while extracting an archive can lead to changing the access control list (ACL) of the target of the link. 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 change the ACL of a file on the system and gain more privileges.

Record
EUVD-2021-10287
Updated
2026-11-03
GitHub AdvisoriesGHSA-fq9q-7wp8-gpr7 7.8

An improper link resolution flaw while extracting an archive can lead to changing the access...

An improper link resolution flaw while extracting an archive can lead to changing the access control list (ACL) of the target of the link. 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 change the ACL of a file on the system and gain more privileges.

Record
GHSA-fq9q-7wp8-gpr7
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-59
Updated
2026-11-02
OSV 7.8

An improper link resolution flaw while extracting an archive can lead to changing the access control list (ACL) of the target of the link. 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 change the ACL of a file on the system and gain more privileges.

Record
CVE-2021-23177
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2021-23177 7.8

An improper link resolution flaw while extracting an archive can lead to changing the access control list (ACL) of the target of the link. 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 change the ACL of a file on the system and gain more privileges.

Record
DEBIAN-CVE-2021-23177
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
Show 12 moreShow less
OSVJLSEC-2025-235 7.8

An improper link resolution flaw while extracting an archive can lead to changing the access control...

An improper link resolution flaw while extracting an archive can lead to changing the access control list (ACL) of the target of the link. 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 change the ACL of a file on the system and gain more privileges.

Record
JLSEC-2025-235
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVOESA-2022-1494 6.6

libarchive security update

is an open-source BSD-licensed C programming library that provides streaming access to a variety of different archive formats, including tar, cpio, pax, zip, and ISO9660 images. The distribution also includes bsdtar and bsdcpio, full-featured implementations of tar and cpio that use .

Security Fix(es):

Incorrect link resolution flaws can occur when extracting archives, resulting in changes to the mode, time, access control list, and flags of files outside the archive. An attacker could deliver malicious archives to victim users, triggering this vulnerability when they attempt to extract the archives. A local attacker could exploit this vulnerability to gain additional privileges on the system.(CVE-2021-31566)

Incorrect link resolution flaws when using ACLs to extract symbolic links can lead to changes to the access control list (ACL) of the link target. An attacker could deliver malicious archives to victim users, triggering this vulnerability when they attempt to extract the archives. A local attacker could exploit this vulnerability to change the ACL of a file on the system and gain more permissions.(CVE-2021-23177)

Record
OESA-2022-1494
CVSS 3.1
6.6 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L
Updated
2026-11-02
OSVRHSA-2022:0892 7.3

Red Hat Security Advisory: libarchive security update

Record
RHSA-2022:0892
CVSS 3.1
7.3 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L
Updated
2026-11-02
OSVRLSA-2022:0892 6.6

Moderate: libarchive security update

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.

Record
RLSA-2022:0892
CVSS 3.1
6.6 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:L
Updated
2026-11-02
OSVUBUNTU-CVE-2021-23177 7.8

An improper link resolution flaw while extracting an archive can lead to changing the access control list (ACL) of the target of the link. 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 change the ACL of a file on the system and gain more privileges.

Record
UBUNTU-CVE-2021-23177
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVALSA-2022:0892 No score

Moderate: libarchive security update

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.

Record
ALSA-2022:0892
Updated
2026-11-02
OSVCLSA-2026-1787908647 No score

Fix of 8 CVEs

  • SECURITY UPDATE: ACLs applied to a symbolic link modified the link target instead
    • debian/patches/CVE-2021-23177.patch: ACLs applied to a symbolic link modified the link target instead
    • CVE-2021-23177
  • SECURITY UPDATE: symbolic links followed when changing modes, times, ACLs and flags while extracting an archive
    • debian/patches/CVE-2021-31566.patch: symbolic links followed when changing modes, times, ACLs and flags while extracting an archive
    • CVE-2021-31566
  • SECURITY UPDATE: NULL pointer dereference when calloc() fails while allocating a write filter
    • debian/patches/CVE-2022-36227.patch: NULL pointer dereference when calloc() fails while allocating a write filter
    • CVE-2022-36227
  • SECURITY UPDATE: integer overflow in the RAR4 reader allowing an oversized memcpy in copy_from_lzss_window()
    • debian/patches/CVE-2024-20696.patch: integer overflow in the RAR4 reader allowing an oversized memcpy in copy_from_lzss_window()
    • CVE-2024-20696
  • SECURITY UPDATE: LZSS window size mismatch after a PPMd block in the RAR4 reader allowing an out-of-bounds read
    • debian/patches/CVE-2026-4424.patch: LZSS window size mismatch after a PPMd block in the RAR4 reader allowing an out-of-bounds read
    • CVE-2026-4424
  • SECURITY UPDATE: unvalidated zisofs block size exponent in the ISO9660 Rock Ridge ZF parser
    • debian/patches/CVE-2026-5121.patch: unvalidated zisofs block size exponent in the ISO9660 Rock Ridge ZF parser
    • CVE-2026-5121
  • SECURITY UPDATE: double free in the RAR4 reader with over 4 billion nodes
    • debian/patches/CVE-2025-5914.patch: double free in the RAR4 reader with over 4 billion nodes
    • CVE-2025-5914
  • SECURITY UPDATE: unchecked strftime() return and localtime() NULL dereference in the bsdtar verbose listing
    • debian/patches/CVE-2025-25724.patch: check the strftime() result so a custom locale whose expansion exceeds the 100-byte buffer cannot leave stale content in it, and guard localtime() returning NULL; backports upstream c9bc934e and ecce4674
    • CVE-2025-25724
  • Guard the RAR seek cursor before the previous-block lookup
    • debian/patches/rar-guard-seek-cursor.patch: reject a zero cursor in archive_read_format_rar_seek_data() before reading dbo[cursor - 1], which would otherwise underflow; backports upstream e548c994
  • Check the ISO9660 ZF entry length before reading its data bytes
    • debian/patches/iso9660-zf-length-check.patch: test data_length before data[0]/data[1] in parse_rockridge_ZF1(), so a zero-length ZF entry cannot be read past the SUSP region bound; backports upstream a9a73c0e
Record
CLSA-2026-1787908647
Updated
2026-11-02
OSVCLSA-2026-1792818643 No score

libarchive: Fix of 2 CVEs

  • CVE-2021-23177: fix extraction of ACLs to the symlink target instead of the link
  • CVE-2021-31566: do not follow symlinks when fixing up permissions and file flags
  • CVE-2026-5121: validate pz_log2_bs in the iso9660 zisofs reader
Record
CLSA-2026-1792818643
Updated
2026-11-02
OSVopenSUSE-SU-2024:13549-1 No score

bsdtar-3.7.2-1.1 on GA media

These are all security issues fixed in the bsdtar-3.7.2-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:13549-1
Updated
2026-11-02
OSVSUSE-SU-2022:3306-1 No score

Security update for libarchive

This update for libarchive fixes the following issues:

  • CVE-2021-23177: Fixed symlink ACL extraction that modifies ACLs of the target system (bsc#1192425).
Record
SUSE-SU-2022:3306-1
Updated
2026-11-02
OSVSUSE-SU-2022:3393-1 No score

Security update for libarchive

This update for libarchive fixes the following issues:

  • CVE-2021-23177: Fixed symlink ACL extraction that modifies ACLs of the target system (bsc#1192425).
Record
SUSE-SU-2022:3393-1
Updated
2026-11-02
OSVUSN-5291-1 No score

libarchive vulnerabilities

It was discovered that libarchive incorrectly handled symlinks. If a user or automated system were tricked into processing a specially crafted archive, an attacker could possibly use this issue to change modes, times, ACLs, and flags on arbitrary files. (CVE-2021-23177, CVE-2021-31566)

It was discovered that libarchive incorrectly handled certain RAR archives. If a user or automated system were tricked into processing a specially crafted RAR archive, an attacker could use this issue to cause libarchive to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2021-36976)

Record
USN-5291-1
Updated
2026-11-02

Affected products

Show 1 moreShow less

Affected packages

Affected packages
PackageAffectedFixed
bsdtar
AlmaLinux:8
From an advisory covering 2 CVEs
before 3.3.3-3.el8_5
3.3.3-3.el8_5
libarchive
AlmaLinux:8
From an advisory covering 2 CVEs
before 3.3.3-3.el8_5
3.3.3-3.el8_5
libarchive-devel
AlmaLinux:8
From an advisory covering 2 CVEs
before 3.3.3-3.el8_5
3.3.3-3.el8_5
bsdcpio
TuxCare:Ubuntu:18.04
From an advisory covering 8 CVEs
before 3.2.2-3.1ubuntu0.7+tuxcare.els1
3.2.2-3.1ubuntu0.7+tuxcare.els1
bsdtar
TuxCare:Ubuntu:18.04
From an advisory covering 8 CVEs
before 3.2.2-3.1ubuntu0.7+tuxcare.els1
3.2.2-3.1ubuntu0.7+tuxcare.els1
libarchive-dev
TuxCare:Ubuntu:18.04
From an advisory covering 8 CVEs
before 3.2.2-3.1ubuntu0.7+tuxcare.els1
3.2.2-3.1ubuntu0.7+tuxcare.els1
libarchive-tools
TuxCare:Ubuntu:18.04
From an advisory covering 8 CVEs
before 3.2.2-3.1ubuntu0.7+tuxcare.els1
3.2.2-3.1ubuntu0.7+tuxcare.els1
libarchive13
TuxCare:Ubuntu:18.04
From an advisory covering 8 CVEs
before 3.2.2-3.1ubuntu0.7+tuxcare.els1
3.2.2-3.1ubuntu0.7+tuxcare.els1
libarchive
TuxCare:OracleLinux:6
From an advisory covering 3 CVEs
before 2.8.3-7.el6_8.tuxcare.els1
2.8.3-7.el6_8.tuxcare.els1
libarchive-devel
TuxCare:OracleLinux:6
From an advisory covering 3 CVEs
before 2.8.3-7.el6_8.tuxcare.els1
2.8.3-7.el6_8.tuxcare.els1
Show 35 moreShow less
Affected packages
PackageAffectedFixed
libarchive
Debian:12
before 3.5.2-1
3.5.2-1
libarchive
Debian:13
before 3.5.2-1
3.5.2-1
libarchive
Debian:14
before 3.5.2-1
3.5.2-1
libarchive
Debian:9
From an advisory covering 3 CVEs
before 3.2.2-2+deb9u3, plus listed versions
3.2.2-23.2.2-2+deb9u13.2.2-2+deb9u2
3.2.2-2+deb9u3
libarchive
Debian:10
From an advisory covering 3 CVEs
before 3.3.3-4+deb10u2, plus listed versions
3.3.3-43.3.3-4+deb10u1
3.3.3-4+deb10u2
LibArchive_jll
Julia
before 3.5.2+0
3.5.2+0
libarchive
openEuler:20.03-LTS-SP1
From an advisory covering 2 CVEs
before 3.4.3-4.oe1
3.4.3-4.oe1
libarchive
openEuler:20.03-LTS-SP2
From an advisory covering 2 CVEs
before 3.4.3-4.oe1
3.4.3-4.oe1
libarchive
openEuler:20.03-LTS-SP3
From an advisory covering 2 CVEs
before 3.4.3-4.oe1
3.4.3-4.oe1
bsdcat-debuginfo
Red Hat:enterprise_linux:8::baseos
From an advisory covering 2 CVEs
before 0:3.3.3-3.el8_5
0:3.3.3-3.el8_5
bsdcpio-debuginfo
Red Hat:enterprise_linux:8::baseos
From an advisory covering 2 CVEs
before 0:3.3.3-3.el8_5
0:3.3.3-3.el8_5
bsdtar
Red Hat:enterprise_linux:8::baseos
From an advisory covering 2 CVEs
before 0:3.3.3-3.el8_5
0:3.3.3-3.el8_5
bsdtar-debuginfo
Red Hat:enterprise_linux:8::baseos
From an advisory covering 2 CVEs
before 0:3.3.3-3.el8_5
0:3.3.3-3.el8_5
libarchive
Red Hat:enterprise_linux:8::baseos
From an advisory covering 2 CVEs
before 0:3.3.3-3.el8_5
0:3.3.3-3.el8_5
libarchive-debuginfo
Red Hat:enterprise_linux:8::baseos
From an advisory covering 2 CVEs
before 0:3.3.3-3.el8_5
0:3.3.3-3.el8_5
libarchive-debugsource
Red Hat:enterprise_linux:8::baseos
From an advisory covering 2 CVEs
before 0:3.3.3-3.el8_5
0:3.3.3-3.el8_5
bsdcat-debuginfo
Red Hat:enterprise_linux:8::crb
From an advisory covering 2 CVEs
before 0:3.3.3-3.el8_5
0:3.3.3-3.el8_5
bsdcpio-debuginfo
Red Hat:enterprise_linux:8::crb
From an advisory covering 2 CVEs
before 0:3.3.3-3.el8_5
0:3.3.3-3.el8_5
bsdtar-debuginfo
Red Hat:enterprise_linux:8::crb
From an advisory covering 2 CVEs
before 0:3.3.3-3.el8_5
0:3.3.3-3.el8_5
libarchive-debuginfo
Red Hat:enterprise_linux:8::crb
From an advisory covering 2 CVEs
before 0:3.3.3-3.el8_5
0:3.3.3-3.el8_5
libarchive-debugsource
Red Hat:enterprise_linux:8::crb
From an advisory covering 2 CVEs
before 0:3.3.3-3.el8_5
0:3.3.3-3.el8_5
libarchive-devel
Red Hat:enterprise_linux:8::crb
From an advisory covering 2 CVEs
before 0:3.3.3-3.el8_5
0:3.3.3-3.el8_5
libarchive
Rocky Linux:8
From an advisory covering 2 CVEs
before 0:3.3.3-3.el8_5
0:3.3.3-3.el8_5
libarchive
SUSE:Linux Enterprise Module for Basesystem 15 SP4
before 3.5.1-150400.3.6.1
3.5.1-150400.3.6.1
libarchive
SUSE:Linux Enterprise Module for Development Tools 15 SP4
before 3.5.1-150400.3.6.1
3.5.1-150400.3.6.1
libarchive
openSUSE:Leap 15.4
before 3.5.1-150400.3.6.1
3.5.1-150400.3.6.1
libarchive
SUSE:Linux Enterprise Module for Basesystem 15 SP3
before 3.4.2-150200.4.9.1
3.4.2-150200.4.9.1
libarchive
SUSE:Linux Enterprise Module for Development Tools 15 SP3
before 3.4.2-150200.4.9.1
3.4.2-150200.4.9.1
libarchive
openSUSE:Leap 15.3
before 3.4.2-150200.4.9.1
3.4.2-150200.4.9.1
libarchive
Ubuntu:Pro:14.04:LTS
All versions, plus listed versions
3.1.2-5ubuntu13.1.2-7ubuntu13.1.2-7ubuntu23.1.2-7ubuntu2.13.1.2-7ubuntu2.2
Show 9 moreShow less
3.1.2-7ubuntu2.33.1.2-7ubuntu2.43.1.2-7ubuntu2.63.1.2-7ubuntu2.73.1.2-7ubuntu2.83.1.2-7ubuntu2.8+esm13.1.2-7ubuntu2.8+esm33.1.2-7ubuntu2.8+esm43.1.2-7ubuntu2.8+esm5
None known
libarchive
Ubuntu:Pro:16.04:LTS
All versions, plus listed versions
3.1.2-11build13.1.2-11ubuntu0.16.04.13.1.2-11ubuntu0.16.04.23.1.2-11ubuntu0.16.04.33.1.2-11ubuntu0.16.04.4
Show 7 moreShow less
3.1.2-11ubuntu0.16.04.53.1.2-11ubuntu0.16.04.63.1.2-11ubuntu0.16.04.73.1.2-11ubuntu0.16.04.83.1.2-11ubuntu0.16.04.8+esm13.1.2-11ubuntu0.16.04.8+esm23.1.2-11ubuntu0.16.04.8+esm3
None known
libarchive
Ubuntu:Pro:18.04:LTS
All versions, plus listed versions
3.2.2-3.13.2.2-3.1ubuntu0.13.2.2-3.1ubuntu0.23.2.2-3.1ubuntu0.33.2.2-3.1ubuntu0.4
Show 6 moreShow less
3.2.2-3.1ubuntu0.53.2.2-3.1ubuntu0.63.2.2-3.1ubuntu0.73.2.2-3.1ubuntu0.7+esm13.2.2-3.1ubuntu0.7+esm23.2.2-3.1ubuntu0.7+esm3
None known
libarchive
Ubuntu:20.04:LTS
before 3.4.0-2ubuntu1.1, plus listed versions
3.4.0-13.4.0-1build13.4.0-1ubuntu23.4.0-2ubuntu1
3.4.0-2ubuntu1.1
libarchive
Ubuntu:20.04:LTS
From an advisory covering 3 CVEs
before 3.4.0-2ubuntu1.1, plus listed versions
3.4.0-13.4.0-1build13.4.0-1ubuntu23.4.0-2ubuntu1
3.4.0-2ubuntu1.1
bsdtar
openSUSE:Tumbleweed
From an advisory covering 3 CVEs
before 3.7.2-1.1
3.7.2-1.1

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-23177 is a high vulnerability (CVSS 7.8) in Debian Linux, published December 24, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.39%, the 33rd percentile. Fixed in libarchive 3.5.2-1.

References

Show 33 moreShow less
MoveEnter Open