PT-2019-6092 · Unknown+9 · Squashfs-Tools+9
Etienne Stalmans
·
Published
2019-09-10
·
Updated
2024-09-05
·
CVE-2021-40153
CVSS v3.1
8.1
High
| Vector | AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Squashfs-Tools version 4.5
Description
The issue is related to the
squashfs opendir function in the unsquash-1.c component of Squashfs-Tools. This function stores the filename in the directory entry, which is then used by unsquashfs to create the new file during the unsquash process. However, the filename is not validated for traversal outside of the destination directory, allowing writing to locations outside of the destination. This can be exploited by a remote attacker to compromise data integrity and cause a denial of service.Recommendations
For Squashfs-Tools version 4.5, as a temporary workaround, consider disabling the
squashfs opendir function until a patch is available. Restrict access to the unsquashfs component to minimize the risk of exploitation. Avoid using the unsquashfs command with untrusted input until the issue is resolved. At the moment, there is no information about a newer version that contains a fix for this vulnerability.Exploit
Path traversal
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Almalinux
Astra Linux
Centos
Linuxmint
Red Hat
Rocky Linux
Squashfs-Tools
Suse
Ubuntu