All CVEs / Squashfs-tools Project
CVE-2021-40153Squashfs-tools Project Squashfs-tools
High 8.1 No auth needed
Follow: this CVE · Squashfs-tools Project · Squashfs-tools Project Squashfs-tools We alert you by email or Slack (account required).
- Priority
- 64
- CVSS 3.1
- 8.1
- EPSS
- 2.5% probability of exploitation in 30 days · percentile 86
- Auth required
- No
- Published
- Aug 27, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Squashfs-tools.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| squashfs-tools_project | squashfs-tools | 4.5 |
| fedoraproject | fedora | 34 |
| debian | debian_linux | 9.0 |
| debian | debian_linux | 10.0 |
| redhat | enterprise_linux | 7.0 |
| redhat | enterprise_linux | 8.0 |
| fedoraproject | fedora | 33 |
Official sources
References
Links published by the sources. Open them with care.
- bugs.launchpad.net Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Exploit Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- security.gentoo.org
- www.debian.org Third Party Advisory