VDB

CVE-2021-40153

CVE-2021-40153 PUBLISHED

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.

PackageEcosystemFixed in
squashfs-toolsAmazon Linux4.3-0.21.gitaae0aff4.amzn2.0.2

Affected products

VendorProductVersions
n/an/an/a
amazon:2squashfs-tools0
n/an/a*
alpinesquashfs-tools0
archsquashfs-tools0

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›