CVEfocus › CVE database › CVE-2021-40153

CVE-2021-40153

EPSS 2.5% (higher than 86% of CVEs)Published 2021-08-27Updated 2024-08-04Assigner: mitre

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

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

25Fixed
2Fix pending
2Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 20.04squashfs-toolsFixed1:4.4-1ubuntu0.1UBUNTU-CVE-2021-40153
Ubuntu 18.04squashfs-toolsFixed1:4.3-6ubuntu0.18.04.3UBUNTU-CVE-2021-40153
Ubuntu 16.04squashfs-toolsFix pending1:4.3-3ubuntu2.16.04.3+esm1 (Ubuntu Pro)UBUNTU-CVE-2021-40153
Ubuntu 14.04squashfs-toolsFix pending
Debian 14squashfs-toolsFixed1:4.5-2DEBIAN-CVE-2021-40153
Debian 13squashfs-toolsFixed1:4.5-2DEBIAN-CVE-2021-40153
Debian 12squashfs-toolsFixed1:4.5-2DEBIAN-CVE-2021-40153
Red Hat Enterprise Linux 9squashfs-toolsFixed0:4.4-10.git1.el9RHSA-2024:2396
Red Hat Enterprise Linux 8squashfs-toolsFixed0:4.3-21.el8RHSA-2024:3139
Red Hat Enterprise Linux 7squashfs-toolsWill not fix
Will not fix
Red Hat Enterprise Linux 6squashfs-toolsWill not fix
Out of support scope
AlmaLinux 9squashfs-toolsFixed4.4-10.git1.el9ALSA-2024:2396
AlmaLinux 8squashfs-toolsFixed4.3-21.el8ALSA-2024:3139
Rocky Linux 9squashfs-toolsFixed0:4.4-10.git1.el9RLSA-2024:2396
Rocky Linux 8squashfs-toolsFixed0:4.3-21.el8RLSA-2024:3139
Alpine Linux 3.24squashfs-toolsFixed4.5-r0ALPINE-CVE-2021-40153
Alpine Linux 3.23squashfs-toolsFixed4.5-r0ALPINE-CVE-2021-40153
Alpine Linux 3.22squashfs-toolsFixed4.5-r0ALPINE-CVE-2021-40153
Alpine Linux 3.21squashfs-toolsFixed4.5-r0ALPINE-CVE-2021-40153
Alpine Linux 3.20squashfs-toolsFixed4.5-r0ALPINE-CVE-2021-40153
Alpine Linux 3.19squashfs-toolsFixed4.5-r0ALPINE-CVE-2021-40153
Alpine Linux 3.18squashfs-toolsFixed4.5-r0ALPINE-CVE-2021-40153
Alpine Linux 3.17squashfs-toolsFixed4.5-r0ALPINE-CVE-2021-40153
Alpine Linux 3.16squashfs-toolsFixed4.5-r0ALPINE-CVE-2021-40153
Alpine Linux 3.15squashfs-toolsFixed4.5-r0ALPINE-CVE-2021-40153
Alpine Linux 3.14squashfs-toolsFixed4.5-r0ALPINE-CVE-2021-40153
Alpine Linux 3.13squashfs-toolsFixed4.5-r0ALPINE-CVE-2021-40153
Alpine Linux 3.12squashfs-toolsFixed4.5-r0ALPINE-CVE-2021-40153
Alpine Linux 3.11squashfs-toolsFixed4.5-r0ALPINE-CVE-2021-40153

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.