CVE-2021-40153
Squashfs-tools Project Squashfs-tools vulnerability
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.
Affected products
Squashfs-tools, Fedora, Debian Linux, Enterprise Linux. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Squashfs-tools Project Squashfs-tools runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/plougher/squashfs-tools/commit/79b5a555058eef4e1e7ff220c344d39f8cd09646 · Patch
- bugs.launchpad.net/ubuntu/+source/squashfs-tools/+bug/1941790 · Third Party Advisory
- github.com/plougher/squashfs-tools/issues/72 · Exploit
- lists.debian.org/debian-lts-announce/2021/08/msg00030.html · Third Party Advisory
- www.debian.org/security/2021/dsa-4967 · Third Party Advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/G
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/R
- security.gentoo.org/glsa/202305-29
- nvd.nist.gov/vuln/detail/CVE-2021-40153
- cve.org/CVERecord?id=CVE-2021-40153
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.