Improper Authentication Affecting github.com/treeverse/lakefs/pkg package, versions <1.3.1


Severity

Recommended
0.0
medium
0
10

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

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 Improper Authentication vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMTREEVERSELAKEFSPKG-6119890
  • published12 Dec 2023
  • disclosed12 Dec 2023
  • creditBarak Amar, Ariel Shaqed

Introduced: 12 Dec 2023

CVE NOT AVAILABLE CWE-287  (opens in a new tab)

How to fix?

Upgrade github.com/treeverse/lakefs/pkg to version 1.3.1 or higher.

Overview

Affected versions of this package are vulnerable to Improper Authentication via the configuration of the auth.encrypt.secret_key through an environment variable when actions are enabled. An attacker with permission to write actions can impersonate any other user. This is only exploitable if both the auth.encrypt.secret_key is passed through an environment variable and actions are enabled via the actions.enabled configuration option.

Workaround

This vulnerability can be mitigated by not passing auth.encrypt.secret_key through an environment variable, disabling actions, or limiting users allowed to configure actions.

CVSS Scores

version 3.1