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…

PriorityP341high8.1CVSS 3.1
AVNACLPRNUIRSUCNIHAH
EPSS
2.50%
82.9th percentile
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
nvdv2.05.8MEDIUMAV:N/AC:M/Au:N/C:N/I:P/A:P
osv8.1HIGH
vendor_debian8.1HIGH
vendor_msrc8.1HIGH
vendor_redhat8.1HIGH
vendor_ubuntu8.1HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.