Path Traversal in Squashfs-Tools Project
CVE-2021-41072
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.
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.1 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H.
EPSS exploit prediction
EPSS 0.023, 83.6th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Squashfs-Tools Project — versions 4.5
- Debian Linux — versions 9.0, 10.0, 11.0
Weakness classification (CWE)
References
- github.com/plougher/squashfs-tools/commit/e0485802ec72996c20026da320650d8362f55… (Patch, Third Party Advisory)
- github.com/plougher/squashfs-tools/issues/72 (Exploit, Third Party Advisory)
- DSA-4987 (vendor-advisory, Third Party Advisory)
- [debian-lts-announce] 20211020 [SECURITY] [DLA 2789-1] squashfs-tools security update (mailing-list, Mailing List, Third Party Advisory)
- GLSA-202305-29 (vendor-advisory)