squashfs_opendir in unsquash-1.c in Squashfs-Tools 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.
History

No history.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published: 2021-08-27T00:00:00

Updated: 2024-08-04T02:27:31.648Z

Reserved: 2021-08-27T00:00:00

Link: CVE-2021-40153

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Modified

Published: 2021-08-27T15:15:09.657

Modified: 2023-11-07T03:38:32.493

Link: CVE-2021-40153

cve-icon Redhat

Severity : Moderate

Publid Date: 2019-09-10T00:00:00Z

Links: CVE-2021-40153 - Bugzilla