CVE-2021-40153
publishedsquashfs-tools: unvalidated filepaths allow writing outside of destination
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Amazon Linux | AL2 | Release evaluationALAS2-2023-2152 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | squashfs-tools | Advisory build | 4.3-21.el8 | ALSA-2024:3139 |
| Alpine Linux | edge | squashfs-tools | Fixed | 4.5-r0 | Package fix record |
| Debian | bullseye | squashfs-tools | Advisory build | 1:4.4-2+deb11u1 | DSA-4967-1 |
| Oracle Linux | 8 | squashfs-toolsaarch64 | Advisory build | 0:4.3-21.el8 | ELSA-2024-3139 |
| Red Hat Enterprise Linux | RHEL-8 | squashfs-toolsaarch64 | Advisory build | 4.3-21.el8 | RHSA-2024:3139 |
| SUSE / openSUSE | SLE-12-SP5 | squashfsaarch64 | Advisory build | 4.6.1-8.3.2 | SUSE-SU-2023:4424-1 |
Show 94 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | bionic | squashfs-tools | Advisory build | 1:4.3-6ubuntu0.18.04.3 | USN-5057-1 |
| Amazon Linux | AL2 | squashfs-toolsaarch64 | Listed in advisory | Not stated | ALAS2-2023-2152 |
| Rocky Linux | 8 | squashfs-toolsaarch64 | Listed in advisory | Not stated | RLSA-2024:3139 |
| AlmaLinux | 9 | squashfs-tools | Advisory build | 4.4-10.git1.el9 | ALSA-2024:2396 |
| Alpine Linux | v3.11 | squashfs-tools | Fixed | 4.5-r0 | Package fix record |
| Alpine Linux | v3.12 | squashfs-tools | Fixed | 4.5-r0 | Package fix record |
| Alpine Linux | v3.13 | squashfs-tools | Fixed | 4.5-r0 | Package fix record |
| Alpine Linux | v3.14 | squashfs-tools | Fixed | 4.5-r0 | Package fix record |
| Alpine Linux | v3.15 | squashfs-tools | Fixed | 4.5-r0 | Package fix record |
| Alpine Linux | v3.16 | squashfs-tools | Fixed | 4.5-r0 | Package fix record |
| Alpine Linux | v3.17 | squashfs-tools | Fixed | 4.5-r0 | Package fix record |
| Alpine Linux | v3.18 | squashfs-tools | Fixed | 4.5-r0 | Package fix record |
| Alpine Linux | v3.19 | squashfs-tools | Fixed | 4.5-r0 | Package fix record |
| Alpine Linux | v3.20 | squashfs-tools | Fixed | 4.5-r0 | Package fix record |
| Alpine Linux | v3.21 | squashfs-tools | Fixed | 4.5-r0 | Package fix record |
| Alpine Linux | v3.22 | squashfs-tools | Fixed | 4.5-r0 | Package fix record |
| Alpine Linux | v3.23 | squashfs-tools | Fixed | 4.5-r0 | Package fix record |
| Alpine Linux | v3.24 | squashfs-tools | Fixed | 4.5-r0 | Package fix record |
| Debian | buster | squashfs-tools | Advisory build | 1:4.3-12+deb10u1 | DSA-4967-1 |
| Debian | stretch | squashfs-tools | Advisory build | 1:4.3-3+deb9u2 | DLA-2752-1 |
| Oracle Linux | 8 | squashfs-toolsx86_64 | Advisory build | 0:4.3-21.el8 | ELSA-2024-3139 |
| Oracle Linux | 9 | squashfs-toolsaarch64 | Advisory build | 0:4.4-10.git1.el9 | ELSA-2024-2396 |
| Oracle Linux | 9 | squashfs-toolsx86_64 | Advisory build | 0:4.4-10.git1.el9 | ELSA-2024-2396 |
| Red Hat Enterprise Linux | RHEL-8 | squashfs-toolsppc64le | Advisory build | 4.3-21.el8 | RHSA-2024:3139 |
| Red Hat Enterprise Linux | RHEL-8 | squashfs-toolss390x | Advisory build | 4.3-21.el8 | RHSA-2024:3139 |
| Red Hat Enterprise Linux | RHEL-8 | squashfs-toolssrc | Advisory build | 4.3-21.el8 | RHSA-2024:3139 |
| Red Hat Enterprise Linux | RHEL-8 | squashfs-toolsx86_64 | Advisory build | 4.3-21.el8 | RHSA-2024:3139 |
| Red Hat Enterprise Linux | RHEL-8 | squashfs-tools-debuginfoaarch64 | Advisory build | 4.3-21.el8 | RHSA-2024:3139 |
| Red Hat Enterprise Linux | RHEL-8 | squashfs-tools-debuginfoppc64le | Advisory build | 4.3-21.el8 | RHSA-2024:3139 |
| Red Hat Enterprise Linux | RHEL-8 | squashfs-tools-debuginfos390x | Advisory build | 4.3-21.el8 | RHSA-2024:3139 |
| Red Hat Enterprise Linux | RHEL-8 | squashfs-tools-debuginfox86_64 | Advisory build | 4.3-21.el8 | RHSA-2024:3139 |
| Red Hat Enterprise Linux | RHEL-8 | squashfs-tools-debugsourceaarch64 | Advisory build | 4.3-21.el8 | RHSA-2024:3139 |
| Red Hat Enterprise Linux | RHEL-8 | squashfs-tools-debugsourceppc64le | Advisory build | 4.3-21.el8 | RHSA-2024:3139 |
| Red Hat Enterprise Linux | RHEL-8 | squashfs-tools-debugsources390x | Advisory build | 4.3-21.el8 | RHSA-2024:3139 |
| Red Hat Enterprise Linux | RHEL-8 | squashfs-tools-debugsourcex86_64 | Advisory build | 4.3-21.el8 | RHSA-2024:3139 |
| Red Hat Enterprise Linux | RHEL-9 | squashfs-toolsaarch64 | Advisory build | 4.4-10.git1.el9 | RHSA-2024:2396 |
| Red Hat Enterprise Linux | RHEL-9 | squashfs-toolsppc64le | Advisory build | 4.4-10.git1.el9 | RHSA-2024:2396 |
| Red Hat Enterprise Linux | RHEL-9 | squashfs-toolss390x | Advisory build | 4.4-10.git1.el9 | RHSA-2024:2396 |
| Red Hat Enterprise Linux | RHEL-9 | squashfs-toolssrc | Advisory build | 4.4-10.git1.el9 | RHSA-2024:2396 |
| Red Hat Enterprise Linux | RHEL-9 | squashfs-toolsx86_64 | Advisory build | 4.4-10.git1.el9 | RHSA-2024:2396 |
| Red Hat Enterprise Linux | RHEL-9 | squashfs-tools-debuginfoaarch64 | Advisory build | 4.4-10.git1.el9 | RHSA-2024:2396 |
| Red Hat Enterprise Linux | RHEL-9 | squashfs-tools-debuginfoppc64le | Advisory build | 4.4-10.git1.el9 | RHSA-2024:2396 |
| Red Hat Enterprise Linux | RHEL-9 | squashfs-tools-debuginfos390x | Advisory build | 4.4-10.git1.el9 | RHSA-2024:2396 |
| Red Hat Enterprise Linux | RHEL-9 | squashfs-tools-debuginfox86_64 | Advisory build | 4.4-10.git1.el9 | RHSA-2024:2396 |
| Red Hat Enterprise Linux | RHEL-9 | squashfs-tools-debugsourceaarch64 | Advisory build | 4.4-10.git1.el9 | RHSA-2024:2396 |
| Red Hat Enterprise Linux | RHEL-9 | squashfs-tools-debugsourceppc64le | Advisory build | 4.4-10.git1.el9 | RHSA-2024:2396 |
| Red Hat Enterprise Linux | RHEL-9 | squashfs-tools-debugsources390x | Advisory build | 4.4-10.git1.el9 | RHSA-2024:2396 |
| Red Hat Enterprise Linux | RHEL-9 | squashfs-tools-debugsourcex86_64 | Advisory build | 4.4-10.git1.el9 | RHSA-2024:2396 |
| SUSE / openSUSE | SLE-12-SP5 | squashfsppc64le | Advisory build | 4.6.1-8.3.2 | SUSE-SU-2023:4424-1 |
| SUSE / openSUSE | SLE-12-SP5 | squashfss390x | Advisory build | 4.6.1-8.3.2 | SUSE-SU-2023:4424-1 |
| SUSE / openSUSE | SLE-12-SP5 | squashfsx86_64 | Advisory build | 4.6.1-8.3.2 | SUSE-SU-2023:4424-1 |
| SUSE / openSUSE | SLE-15-SP3 | squashfsaarch64 | Advisory build | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SUSE / openSUSE | SLE-15-SP3 | squashfsppc64le | Advisory build | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SUSE / openSUSE | SLE-15-SP3 | squashfss390x | Advisory build | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SUSE / openSUSE | SLE-15-SP3 | squashfsx86_64 | Advisory build | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SUSE / openSUSE | SLE-15-SP4 | squashfsaarch64 | Advisory build | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SUSE / openSUSE | SLE-15-SP4 | squashfsppc64le | Advisory build | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SUSE / openSUSE | SLE-15-SP4 | squashfss390x | Advisory build | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SUSE / openSUSE | SLE-15-SP4 | squashfsx86_64 | Advisory build | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SUSE / openSUSE | SLE-15-SP5 | squashfsaarch64 | Advisory build | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SUSE / openSUSE | SLE-15-SP5 | squashfsppc64le | Advisory build | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SUSE / openSUSE | SLE-15-SP5 | squashfss390x | Advisory build | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SUSE / openSUSE | SLE-15-SP5 | squashfsx86_64 | Advisory build | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SUSE / openSUSE | SLE-5 | squashfsaarch64 | Advisory build | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SUSE / openSUSE | SLE-5 | squashfsppc64le | Advisory build | 4.6.1-150300.3.3.1 | SUSE-SU-2024:2463-1 |
| SUSE / openSUSE | SLE-5 | squashfss390x | Advisory build | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SUSE / openSUSE | SLE-5 | squashfsx86_64 | Advisory build | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | squashfsaarch64 | Advisory build | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | squashfsppc64le | Advisory build | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | squashfss390x | Advisory build | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | squashfsx86_64 | Advisory build | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | squashfsaarch64 | Advisory build | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | squashfsppc64le | Advisory build | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | squashfss390x | Advisory build | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | squashfsx86_64 | Advisory build | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SUSE / openSUSE | openSUSE-Leap-Micro-5.3 | squashfsaarch64 | Advisory build | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SUSE / openSUSE | openSUSE-Leap-Micro-5.3 | squashfsx86_64 | Advisory build | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SUSE / openSUSE | openSUSE-Leap-Micro-5.4 | squashfsaarch64 | Advisory build | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SUSE / openSUSE | openSUSE-Leap-Micro-5.4 | squashfss390x | Advisory build | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SUSE / openSUSE | openSUSE-Leap-Micro-5.4 | squashfsx86_64 | Advisory build | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | squashfsaarch64 | Advisory build | 4.6.1-2.1 | OPENSUSE-SU-2024:13035-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | squashfsppc64le | Advisory build | 4.6.1-2.1 | OPENSUSE-SU-2024:13035-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | squashfss390x | Advisory build | 4.6.1-2.1 | OPENSUSE-SU-2024:13035-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | squashfsx86_64 | Advisory build | 4.6.1-2.1 | OPENSUSE-SU-2024:13035-1 |
| Ubuntu | focal | squashfs-tools | Advisory build | 1:4.4-1ubuntu0.1 | USN-5057-1 |
| Ubuntu | xenial | squashfs-tools | Advisory build | 1:4.3-3ubuntu2.16.04.3+esm1 | USN-5078-2 |
| Amazon Linux | AL2 | squashfs-toolsi686 | Listed in advisory | Not stated | ALAS2-2023-2152 |
| Amazon Linux | AL2 | squashfs-toolssrc | Listed in advisory | Not stated | ALAS2-2023-2152 |
| Amazon Linux | AL2 | squashfs-toolsx86_64 | Listed in advisory | Not stated | ALAS2-2023-2152 |
| Rocky Linux | 8 | squashfs-toolssrc | Listed in advisory | Not stated | RLSA-2024:3139 |
| Rocky Linux | 8 | squashfs-toolsx86_64 | Listed in advisory | Not stated | RLSA-2024:3139 |
| Rocky Linux | 8 | squashfs-tools-debuginfoaarch64 | Listed in advisory | Not stated | RLSA-2024:3139 |
| Rocky Linux | 8 | squashfs-tools-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2024:3139 |
| Rocky Linux | 8 | squashfs-tools-debugsourceaarch64 | Listed in advisory | Not stated | RLSA-2024:3139 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
8- https://bugs.launchpad.net/ubuntu/+source/squashfs-tools/+bug/1941790
- https://github.com/plougher/squashfs-tools/commit/79b5a555058eef4e1e7ff220c344d39f8cd09646
- https://github.com/plougher/squashfs-tools/issues/72
- [debian-lts-announce] 20210831 [SECURITY] [DLA 2752-1] squashfs-tools security update https://lists.debian.org/debian-lts-announce/2021/08/msg00030.html
- FEDORA-2021-9fb6da134f https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GSMRKVJMJFX3MB7D3PXJSYY3TLZROE5S/
- FEDORA-2021-cdbd827c1e https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RAOZ4BKWAC4Y3U2K5MMW3S77HWWXHQDL/
- GLSA-202305-29 https://security.gentoo.org/glsa/202305-29
- DSA-4967 https://www.debian.org/security/2021/dsa-4967
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 32d3f25e8b4d6587d43a3118ba9830d40c0e9c141198ca535b1202a84eff2822
- Ingested
- 23 Sep 2026, 07:55:59 UTC
- Source record
- Official CVE record