Directory Traversal The advisory has been revoked - it doesn't affect any version of package squashfs-tools  (opens in a new tab)


Threat Intelligence

EPSS
2.52% (86th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RHEL9-SQUASHFSTOOLS-12419487
  • published1 Sept 2025
  • disclosed10 Sept 2019

Introduced: 10 Sep 2019

CVE-2021-40153  (opens in a new tab)
CWE-22  (opens in a new tab)

Amendment

The Red Hat security team deemed this advisory irrelevant for RHEL:9.

NVD Description

Note: Versions mentioned in the description apply only to the upstream squashfs-tools package and not the squashfs-tools package as distributed by RHEL.

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.