vulnerability

Red Hat: CVE-2021-40153: squashfs-tools: unvalidated filepaths allow writing outside of destination (Multiple Advisories)

Severity
6
CVSS
(AV:N/AC:M/Au:N/C:N/I:P/A:P)
Published
Aug 27, 2021
Added
May 1, 2024
Modified
Mar 27, 2026

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.

Solutions

redhat-upgrade-squashfs-toolsredhat-upgrade-squashfs-tools-debuginforedhat-upgrade-squashfs-tools-debugsource
Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.