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.
Advisories
Source ID Title
Debian DLA Debian DLA DLA-2752-1 squashfs-tools security update
Debian DSA Debian DSA DSA-4967-1 squashfs-tools security update
EUVD EUVD EUVD-2021-27338 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.
Ubuntu USN Ubuntu USN USN-5057-1 Squashfs-Tools vulnerability
Ubuntu USN Ubuntu USN USN-5078-2 Squashfs-Tools vulnerabilities
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

No history.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

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: 2024-11-21T06:23:40.510

Link: CVE-2021-40153

cve-icon Redhat

Severity : Moderate

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

Links: CVE-2021-40153 - Bugzilla

cve-icon OpenCVE Enrichment

No data.