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

VendorProductVersions
Alpine:v3.21squashfs-tools4.4-r1, 0, 4.0-r0
Alpine:v3.19squashfs-tools0, 4.0-r0, 4.0-r1
Alpine:v3.11squashfs-tools4.0-r0, 4.4-r0, 4.3-r6
Alpine:v3.22squashfs-tools0, 4.3-r6, 4.3-r2
Alpine:v3.15squashfs-tools4.1-r0, 0, 4.0-r0
Alpine:v3.20squashfs-tools4.3-r1, 4.1-r0, 4.2-r0
Alpine:v3.12squashfs-tools4.4-r0, 0, 4.0-r0
Alpine:v3.17squashfs-tools4.2-r0, 4.2-r1, 4.2-r2
Alpine:v3.14squashfs-tools4.0-r1, 4.2-r2, 4.3-r0
Alpine:v3.18squashfs-tools4.3-r3, 4.4-r1, 4.4-r0
Alpine:v3.23squashfs-tools4.0-r0, 4.0-r1, 4.1-r0
Alpine:v3.16squashfs-tools4.3-r4, 4.3-r2, 4.4-r1
Alpine:v3.13squashfs-tools0, 0, 4.4-r1

Timeline

  • Aug 27, 2021 CVE Published
  • Dec 3, 2025 CVE Updated
  • Apr 30, 2026 Distribution Patch
Open in Interactive Console →
$ Console Community · 100/wk Open console ›