SecurityContext

CVE-2021-40153: Squashfs-Tools - Path Traversal

  • Cve: CVE-2021-40153
  • Name: Squashfs-Tools - Path Traversal
  • Description: 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.
  • Impact: Attackers can write files outside the target directory, potentially leading to arbitrary file overwrite or system compromise.
  • Remediation: Update to the latest version of Squashfs-Tools that addresses this vulnerability or apply patches that validate filenames properly.
  • Vulnerability type: path_traversal
  • Vulnerability impact: file_system_write, data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.1
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
  • Epss score: 0.025
  • Epss percentile: 0.85107
  • Assignee: [email protected]
  • Published at: 2021-08-27T15:15:09Z
  • Age in days: 1915
  • Modified at: 2026-06-17T04:06:36Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 8
  • Products total: 4
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-40153
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-22Improper Limitation of a Pathname to a Restricted Directory

Public exploits

UrlSourceAdded date
https://github.com/plougher/squashfs-tools/issues/72nvd2021-08-27

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/plougher/squashfs-tools/commit/79b5a555058eef4e1e7ff220c344d39f8cd09646Patch, Third Party Advisory
https://github.com/plougher/squashfs-tools/issues/72Exploit, Third Party Advisory
https://bugs.launchpad.net/ubuntu/+source/squashfs-tools/+bug/1941790Third Party Advisory
https://lists.debian.org/debian-lts-announce/2021/08/msg00030.htmlMailing List, Third Party Advisory
https://www.debian.org/security/2021/dsa-4967Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GSMRKVJMJFX3MB7D3PXJSYY3TLZROE5S/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RAOZ4BKWAC4Y3U2K5MMW3S77HWWXHQDL/
https://security.gentoo.org/glsa/202305-29

Products

Same in every row:

  • Platform bound: no
  • Sources: nvd
ProductAffectedUrl
squashfs-tools_project:squashfs-tools= 4.5/v1/products/squashfs-tools_project/squashfs-tools
debian:debian_linux= 10.0, = 9.0/v1/products/debian/debian_linux
fedoraproject:fedora= 34, = 33/v1/products/fedoraproject/fedora
redhat:enterprise_linux= 8.0, = 7.0/v1/products/redhat/enterprise_linux

Projects

RepositoryLink kindsIndexedUrl
plougher/squashfs-toolscommit, fix, issuesyes/v1/repositories/plougher/squashfs-tools

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2021-08-27
  • Remote: yes
  • Exposed hosts: 4739835
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports