CVE-2021-40153
Reported by mitre · Published August 27, 2021
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 versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| squashfs-tools | Amazon Linux | 4.3-0.21.gitaae0aff4.amzn2.0.2 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| amazon:2 | squashfs-tools | 0 |
| n/a | n/a | * |
| alpine | squashfs-tools | 0 |
| arch | squashfs-tools | 0 |
Timeline
- Aug 27, 2021 CVE Published
- Aug 28, 2021 EPSS Score (30 in total, the first dated here)
- Aug 4, 2024 CVE Updated
- Mar 10, 2026 Distribution Patch (28 in total, the first dated here)
- Mar 10, 2026 Security Advisory (31 in total, the first dated here)
- Jul 22, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-40153
vulnetix vdb fixes CVE-2021-40153
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-40153/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- 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