CVE-2021-40153

HIGH

squashfs-tools 4.5 - Path Traversal and Arbitrary File Write via unsquash-1.c Directory Entry

Title source: llm
STIX 2.1

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.

Scores

CVSS v3 8.1
EPSS 0.0250
EPSS Percentile 82.7%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H

Details

CWE
CWE-22
Status published
Products (7)
debian/debian_linux 9.0
debian/debian_linux 10.0
fedoraproject/fedora 34
fedoraproject/fedora 33
redhat/enterprise_linux 7.0
redhat/enterprise_linux 8.0
squashfs-tools_project/squashfs-tools 4.5
Published Aug 27, 2021
Tracked Since Feb 18, 2026