Bug 2024245 (CVE-2021-23177) - CVE-2021-23177 libarchive: extracting a symlink with ACLs modifies ACLs of target
Summary: CVE-2021-23177 libarchive: extracting a symlink with ACLs modifies ACLs of ta...
Alias: CVE-2021-23177
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
: 2054465 (view as bug list)
Depends On: 2024246 2024247 2026075 2026078 2026830 2026831 2028037
Blocks: 2024258 2054464
TreeView+ depends on / blocked
Reported: 2021-11-17 16:52 UTC by Guilherme de Almeida Suckevicz
Modified: 2023-02-02 10:36 UTC (History)
19 users (show)

Fixed In Version: libarchive 3.5.2
Doc Type: If docs needed, set a value
Doc Text:
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.
Clone Of:
Last Closed: 2022-03-15 15:46:44 UTC

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:0892 0 None None None 2022-03-15 10:20:14 UTC

Description Guilherme de Almeida Suckevicz 2021-11-17 16:52:25 UTC
In libarchive before 3.5.2, when an archive entry contains a symbolic link that has defined ACLs on Linux, on extraction the ACLs of the link target are modified. This is because the function acl_set_file() is used without a prior check if the file is not a symbolic link. On Linux ACLs on symbolic links are not supported.


Upstream patch:

Comment 1 Guilherme de Almeida Suckevicz 2021-11-17 16:52:46 UTC
Created libarchive tracking bugs for this issue:

Affects: fedora-all [bug 2024246]

Created mingw-libarchive tracking bugs for this issue:

Affects: fedora-all [bug 2024247]

Comment 11 Todd Cullum 2022-02-15 19:16:49 UTC
*** Bug 2054465 has been marked as a duplicate of this bug. ***

Comment 13 errata-xmlrpc 2022-03-15 10:20:11 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:0892 https://access.redhat.com/errata/RHSA-2022:0892

Comment 14 Product Security DevOps Team 2022-03-15 15:46:41 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):


Note You need to log in before you can comment on or make changes to this bug.