
CVE catalog
CVE-2021-40153
squashfs-tools: CVE-2021-40153
- Severity
- High · CVSS 8.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 2.50% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | squashfs-tools | sid | 1:4.7.5-1 | fixed |
| Debian | squashfs-tools | forky | 1:4.7.5-1 | fixed |
| Debian | squashfs-tools | trixie | 1:4.6.1-1 | fixed |
| Debian | squashfs-tools | bookworm | 1:4.5.1-1 | fixed |
| Alpine | squashfs-tools | 3.11 | 4.5-r0 | fixed |
| Alpine | squashfs-tools | 3.12 | 4.5-r0 | fixed |
| Alpine | squashfs-tools | 3.13 | 4.5-r0 | fixed |
| Alpine | squashfs-tools | 3.14 | 4.5-r0 | fixed |
| Alpine | squashfs-tools | 3.15 | 4.5-r0 | fixed |
| Alpine | squashfs-tools | 3.16 | 4.5-r0 | fixed |
| Alpine | squashfs-tools | 3.17 | 4.5-r0 | fixed |
| Alpine | squashfs-tools | 3.18 | 4.5-r0 | fixed |
| Alpine | squashfs-tools | 3.19 | 4.5-r0 | fixed |
| Alpine | squashfs-tools | 3.20 | 4.5-r0 | fixed |
| Alpine | squashfs-tools | 3.21 | 4.5-r0 | fixed |
| Alpine | squashfs-tools | 3.22 | 4.5-r0 | fixed |
| Alpine | squashfs-tools | 3.23 | 4.5-r0 | fixed |
| Alpine | squashfs-tools | 3.24 | 4.5-r0 | fixed |
| Ubuntu | squashfs-tools | pro | 1:4.2+20130409-2.1 | vulnerable |
| Ubuntu | squashfs-tools | pro | 1:4.3-3 | vulnerable |
| Ubuntu | squashfs-tools | pro | 1:4.3-3ubuntu1 | vulnerable |
| Ubuntu | squashfs-tools | pro | 1:4.3-3ubuntu2 | vulnerable |
| Ubuntu | squashfs-tools | pro | 1:4.3-3ubuntu2.16.04.1 | vulnerable |
| Ubuntu | squashfs-tools | pro | 1:4.3-3ubuntu2.16.04.2 | vulnerable |
| Ubuntu | squashfs-tools | pro | 1:4.3-3ubuntu2.16.04.3 | vulnerable |
| Ubuntu | squashfs-tools | pro | 1:4.3-3ubuntu2.16.04.3+esm1 | fixed |
| Ubuntu | squashfs-tools | 18.04 | 1:4.3-4ubuntu1 | vulnerable |
| Ubuntu | squashfs-tools | 18.04 | 1:4.3-4ubuntu2 | vulnerable |
| Ubuntu | squashfs-tools | 18.04 | 1:4.3-6 | vulnerable |
| Ubuntu | squashfs-tools | 18.04 | 1:4.3-6ubuntu0.18.04.1 | vulnerable |
| Ubuntu | squashfs-tools | 18.04 | 1:4.3-6ubuntu0.18.04.2 | vulnerable |
| Ubuntu | squashfs-tools | 18.04 | 1:4.3-6ubuntu0.18.04.3 | fixed |
| Ubuntu | squashfs-tools | 20.04 | 1:4.4-1 | vulnerable |
| Ubuntu | squashfs-tools | 20.04 | 1:4.4-1ubuntu0.1 | fixed |
| Ubuntu | squashfs-tools | pro | 1:4.2+20130409-2.1 | vulnerable |
| Ubuntu | squashfs-tools | pro | 1:4.3-3 | vulnerable |
| Ubuntu | squashfs-tools | pro | 1:4.3-3ubuntu1 | vulnerable |
| Ubuntu | squashfs-tools | pro | 1:4.3-3ubuntu2 | vulnerable |
| Ubuntu | squashfs-tools | pro | 1:4.3-3ubuntu2.16.04.1 | vulnerable |
| Ubuntu | squashfs-tools | pro | 1:4.3-3ubuntu2.16.04.2 | vulnerable |
| Ubuntu | squashfs-tools | pro | 1:4.3-3ubuntu2.16.04.3 | vulnerable |
| Ubuntu | squashfs-tools | pro | 1:4.3-3ubuntu2.16.04.3+esm1 | fixed |
| Ubuntu | squashfs-tools | 18.04 | 1:4.3-4ubuntu1 | vulnerable |
| Ubuntu | squashfs-tools | 18.04 | 1:4.3-4ubuntu2 | vulnerable |
| Ubuntu | squashfs-tools | 18.04 | 1:4.3-6 | vulnerable |
| Ubuntu | squashfs-tools | 18.04 | 1:4.3-6ubuntu0.18.04.1 | vulnerable |
| Ubuntu | squashfs-tools | 18.04 | 1:4.3-6ubuntu0.18.04.2 | vulnerable |
| Ubuntu | squashfs-tools | 18.04 | 1:4.3-6ubuntu0.18.04.3 | fixed |
| Ubuntu | squashfs-tools | 20.04 | 1:4.4-1 | vulnerable |
| Ubuntu | squashfs-tools | 20.04 | 1:4.4-1ubuntu0.1 | fixed |
| Opensuse | squashfs | tumbleweed | 4.6.1-2.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | squashfs-tools | source | sid | 1:4.5-2 | not yet assigned | Not reported | Not reported |
| Debian | squashfs-tools | source | forky | 1:4.5-2 | not yet assigned | Not reported | Not reported |
| Debian | squashfs-tools | source | trixie | 1:4.5-2 | not yet assigned | Not reported | Not reported |
| Debian | squashfs-tools | source | bookworm | 1:4.5-2 | not yet assigned | Not reported | Not reported |
| Alpine | squashfs-tools | apk | 3.11 | 4.5-r0 | Not reported | ALPINE-CVE-2021-40153 | Not reported |
| Alpine | squashfs-tools | apk | 3.12 | 4.5-r0 | Not reported | ALPINE-CVE-2021-40153 | Not reported |
| Alpine | squashfs-tools | apk | 3.13 | 4.5-r0 | Not reported | ALPINE-CVE-2021-40153 | Not reported |
| Alpine | squashfs-tools | apk | 3.14 | 4.5-r0 | Not reported | ALPINE-CVE-2021-40153 | Not reported |
| Alpine | squashfs-tools | apk | 3.15 | 4.5-r0 | Not reported | ALPINE-CVE-2021-40153 | Not reported |
| Alpine | squashfs-tools | apk | 3.16 | 4.5-r0 | Not reported | ALPINE-CVE-2021-40153 | Not reported |
| Alpine | squashfs-tools | apk | 3.17 | 4.5-r0 | Not reported | ALPINE-CVE-2021-40153 | Not reported |
| Alpine | squashfs-tools | apk | 3.18 | 4.5-r0 | Not reported | ALPINE-CVE-2021-40153 | Not reported |
| Alpine | squashfs-tools | apk | 3.19 | 4.5-r0 | Not reported | ALPINE-CVE-2021-40153 | Not reported |
| Alpine | squashfs-tools | apk | 3.20 | 4.5-r0 | Not reported | ALPINE-CVE-2021-40153 | Not reported |
| Alpine | squashfs-tools | apk | 3.21 | 4.5-r0 | Not reported | ALPINE-CVE-2021-40153 | Not reported |
| Alpine | squashfs-tools | apk | 3.22 | 4.5-r0 | Not reported | ALPINE-CVE-2021-40153 | Not reported |
| Alpine | squashfs-tools | apk | 3.23 | 4.5-r0 | Not reported | ALPINE-CVE-2021-40153 | Not reported |
| Alpine | squashfs-tools | apk | 3.24 | 4.5-r0 | Not reported | ALPINE-CVE-2021-40153 | Not reported |
| Ubuntu | squashfs-tools | deb | pro | 1:4.3-3ubuntu2.16.04.3+esm1 | Not reported | USN-5078-2 | Not reported |
| Ubuntu | squashfs-tools | deb | 18.04 | 1:4.3-6ubuntu0.18.04.3 | Not reported | USN-5057-1 | Not reported |
| Ubuntu | squashfs-tools | deb | 20.04 | 1:4.4-1ubuntu0.1 | Not reported | USN-5057-1 | Not reported |
| Ubuntu | squashfs-tools | deb | pro | 1:4.3-3ubuntu2.16.04.3+esm1 | Not reported | UBUNTU-CVE-2021-40153 | Not reported |
| Ubuntu | squashfs-tools | deb | 18.04 | 1:4.3-6ubuntu0.18.04.3 | Not reported | UBUNTU-CVE-2021-40153 | Not reported |
| Ubuntu | squashfs-tools | deb | 20.04 | 1:4.4-1ubuntu0.1 | Not reported | UBUNTU-CVE-2021-40153 | Not reported |
| Opensuse | squashfs | rpm | tumbleweed | 4.6.1-2.1 | Not reported | OPENSUSE-SU-2024:13035-1 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [squashfs-tools]Fixed
Details (2)
1:4.5.1-1· amd64 · bookwormFixed · Fixed:
1:4.5-2dsa · squashfs-tools · debian · bookworm; dsa · squashfs-tools · debian · 12
1:4.5.1-1· arm64 · bookwormFixed · Fixed:
1:4.5-2dsa · squashfs-tools · debian · bookworm; dsa · squashfs-tools · debian · 12
[Debian 13 (Trixie)]
- [squashfs-tools]Fixed
Source package: [squashfs-tools]
Details (2)
1:4.6.1-1· amd64 · trixieFixed · Fixed:
1:4.5-2dsa · squashfs-tools · debian · 13
1:4.6.1-1+b1· arm64 · trixieFixed · Fixed:
1:4.5-2dsa · squashfs-tools · debian · 13
[openSUSE Tumbleweed]
Observed:
References
- [https://access.redhat.com/errata/RHSA-2024:3139]
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2024_3139.json]
- [https://osv.dev/vulnerability/ALPINE-CVE-2021-40153]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-40153]
- [https://osv.dev/vulnerability/DLA-2752-1]
- [https://osv.dev/vulnerability/DSA-4967-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2021-40153]
- [https://osv.dev/vulnerability/USN-5057-1]
- [https://osv.dev/vulnerability/USN-5078-2]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:13035-1]
- [https://security-tracker.debian.org/tracker/CVE-2021-40153]
- [https://wid.cert-bund.de/.well-known/csaf/white/2024/wid-sec-w-2024-0995.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]