CVE-2021-40153 describes a path traversal vulnerability in Squashfs-Tools 4.5, affecting various Linux distributions including Debian, Fedora, and Red Hat. The flaw allows an attacker to craft a malicious SquashFS archive that, when unsquashed, can write files to arbitrary locations outside the intended destination directory. With a CVSS score of 8.1 (High), this vulnerability has a low attack complexity and requires user interaction, but can lead to high integrity and availability impacts. Currently, there is no known active exploitation, public exploit code (Metasploit, Nuclei, ExploitDB), or significant community discussion or media coverage surrounding this CVE.
| Vendor | Product | Version(s) | CPE |
|---|---|---|---|
4.5CPE matchmatch criteria | cpe:2.3:a:squashfs-tools_project:squashfs-tools:4.5:*:*:*:*:*:*:* | ||
34CPE matchmatch criteria | cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* | ||
9.0CPE matchmatch criteria | cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* | ||
10.0CPE matchmatch criteria | cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* | ||
7.0CPE matchmatch criteria | cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:* |
CVSS version used by this source: 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
The average CVE in this peer group has 0.0 Twitter, 0.1 Reddit, 0.2 Bluesky, 0.1 Mastodon, and 0.2 GitHub mentions.
No media coverage found for this CVE.
The average CVE in this peer group has 0.3 InfoSec Media, 0.0 Vendor Blog, and 0.1 Security Researcher mentions.
CVE-2021-40153
Jan 11, 2022squashfs_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.
Aug 10, 2021squashfs-tools: unvalidated filepaths allow writing outside of destination
Sep 10, 2019