High severity8.1NVD Advisory· Published Aug 27, 2021· Updated Jun 17, 2026
CVE-2021-40153
CVE-2021-40153
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
32- cpe:2.3:a:squashfs-tools_project:squashfs-tools:4.5:*:*:*:*:*:*:*
cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
- Squashfs-Tools/Squashfs-Toolsdescription
- Range: <4.5
- Range: <4.5
- osv-coords22 versionspkg:rpm/almalinux/squashfs-toolspkg:rpm/opensuse/squashfs&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/squashfs&distro=openSUSE%20Leap%2015.5pkg:rpm/opensuse/squashfs&distro=openSUSE%20Leap%20Micro%205.3pkg:rpm/opensuse/squashfs&distro=openSUSE%20Leap%20Micro%205.4pkg:rpm/opensuse/squashfs&distro=openSUSE%20Tumbleweedpkg:rpm/suse/squashfs&distro=SUSE%20Enterprise%20Storage%207.1pkg:rpm/suse/squashfs&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-ESPOSpkg:rpm/suse/squashfs&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSSpkg:rpm/suse/squashfs&distro=SUSE%20Linux%20Enterprise%20Micro%205.1pkg:rpm/suse/squashfs&distro=SUSE%20Linux%20Enterprise%20Micro%205.2pkg:rpm/suse/squashfs&distro=SUSE%20Linux%20Enterprise%20Micro%205.3pkg:rpm/suse/squashfs&distro=SUSE%20Linux%20Enterprise%20Micro%205.4pkg:rpm/suse/squashfs&distro=SUSE%20Linux%20Enterprise%20Micro%205.5pkg:rpm/suse/squashfs&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP4pkg:rpm/suse/squashfs&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP5pkg:rpm/suse/squashfs&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/squashfs&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP3-LTSSpkg:rpm/suse/squashfs&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/squashfs&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP3pkg:rpm/suse/squashfs&distro=SUSE%20Manager%20Proxy%204.2pkg:rpm/suse/squashfs&distro=SUSE%20Manager%20Server%204.2
< 4.4-10.git1.el9+ 21 more
- (no CPE)range: < 4.4-10.git1.el9
- (no CPE)range: < 4.6.1-150300.3.3.1
- (no CPE)range: < 4.6.1-150300.3.3.1
- (no CPE)range: < 4.6.1-150300.3.3.1
- (no CPE)range: < 4.6.1-150300.3.3.1
- (no CPE)range: < 4.6.1-2.1
- (no CPE)range: < 4.6.1-150300.3.3.1
- (no CPE)range: < 4.6.1-150300.3.3.1
- (no CPE)range: < 4.6.1-150300.3.3.1
- (no CPE)range: < 4.6.1-150300.3.3.1
- (no CPE)range: < 4.6.1-150300.3.3.1
- (no CPE)range: < 4.6.1-150300.3.3.1
- (no CPE)range: < 4.6.1-150300.3.3.1
- (no CPE)range: < 4.6.1-150300.3.3.1
- (no CPE)range: < 4.6.1-150300.3.3.1
- (no CPE)range: < 4.6.1-150300.3.3.1
- (no CPE)range: < 4.6.1-8.3.2
- (no CPE)range: < 4.6.1-150300.3.3.1
- (no CPE)range: < 4.6.1-8.3.2
- (no CPE)range: < 4.6.1-150300.3.3.1
- (no CPE)range: < 4.6.1-150300.3.3.1
- (no CPE)range: < 4.6.1-150300.3.3.1
Patches
Vulnerability mechanics
References
8- github.com/plougher/squashfs-tools/commit/79b5a555058eef4e1e7ff220c344d39f8cd09646nvdPatchThird Party Advisory
- github.com/plougher/squashfs-tools/issues/72nvdExploitThird Party Advisory
- bugs.launchpad.net/ubuntu/+source/squashfs-tools/+bug/1941790nvdThird Party Advisory
- lists.debian.org/debian-lts-announce/2021/08/msg00030.htmlnvdMailing ListThird Party Advisory
- www.debian.org/security/2021/dsa-4967nvdThird Party Advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GSMRKVJMJFX3MB7D3PXJSYY3TLZROE5S/nvd
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RAOZ4BKWAC4Y3U2K5MMW3S77HWWXHQDL/nvd
- security.gentoo.org/glsa/202305-29nvd
News mentions
0No linked articles in our index yet.