Live threats

All CVEs / Squashfs-tools Project

CVE-2021-40153Squashfs-tools Project Squashfs-tools

High 8.1 No auth needed

Priority
64
CVSS 3.1
8.1
EPSS
2.5%
probability of exploitation in 30 days · percentile 86
Auth required
No
Published
Aug 27, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Squashfs-tools.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
squashfs-tools_projectsquashfs-tools4.5
fedoraprojectfedora34
debiandebian_linux9.0
debiandebian_linux10.0
redhatenterprise_linux7.0
redhatenterprise_linux8.0
fedoraprojectfedora33

Official sources

References

Links published by the sources. Open them with care.