CVE-2021-41072 json
squashfs_opendir in unsquash-2.c in Squashfs-Tools 4.5 allows Directory Traversal, a different vulnerability than CVE-2021-40153.
published 5y ago modified 4mo ago also EUVD-2021-28223
- cvss
- 8.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.3%
- EPSS 2.3% chance of exploitation in 30 days, percentile 83%
- public exploits
- 0
- none known
Summary
squashfs_opendir in unsquash-2.c in Squashfs-Tools 4.5 allows Directory Traversal, a different vulnerability than CVE-2021-40153. A squashfs filesystem that has been crafted to include a symbolic link and then contents under the same filename in a filesystem can cause unsquashfs to first create the symbolic link pointing outside the expected directory, and then the subsequent write operation will cause the unsquashfs process to write through the symbolic link elsewhere in the filesystem.
Patch / fix
- squashfs-tools Debian 14, Debian 13, Debian 12 1:4.5-3
debian advisories DEBIAN-CVE-2021-41072
- squashfs-tools Ubuntu 18.04 LTS 1:4.3-6ubuntu0.18.04.4
- squashfs-tools Ubuntu 20.04 LTS 1:4.4-1ubuntu0.3
- squashfs-tools Ubuntu 22.04 LTS 1:4.4-2ubuntu2
- squashfs-tools Ubuntu Pro 16.04 LTS 1:4.3-3ubuntu2.16.04.3+esm1
ubuntu advisories UBUNTU-CVE-2021-41072
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- squashfs-tools RHEL 8 4.3-21.el8
- squashfs-tools RHEL 9 4.4-10.git1.el9
red hat advisories RHSA-2024:3139RHSA-2024:2396
- squashfs SLE Module for Basesystem 15 SP5, SLE Module for Basesystem 15 SP4, SLE Micro 5.5 +15 more 4.6.1-150300.3.3.1
- squashfs SLES for SAP 12 SP5, SLES 12 SP5 4.6.1-8.3.2
suse advisories SUSE-SU-2024:2463-1SUSE-SU-2023:4591-1SUSE-SU-2023:4424-1
- squashfs openSUSE Tumbleweed 4.5.1-1.1
opensuse advisories openSUSE-SU-2024:11986-1
- squashfs-tools AlmaLinux 8 4.3-21.el8
- squashfs-tools AlmaLinux 9 4.4-10.git1.el9
almalinux advisories ALSA-2024:3139ALSA-2024:2396
- squashfs-tools Rocky Linux 9 4.4-10.git1.el9
- squashfs-tools Rocky Linux 8 4.3-21.el8
rocky linux advisories RLSA-2024:2396RLSA-2024:3139
- squashfs-tools Alpine 3.24, Alpine 3.23, Alpine 3.22 +8 more 4.5-r1
alpine advisories ALPINE-CVE-2021-41072
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- squashfs-tools CBL-Mariner 2.0 4.5.1-1
azure linux advisories AZL-7464
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
- squashfs-tools Arch Linux 4.5.1-1
arch linux advisories AVG-2380
Is CVE-2021-41072 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-41072 updated cvss 8.1
squashfs-tools: possible Directory Traversal via symbolic link
-
Red Hat Enterprise Linux 6 squashfs-toolsaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 7 squashfs-toolsaffected: no fix planned “Will not fix”
-
Red Hat Enterprise Linux BaseOS (v. 8) squashfs-tools 4.3-21.el8fixed: vendor fix RHSA-2024:3139
-
Red Hat Enterprise Linux BaseOS (v. 9) squashfs-tools 4.4-10.git1.el9fixed: vendor fix RHSA-2024:2396
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.30% chance of exploitation in the next 30 days, higher than 83% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- github.com https://github.com/plougher/squashfs-tools/issues/72#issuecomment-913833405 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 8.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H |
| NVD | 2.0 | 5.8 | AV:N/AC:M/Au:N/C:N/I:P/A:P |
Classification
References
-
github.com
/plougher/squashfs-tools/commit/e0485802ec72996c20026da320650d8362f555bd
patch, third-party-advisory
-
github.com
/plougher/squashfs-tools/issues/72#issuecomment-913833405
exploit, third-party-advisory
-
debian.org
/security/2021/dsa-4987
vendor-advisory, third-party-advisory
-
security.gentoo.org
/glsa/202305-29
vendor-advisory
-
lists.debian.org
/debian-lts-announce/2021/10/msg00017.html
mailing-list, third-party-advisory
Sources
- CVE List CVE-2021-41072
- NVD CVE-2021-41072
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.