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


Severity

Recommended
medium

Based on AlmaLinux security rating.

Threat Intelligence

EPSS
0.19% (58th 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 Learn

Learn about Directory Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-ALMALINUX9-SQUASHFSTOOLS-6827983
  • published9 May 2024
  • disclosed30 Apr 2024

Introduced: 30 Apr 2024

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

How to fix?

Upgrade AlmaLinux:9 squashfs-tools to version 0:4.4-10.git1.el9 or higher.
This issue was patched in ALSA-2024:2396.

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 AlmaLinux. See How to fix? for AlmaLinux:9 relevant fixed versions and status.

squashfs_opendir in unsquash-2.c in Squashfs-Tools 4.5 allows Directory Traversal, a different vulnerability than CVE-2021-40153. A squashfs filesystem that has been crafted to include a symbolic link and then contents under the same filename in a filesystem can cause unsquashfs to first create the symbolic link pointing outside the expected directory, and then the subsequent write operation will cause the unsquashfs process to write through the symbolic link elsewhere in the filesystem.

CVSS Scores

version 3.1