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 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
NISTNIST
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
mitreCNA
---
---
CVEADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 61%
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
bullseye (security)
1:4.4-2+deb11u2
fixed
bullseye
1:4.4-2+deb11u2
fixed
bookworm
1:4.5.1-1
fixed
sid
1:4.6.1-1
fixed
trixie
1:4.6.1-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
squashfs-tools
jammy
Fixed 1:4.4-2ubuntu1
released
impish
Fixed 1:4.4-2ubuntu1
released
hirsute
Fixed 1:4.4-2ubuntu0.1
released
focal
Fixed 1:4.4-1ubuntu0.1
released
bionic
Fixed 1:4.3-6ubuntu0.18.04.3
released
xenial
Fixed 1:4.3-3ubuntu2.16.04.3+esm1
released
trusty
dne