Vulnerability database / CVE-2021-40153
CVE-2021-40153
HIGH 8.1 CVSS 3.1 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.
Published 27 Aug 2021
Last modified 17 Jun 2026 Assigned by cve@mitre.org NVD status Modified Weakness
CWE-22 Sources
NVD JSON Scores
Source Scored by Version Score Vector / decision
NVD
nvd@nist.gov (Primary)
CVSS 3.1
HIGH 8.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:HNVD
nvd@nist.gov (Primary)
CVSS 2.0
MEDIUM 5.8
AV:N/AC:M/Au:N/C:N/I:P/A:P
Affected
Source Vendor / ecosystem Product / package Affected versions Fixed in
NVD
squashfs-tools_project
squashfs-toolscpe:2.3:a:squashfs-tools_project:squashfs-tools:4.5:*:*:*:*:*:*:*
= 4.5
NVD
fedoraproject
fedoracpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
= 34
NVD
debian
debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
= 9.0
NVD
debian
debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
= 10.0
NVD
redhat
enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
= 7.0
NVD
redhat
enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
= 8.0
NVD
fedoraproject
fedoracpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
= 33
References
History
25 Nov 2026 20:33 UTC · NVD: first stored (published 27 Aug 2021)