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.
[ { "signature_type": "Function", "id": "CVE-2021-31566-0834228a", "source": "https://github.com/libarchive/libarchive/commit/b41daecb5ccb4c8e3b2c53fd6147109fc12c3043", "signature_version": "v1", "target": { "function": "new_fixup", "file": "libarchive/archive_write_disk_posix.c" }, "digest": { "function_hash": "320885234252780684570698584660020445109", "length": 392.0 }, "deprecated": false }, { "signature_type": "Function", "id": "CVE-2021-31566-ac5c5a7f", "source": "https://github.com/libarchive/libarchive/commit/b41daecb5ccb4c8e3b2c53fd6147109fc12c3043", "signature_version": "v1", "target": { "function": "_archive_write_disk_close", "file": "libarchive/archive_write_disk_posix.c" }, "digest": { "function_hash": "110734215287798123614942951414182550419", "length": 1519.0 }, "deprecated": false }, { "signature_type": "Line", "id": "CVE-2021-31566-d6100c6d", "source": "https://github.com/libarchive/libarchive/commit/b41daecb5ccb4c8e3b2c53fd6147109fc12c3043", "signature_version": "v1", "target": { "file": "libarchive/archive_write_disk_posix.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "334213001812460528018391827159886250604", "298298676331893685508912404895218376082", "281934148289165203262543037398505981918", "133516452297774702506059862221571155387", "255221266610567971253350916651381886473", "170682487718179720080081239390752149260", "170025671853692686754571705056591065980", "45037131218959646499624916514381153602", "186193754164664539686045318506423310731", "225543418414766849505237414068380309124", "86909181518846551630439248081499842741", "204079521770618757456484582354817443455", "186196365260791091821237758044867926710", "177454630852752040839969091402436254366", "19420843327646963772774605998605845839", "293067094968881452369372668079840711572", "203792904399839432760890263818080987312", "5073500280348788259073985801637204843", "56277685507538684435295851773380652368", "144927451397420683091458932258143307900" ] }, "deprecated": false } ]