squashfs_opendir in unsquash-1.c in Squashfs-Tools versions before 4.5 stores the filename in the directory entry; this is then used by unsquashfs to create the new file during the unsquash. The filename is not validated for traversal outside of the destination directory, and thus allows writing to locations outside of the destination. Reference: https://github.com/plougher/squashfs-tools/issues/72 Upstream patch: https://github.com/plougher/squashfs-tools/commit/79b5a555058eef4e1e7ff220c344d39f8cd09646
Created squashfs-tools tracking bugs for this issue: Affects: fedora-all [bug 1998622]
FEDORA-2021-cdbd827c1e has been pushed to the Fedora 34 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2021-9fb6da134f has been pushed to the Fedora 33 stable repository. If problem still persists, please make note of it in this bug report.
The fix is now in all current versions of Fedora.