{"id":"ALPINE-CVE-2021-41072","details":"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.","modified":"2025-12-03T22:51:39.863621Z","published":"2021-09-14T01:15:07.747Z","upstream":["CVE-2021-41072"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2021-41072"}],"affected":[{"package":{"name":"squashfs-tools","ecosystem":"Alpine:v3.14","purl":"pkg:apk/alpine/squashfs-tools?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.5-r1"}]}],"versions":["4.0-r0","4.0-r1","4.1-r0","4.2-r0","4.2-r1","4.2-r2","4.3-r0","4.3-r1","4.3-r2","4.3-r3","4.3-r4","4.3-r5","4.3-r6","4.4-r0","4.4-r1","4.5-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-41072.json"}},{"package":{"name":"squashfs-tools","ecosystem":"Alpine:v3.15","purl":"pkg:apk/alpine/squashfs-tools?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.5-r1"}]}],"versions":["4.0-r0","4.0-r1","4.1-r0","4.2-r0","4.2-r1","4.2-r2","4.3-r0","4.3-r1","4.3-r2","4.3-r3","4.3-r4","4.3-r5","4.3-r6","4.4-r0","4.4-r1","4.5-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-41072.json"}},{"package":{"name":"squashfs-tools","ecosystem":"Alpine:v3.16","purl":"pkg:apk/alpine/squashfs-tools?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.5-r1"}]}],"versions":["4.0-r0","4.0-r1","4.1-r0","4.2-r0","4.2-r1","4.2-r2","4.3-r0","4.3-r1","4.3-r2","4.3-r3","4.3-r4","4.3-r5","4.3-r6","4.4-r0","4.4-r1","4.5-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-41072.json"}},{"package":{"name":"squashfs-tools","ecosystem":"Alpine:v3.17","purl":"pkg:apk/alpine/squashfs-tools?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.5-r1"}]}],"versions":["4.0-r0","4.0-r1","4.1-r0","4.2-r0","4.2-r1","4.2-r2","4.3-r0","4.3-r1","4.3-r2","4.3-r3","4.3-r4","4.3-r5","4.3-r6","4.4-r0","4.4-r1","4.5-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-41072.json"}},{"package":{"name":"squashfs-tools","ecosystem":"Alpine:v3.18","purl":"pkg:apk/alpine/squashfs-tools?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.5-r1"}]}],"versions":["4.0-r0","4.0-r1","4.1-r0","4.2-r0","4.2-r1","4.2-r2","4.3-r0","4.3-r1","4.3-r2","4.3-r3","4.3-r4","4.3-r5","4.3-r6","4.4-r0","4.4-r1","4.5-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-41072.json"}},{"package":{"name":"squashfs-tools","ecosystem":"Alpine:v3.19","purl":"pkg:apk/alpine/squashfs-tools?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.5-r1"}]}],"versions":["4.0-r0","4.0-r1","4.1-r0","4.2-r0","4.2-r1","4.2-r2","4.3-r0","4.3-r1","4.3-r2","4.3-r3","4.3-r4","4.3-r5","4.3-r6","4.4-r0","4.4-r1","4.5-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-41072.json"}},{"package":{"name":"squashfs-tools","ecosystem":"Alpine:v3.20","purl":"pkg:apk/alpine/squashfs-tools?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.5-r1"}]}],"versions":["4.0-r0","4.0-r1","4.1-r0","4.2-r0","4.2-r1","4.2-r2","4.3-r0","4.3-r1","4.3-r2","4.3-r3","4.3-r4","4.3-r5","4.3-r6","4.4-r0","4.4-r1","4.5-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-41072.json"}},{"package":{"name":"squashfs-tools","ecosystem":"Alpine:v3.21","purl":"pkg:apk/alpine/squashfs-tools?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.5-r1"}]}],"versions":["4.0-r0","4.0-r1","4.1-r0","4.2-r0","4.2-r1","4.2-r2","4.3-r0","4.3-r1","4.3-r2","4.3-r3","4.3-r4","4.3-r5","4.3-r6","4.4-r0","4.4-r1","4.5-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-41072.json"}},{"package":{"name":"squashfs-tools","ecosystem":"Alpine:v3.22","purl":"pkg:apk/alpine/squashfs-tools?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.5-r1"}]}],"versions":["4.0-r0","4.0-r1","4.1-r0","4.2-r0","4.2-r1","4.2-r2","4.3-r0","4.3-r1","4.3-r2","4.3-r3","4.3-r4","4.3-r5","4.3-r6","4.4-r0","4.4-r1","4.5-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-41072.json"}},{"package":{"name":"squashfs-tools","ecosystem":"Alpine:v3.23","purl":"pkg:apk/alpine/squashfs-tools?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.5-r1"}]}],"versions":["4.0-r0","4.0-r1","4.1-r0","4.2-r0","4.2-r1","4.2-r2","4.3-r0","4.3-r1","4.3-r2","4.3-r3","4.3-r4","4.3-r5","4.3-r6","4.4-r0","4.4-r1","4.5-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-41072.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H"}]}