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
| Id | Name |
|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/plougher/squashfs-tools/issues/72 | nvd | 2021-08-27 |
References
Same in every row:
- Source: nvd
Products
Same in every row:
- Platform bound: no
- Sources: nvd
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| plougher/squashfs-tools | commit, fix, issues | yes | /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