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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | squashfs-tools | 1:4.5-2 | — |
| Debian 13 | squashfs-tools | 1:4.5-2 | — |
| Debian 12 | squashfs-tools | 1:4.5-2 | — |
| Debian 11 | squashfs-tools | 1:4.4-2+deb11u1 | DSA-4967-1 |
| Debian 10 | squashfs-tools | 1:4.3-12+deb10u1 | DSA-4967-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 9 | squashfs-tools | 1:4.3-3+deb9u2 | DLA-2752-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | squashfs-tools | 1:4.4-1ubuntu0.1 | USN-5057-1 |
| Ubuntu 18.04 LTS | squashfs-tools | 1:4.3-6ubuntu0.18.04.3 | USN-5057-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | squashfs-tools | 1:4.3-3ubuntu2.16.04.3+esm1 | USN-5078-2 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 9 | squashfs-tools | 4.4-10.git1.el9 | RHSA-2024:2396 |
| RHEL 8 | squashfs-tools | 4.3-21.el8 | RHSA-2024:3139 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 9 | squashfs-tools | 4.4-10.git1.el9 | ALSA-2024:2396 |
| AlmaLinux 8 | squashfs-tools | 4.3-21.el8 | ALSA-2024:3139 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 9 | squashfs-tools | 4.4-10.git1.el9 | RLSA-2024:2396 |
| Rocky Linux 8 | squashfs-tools | 4.3-21.el8 | RLSA-2024:3139 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP5 | squashfs | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SLES 15 SP4 | squashfs | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SLES 15 SP3 | squashfs | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SLES 12 SP5 | squashfs | 4.6.1-8.3.2 | SUSE-SU-2023:4424-1 |
Show 11 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP3 | squashfs | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SLES for SAP 12 SP5 | squashfs | 4.6.1-8.3.2 | SUSE-SU-2023:4424-1 |
| SLE Micro 5.5 | squashfs | 4.6.1-150300.3.3.1 | SUSE-SU-2024:2463-1, SUSE-SU-2023:4591-1 |
| SLE Micro 5.4 | squashfs | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SLE Micro 5.3 | squashfs | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SLE Micro 5.2 | squashfs | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SLE Micro 5.1 | squashfs | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SLE HPC 15 SP3 | squashfs | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SUSE Manager Server 4.2 | squashfs | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SUSE Manager Proxy 4.2 | squashfs | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| SUSE Enterprise Storage 7.1 | squashfs | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | squashfs | 4.6.1-2.1 | openSUSE-SU-2024:13035-1 |
| openSUSE Leap 15.5 | squashfs | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| openSUSE Leap 15.4 | squashfs | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap Micro 5.4 | squashfs | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
| openSUSE Leap Micro 5.3 | squashfs | 4.6.1-150300.3.3.1 | SUSE-SU-2023:4591-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | squashfs-tools | 4.5-r0 | — |
| Alpine v3.23 | squashfs-tools | 4.5-r0 | — |
| Alpine v3.22 | squashfs-tools | 4.5-r0 | — |
| Alpine v3.21 | squashfs-tools | 4.5-r0 | — |
| Alpine v3.20 | squashfs-tools | 4.5-r0 | — |
Show 9 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | squashfs-tools | 4.5-r0 | — |
| Alpine v3.18 | squashfs-tools | 4.5-r0 | — |
| Alpine v3.17 | squashfs-tools | 4.5-r0 | — |
| Alpine v3.16 | squashfs-tools | 4.5-r0 | — |
| Alpine v3.15 | squashfs-tools | 4.5-r0 | — |
| Alpine v3.14 | squashfs-tools | 4.5-r0 | — |
| Alpine v3.13 | squashfs-tools | 4.5-r0 | — |
| Alpine v3.12 | squashfs-tools | 4.5-r0 | — |
| Alpine v3.11 | squashfs-tools | 4.5-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | squashfs-tools | 4.3-0.21.gitaae0aff4.amzn2.0.2 | ALAS2-2023-2152 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 2 (CBL-Mariner) | squashfs-tools | 4.5.1-1 | — |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 9 | squashfs-tools | 4.4-10.git1.el9 | ELSA-2024-2396 |
| Oracle Linux 8 | squashfs-tools | 4.3-21.el8 | ELSA-2024-3139 |
Advisories 18
- ALSA-2024:2396 Moderate: squashfs-tools security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2024:3139 Moderate: squashfs-tools security update AlmaLinux Security Advisories · Oct 29, 2026
- USN-5078-2 squashfs-tools vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- RHSA-2024:2396 Red Hat Security Advisory: squashfs-tools security update Red Hat Security Advisories (RHSA) · Mar 18, 2026
- DSA-4967-1 squashfs-tools - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-2752-1 squashfs-tools - security update Debian Security (DSA / DLA) · Mar 9, 2026
- USN-5057-1 squashfs-tools vulnerability Ubuntu Security Notices (USN) · Feb 10, 2026
- RLSA-2024:3139 Moderate: squashfs-tools security update Rocky Linux Security Advisories · Feb 4, 2026
- SUSE-SU-2023:4591-1 Security update for squashfs SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2023:4424-1 Security update for squashfs SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:13035-1 squashfs-4.6.1-2.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2463-1 Security update for squashfs SUSE / openSUSE Security Updates · Feb 4, 2026
- RHSA-2024:3139 Red Hat Security Advisory: squashfs-tools security update Red Hat Security Advisories (RHSA) · Nov 22, 2025
- WID-SEC-2024-0995 Red Hat Enterprise Linux: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 17, 2025
- RLSA-2024:2396 Moderate: squashfs-tools security update Rocky Linux Security Advisories · Oct 7, 2025
- ELSA-2024-3139 Moderate: squashfs-tools security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · May 23, 2024
- ELSA-2024-2396 Moderate: squashfs-tools security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · May 2, 2024
- ALAS2-2023-2152 Moderate: squashfs-tools security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Jul 19, 2023
References
- https://github.com/plougher/squashfs-tools/commit/79b5a555058eef4e1e7ff220c344d39f8cd09646
- https://github.com/plougher/squashfs-tools/issues/72
- https://bugs.launchpad.net/ubuntu/+source/squashfs-tools/+bug/1941790
- FEDORA-2021-cdbd827c1e vendor-advisory
- [debian-lts-announce] 20210831 [SECURITY] [DLA 2752-1] squashfs-tools security update mailing-list
- DSA-4967 vendor-advisory
- FEDORA-2021-9fb6da134f vendor-advisory
- GLSA-202305-29 vendor-advisory