CVE-2021-40153

EUVD-2021-27338
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.
Path Traversal
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
8.1 HIGH
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 67%
Affected Products (NVD)
VendorProductVersion
squashfs-tools_projectsquashfs-tools
4.5
debiandebian_linux
9.0
debiandebian_linux
10.0
redhatenterprise_linux
7.0
redhatenterprise_linux
8.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
squashfs-tools
bookworm
1:4.5.1-1
fixed
bullseye
1:4.4-2+deb11u2
fixed
bullseye (security)
1:4.4-2+deb11u2
fixed
sid
1:4.6.1-1
fixed
trixie
1:4.6.1-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
squashfs-tools
bionic
Fixed 1:4.3-6ubuntu0.18.04.3
released
focal
Fixed 1:4.4-1ubuntu0.1
released
hirsute
Fixed 1:4.4-2ubuntu0.1
released
impish
Fixed 1:4.4-2ubuntu1
released
jammy
Fixed 1:4.4-2ubuntu1
released
trusty
dne
xenial
Fixed 1:4.3-3ubuntu2.16.04.3+esm1
released