Symlink Attack Affecting github.com/datacharmer/dbdeployer/unpack package, versions <1.58.2


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.06% (31st 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-GOLANG-GITHUBCOMDATACHARMERDBDEPLOYERUNPACK-2400622
  • published13 Feb 2022
  • disclosed12 Feb 2022
  • creditsmowton

Introduced: 12 Feb 2022

CVE-2020-26277  (opens in a new tab)
CWE-59  (opens in a new tab)

How to fix?

Upgrade github.com/datacharmer/dbdeployer/unpack to version 1.58.2 or higher.

Overview

github.com/datacharmer/dbdeployer/unpack is a tool that deploys MySQL database servers easily. This is a port of MySQL-Sandbox, originally written in Perl, and re-designed from the ground up in Go. See the features comparison for more detail.

Affected versions of this package are vulnerable to Symlink Attack. When unpacking a maliciously packaged tarball that contains symlinks to files external to the target, an attacker could induce dbdeployer to write into a system file by injecting a symbolic link into the tarball.

CVSS Scores

version 3.1