Directory Traversal Affecting plougher/squashfs-tools package, versions [0,4.5)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.46% (76th 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-UNMANAGED-PLOUGHERSQUASHFSTOOLS-2367335
  • published26 Jan 2022
  • disclosed27 Aug 2021
  • creditUnknown

Introduced: 27 Aug 2021

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

How to fix?

Upgrade plougher/squashfs-tools to version 4.5 or higher.

Overview

Affected versions of this package are vulnerable to Directory Traversal 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 Scores

version 3.1