{"id":"CVE-2021-31566","published":"2022-08-23T00:00:00Z","modified":"2026-11-02T18:02:14Z","title":"An improper link resolution flaw can occur while extracting an archive leading to changing modes, times, access…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00392,"percentile":0.24937,"provenance":"source"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"references":[{"url":"https://github.com/libarchive/libarchive/issues/1566","tags":[]},{"url":"https://github.com/libarchive/libarchive/commit/b41daecb5ccb4c8e3b2c53fd6147109fc12c3043","tags":[]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2024237","tags":[]},{"url":"https://access.redhat.com/security/cve/CVE-2021-31566","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2022/11/msg00030.html","tags":["mailing-list"]}],"priority":{"score":5.0,"factors":[{"name":"EPSS percentile","points":4.99}]},"affectedVersions":[{"vendor":"n/a","product":"libarchive","versions":["Fixed in libarchive 3.5.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-02T18:01:56.778160Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2021-18460","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-cve-2015-2304-family-cve-2015-2304","parents":[{"from":"CVE-2015-2304","to":"CVE-2021-31566","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["libarchive/archive_write_disk_posix.c"],"commits":["https://github.com/libarchive/libarchive/commit/59357157706d47c365b2227739e17daba3607526","https://github.com/libarchive/libarchive/commit/b41daecb5ccb4c8e3b2c53fd6147109fc12c3043"],"basis":"shared function","functions":["archive_write_disk"]}]},{"from":"CVE-2016-5418","to":"CVE-2021-31566","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["libarchive/archive_write_disk_posix.c"],"commits":["https://github.com/libarchive/libarchive/commit/dfd6b54ce33960e420fb206d8872fb759b577ad9","https://github.com/libarchive/libarchive/commit/b41daecb5ccb4c8e3b2c53fd6147109fc12c3043"],"basis":"shared function","functions":["archive_write_disk"]}]}]}}