# CVE-2021-41072: squashfsopendir in unsquash-2.c in Squashfs-Tools 4.5 allows Directory Traversal, a different vulnerability than CVE-2021-40153.

- Severity: High 8.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.30%, higher than 83% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-09-14T00:00:00.000Z
- Modified: 2026-06-17T04:07:49.040Z
- Weaknesses: CWE-22, CWE-59
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- squashfs-tools_project squashfs-tools: 4.5
- debian debian_linux: 9.0; 10.0; 11.0

## Every score

- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:P`

## References

- <https://github.com/plougher/squashfs-tools/issues/72#issuecomment-913833405> (exploit, third-party-advisory)
- <https://github.com/plougher/squashfs-tools/commit/e0485802ec72996c20026da320650d8362f555bd> (patch, third-party-advisory)
- <https://www.debian.org/security/2021/dsa-4987> (third-party-advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2021/10/msg00017.html> (mailing-list, third-party-advisory)
- <https://security.gentoo.org/glsa/202305-29> (vendor-advisory)

## Sources

- CVE List: [CVE-2021-41072](https://www.cve.org/CVERecord?id=CVE-2021-41072), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-41072](https://nvd.nist.gov/vuln/detail/CVE-2021-41072), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-41072 · Whole record: https://cve.day/CVE-2021-41072.json · Rebuilt by cve.day 2026-11-25T22:58:03.918Z
