UBUNTU-CVE-2021-40153
Dashboard / Vulnerabilities / UBUNTU-CVE-2021-40153
UBUNTU-CVE-2021-40153
Summary:
Details: 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.
References: https://ubuntu.com/security/CVE-2021-40153, https://bugs.launchpad.net/ubuntu/+source/squashfs-tools/+bug/1941790, https://github.com/plougher/squashfs-tools/commit/79b5a555058eef4e1e7ff220c344d39f8cd09646, https://github.com/plougher/squashfs-tools/issues/72, https://github.com/plougher/squashfs-tools/commit/79b5a555058eef4e1e7ff220c344d39f8cd09646, https://ubuntu.com/security/notices/USN-5057-1, https://ubuntu.com/security/notices/USN-5078-2, https://www.cve.org/CVERecord?id=CVE-2021-40153
Affected packages
Package
Name: squashfs-tools
Purl: pkg:deb/ubuntu/squashfs-tools@1:4.3-3ubuntu2.16.04.3+esm1?arch=source&distro=esm-infra/xenial
Affected ranges
Type: ECOSYSTEM
Events:
