cbcvebase.
CVE-2021-40153
published 2021-08-27

CVE-2021-40153: 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…

high8.1CVSS 3.1
AVNACLPRNUIRSUCNIHAH
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.

Affected

22 ranges
VendorProductVersion rangeFixed in
debiandebian_linux
debiandebian_linux
debiandebian_linux
debiansquashfs-tools< squashfs-tools 1:4.5-2 (bookworm)squashfs-tools 1:4.5-2 (bookworm)
debiansquashfs-tools< squashfs-tools 1:4.5-3 (bookworm)squashfs-tools 1:4.5-3 (bookworm)
fedoraprojectfedora
fedoraprojectfedora
msrccbl2_squashfs-tools_4.5.1-1_on_cbl_mariner_2.0
msrccbl_mariner_2.0_arm
msrccbl_mariner_2.0_x64
redhatenterprise_linux
redhatenterprise_linux
squashfs-tools_projectsquashfs-tools
squashfs-tools_projectsquashfs-tools>= 0 < 1:4.4-2+deb11u21:4.4-2+deb11u2
squashfs-tools_projectsquashfs-tools>= 0 < 1:4.4-2+deb11u11:4.4-2+deb11u1
squashfs-tools_projectsquashfs-tools>= 0 < 1:4.5-31:4.5-3
squashfs-tools_projectsquashfs-tools>= 0 < 1:4.5-21:4.5-2
squashfs-tools_projectsquashfs-tools>= 0 < 1:4.5-31:4.5-3
squashfs-tools_projectsquashfs-tools>= 0 < 1:4.5-21:4.5-2
squashfs-tools_projectsquashfs-tools>= 0 < 1:4.5-31:4.5-3
squashfs-tools_projectsquashfs-tools>= 0 < 1:4.5-21:4.5-2
squashfs-tools_projectsquashfs-tools>= 0 < 1:4.3-3ubuntu2.16.04.3+esm11:4.3-3ubuntu2.16.04.3+esm1

CVSS provenance

nvdv3.18.1HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
osv8.1HIGH