CVE catalog

CVE-2021-40153

squashfs-tools: CVE-2021-40153

[CVE catalog]

Severity
High · CVSS 8.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
2.50% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiansquashfs-toolssid1:4.7.5-1fixed
Debiansquashfs-toolsforky1:4.7.5-1fixed
Debiansquashfs-toolstrixie1:4.6.1-1fixed
Debiansquashfs-toolsbookworm1:4.5.1-1fixed
Alpinesquashfs-tools3.114.5-r0fixed
Alpinesquashfs-tools3.124.5-r0fixed
Alpinesquashfs-tools3.134.5-r0fixed
Alpinesquashfs-tools3.144.5-r0fixed
Alpinesquashfs-tools3.154.5-r0fixed
Alpinesquashfs-tools3.164.5-r0fixed
Alpinesquashfs-tools3.174.5-r0fixed
Alpinesquashfs-tools3.184.5-r0fixed
Alpinesquashfs-tools3.194.5-r0fixed
Alpinesquashfs-tools3.204.5-r0fixed
Alpinesquashfs-tools3.214.5-r0fixed
Alpinesquashfs-tools3.224.5-r0fixed
Alpinesquashfs-tools3.234.5-r0fixed
Alpinesquashfs-tools3.244.5-r0fixed
Ubuntusquashfs-toolspro1:4.2+20130409-2.1vulnerable
Ubuntusquashfs-toolspro1:4.3-3vulnerable
Ubuntusquashfs-toolspro1:4.3-3ubuntu1vulnerable
Ubuntusquashfs-toolspro1:4.3-3ubuntu2vulnerable
Ubuntusquashfs-toolspro1:4.3-3ubuntu2.16.04.1vulnerable
Ubuntusquashfs-toolspro1:4.3-3ubuntu2.16.04.2vulnerable
Ubuntusquashfs-toolspro1:4.3-3ubuntu2.16.04.3vulnerable
Ubuntusquashfs-toolspro1:4.3-3ubuntu2.16.04.3+esm1fixed
Ubuntusquashfs-tools18.041:4.3-4ubuntu1vulnerable
Ubuntusquashfs-tools18.041:4.3-4ubuntu2vulnerable
Ubuntusquashfs-tools18.041:4.3-6vulnerable
Ubuntusquashfs-tools18.041:4.3-6ubuntu0.18.04.1vulnerable
Ubuntusquashfs-tools18.041:4.3-6ubuntu0.18.04.2vulnerable
Ubuntusquashfs-tools18.041:4.3-6ubuntu0.18.04.3fixed
Ubuntusquashfs-tools20.041:4.4-1vulnerable
Ubuntusquashfs-tools20.041:4.4-1ubuntu0.1fixed
Ubuntusquashfs-toolspro1:4.2+20130409-2.1vulnerable
Ubuntusquashfs-toolspro1:4.3-3vulnerable
Ubuntusquashfs-toolspro1:4.3-3ubuntu1vulnerable
Ubuntusquashfs-toolspro1:4.3-3ubuntu2vulnerable
Ubuntusquashfs-toolspro1:4.3-3ubuntu2.16.04.1vulnerable
Ubuntusquashfs-toolspro1:4.3-3ubuntu2.16.04.2vulnerable
Ubuntusquashfs-toolspro1:4.3-3ubuntu2.16.04.3vulnerable
Ubuntusquashfs-toolspro1:4.3-3ubuntu2.16.04.3+esm1fixed
Ubuntusquashfs-tools18.041:4.3-4ubuntu1vulnerable
Ubuntusquashfs-tools18.041:4.3-4ubuntu2vulnerable
Ubuntusquashfs-tools18.041:4.3-6vulnerable
Ubuntusquashfs-tools18.041:4.3-6ubuntu0.18.04.1vulnerable
Ubuntusquashfs-tools18.041:4.3-6ubuntu0.18.04.2vulnerable
Ubuntusquashfs-tools18.041:4.3-6ubuntu0.18.04.3fixed
Ubuntusquashfs-tools20.041:4.4-1vulnerable
Ubuntusquashfs-tools20.041:4.4-1ubuntu0.1fixed
Opensusesquashfstumbleweed4.6.1-2.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiansquashfs-toolssourcesid1:4.5-2not yet assignedNot reportedNot reported
Debiansquashfs-toolssourceforky1:4.5-2not yet assignedNot reportedNot reported
Debiansquashfs-toolssourcetrixie1:4.5-2not yet assignedNot reportedNot reported
Debiansquashfs-toolssourcebookworm1:4.5-2not yet assignedNot reportedNot reported
Alpinesquashfs-toolsapk3.114.5-r0Not reportedALPINE-CVE-2021-40153Not reported
Alpinesquashfs-toolsapk3.124.5-r0Not reportedALPINE-CVE-2021-40153Not reported
Alpinesquashfs-toolsapk3.134.5-r0Not reportedALPINE-CVE-2021-40153Not reported
Alpinesquashfs-toolsapk3.144.5-r0Not reportedALPINE-CVE-2021-40153Not reported
Alpinesquashfs-toolsapk3.154.5-r0Not reportedALPINE-CVE-2021-40153Not reported
Alpinesquashfs-toolsapk3.164.5-r0Not reportedALPINE-CVE-2021-40153Not reported
Alpinesquashfs-toolsapk3.174.5-r0Not reportedALPINE-CVE-2021-40153Not reported
Alpinesquashfs-toolsapk3.184.5-r0Not reportedALPINE-CVE-2021-40153Not reported
Alpinesquashfs-toolsapk3.194.5-r0Not reportedALPINE-CVE-2021-40153Not reported
Alpinesquashfs-toolsapk3.204.5-r0Not reportedALPINE-CVE-2021-40153Not reported
Alpinesquashfs-toolsapk3.214.5-r0Not reportedALPINE-CVE-2021-40153Not reported
Alpinesquashfs-toolsapk3.224.5-r0Not reportedALPINE-CVE-2021-40153Not reported
Alpinesquashfs-toolsapk3.234.5-r0Not reportedALPINE-CVE-2021-40153Not reported
Alpinesquashfs-toolsapk3.244.5-r0Not reportedALPINE-CVE-2021-40153Not reported
Ubuntusquashfs-toolsdebpro1:4.3-3ubuntu2.16.04.3+esm1Not reportedUSN-5078-2Not reported
Ubuntusquashfs-toolsdeb18.041:4.3-6ubuntu0.18.04.3Not reportedUSN-5057-1Not reported
Ubuntusquashfs-toolsdeb20.041:4.4-1ubuntu0.1Not reportedUSN-5057-1Not reported
Ubuntusquashfs-toolsdebpro1:4.3-3ubuntu2.16.04.3+esm1Not reportedUBUNTU-CVE-2021-40153Not reported
Ubuntusquashfs-toolsdeb18.041:4.3-6ubuntu0.18.04.3Not reportedUBUNTU-CVE-2021-40153Not reported
Ubuntusquashfs-toolsdeb20.041:4.4-1ubuntu0.1Not reportedUBUNTU-CVE-2021-40153Not reported
Opensusesquashfsrpmtumbleweed4.6.1-2.1Not reportedOPENSUSE-SU-2024:13035-1Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Details (2)
    • 1:4.5.1-1 · amd64 · bookworm

      Fixed · Fixed: 1:4.5-2

      dsa · squashfs-tools · debian · bookworm; dsa · squashfs-tools · debian · 12

    • 1:4.5.1-1 · arm64 · bookworm

      Fixed · Fixed: 1:4.5-2

      dsa · squashfs-tools · debian · bookworm; dsa · squashfs-tools · debian · 12

[Debian 13 (Trixie)]

  • Source package: [squashfs-tools]

    Details (2)
    • 1:4.6.1-1 · amd64 · trixie

      Fixed · Fixed: 1:4.5-2

      dsa · squashfs-tools · debian · 13

    • 1:4.6.1-1+b1 · arm64 · trixie

      Fixed · Fixed: 1:4.5-2

      dsa · squashfs-tools · debian · 13

[openSUSE Tumbleweed]

  • [squashfs]Fixed

    Source package: [squashfs]

    Details (1)
    • 4.6.1-2.10 · x86_64 · tumbleweed

      Fixed · Fixed: 4.6.1-2.1

      dsa · squashfs · opensuse · tumbleweed

Observed:

References