CVE-2021-41072
Squashfs-tools Project Squashfs-tools vulnerability
squashfs_opendir in unsquash-2.c in Squashfs-Tools 4.5 allows Directory Traversal, a different vulnerability than CVE-2021-40153. A squashfs filesystem that has been crafted to include a symbolic link and then contents under the same filename in a filesystem can cause unsquashfs to first create the symbolic link pointing outside the expected directory, and then the subsequent write operation will cause the unsquashfs process to write through the symbolic link elsewhere in the filesystem.
Affected products
Squashfs-tools, Debian 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/e0485802ec72996c20026da320650d8362f555bd · Patch
- github.com/plougher/squashfs-tools/issues/72#issuecomment-913833405 · Exploit
- lists.debian.org/debian-lts-announce/2021/10/msg00017.html · Third Party Advisory
- www.debian.org/security/2021/dsa-4987 · Third Party Advisory
- security.gentoo.org/glsa/202305-29
- nvd.nist.gov/vuln/detail/CVE-2021-41072
- cve.org/CVERecord?id=CVE-2021-41072
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.