Directory Traversal Affecting squashfs-tools-debuginfo package, versions <0:4.4-10.git1.el9


Severity

Recommended
medium

Based on Rocky Linux security rating.

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-ROCKY9-SQUASHFSTOOLSDEBUGINFO-10063920
  • published8 May 2025
  • disclosed27 Aug 2021

Introduced: 27 Aug 2021

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

How to fix?

Upgrade Rocky-Linux:9 squashfs-tools-debuginfo to version 0:4.4-10.git1.el9 or higher.
This issue was patched in RLSA-2024:2396.

NVD Description

Note: Versions mentioned in the description apply only to the upstream squashfs-tools-debuginfo package and not the squashfs-tools-debuginfo package as distributed by Rocky-Linux. See How to fix? for Rocky-Linux:9 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1