VDB
ALPINE-CVE-2021-40153
ALPINE-CVE-2021-40153
PUBLISHED
CVSS 8.100000381469727 HIGH
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.
Risk Scores
CVSS v3.1
8.100000381469727
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Alpine:v3.21 | squashfs-tools | 4.4-r1, 0, 4.0-r0 |
| Alpine:v3.19 | squashfs-tools | 0, 4.0-r0, 4.0-r1 |
| Alpine:v3.11 | squashfs-tools | 4.0-r0, 4.4-r0, 4.3-r6 |
| Alpine:v3.22 | squashfs-tools | 0, 4.3-r6, 4.3-r2 |
| Alpine:v3.15 | squashfs-tools | 4.1-r0, 0, 4.0-r0 |
| Alpine:v3.20 | squashfs-tools | 4.3-r1, 4.1-r0, 4.2-r0 |
| Alpine:v3.12 | squashfs-tools | 4.4-r0, 0, 4.0-r0 |
| Alpine:v3.17 | squashfs-tools | 4.2-r0, 4.2-r1, 4.2-r2 |
| Alpine:v3.14 | squashfs-tools | 4.0-r1, 4.2-r2, 4.3-r0 |
| Alpine:v3.18 | squashfs-tools | 4.3-r3, 4.4-r1, 4.4-r0 |
| Alpine:v3.23 | squashfs-tools | 4.0-r0, 4.0-r1, 4.1-r0 |
| Alpine:v3.16 | squashfs-tools | 4.3-r4, 4.3-r2, 4.4-r1 |
| Alpine:v3.13 | squashfs-tools | 0, 0, 4.4-r1 |
Timeline
- Aug 27, 2021 CVE Published
- Dec 3, 2025 CVE Updated
- Apr 30, 2026 Distribution Patch