GHSA-26hr-q2wp-rvc5: Github.com/treeverse/lakefs User With Permission To Write Vulnerability
MODERATEGHSA-26hr-q2wp-rvc5 is a MODERATE (CVSS 6.2) user with permission to write vulnerability (General Security Weakness) affecting Github.com/treeverse/lakefs libraries in the Go ecosystem. The issue involves user with permission to write actions can impersonate another user when auth token is configured in environment variable. Remediation is available by upgrading affected packages to version 1.3.1.
GHSA-26hr-q2wp-rvc5 at a Glance
Security Impact
CVSS: 6.2
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:L).
How to Fix GHSA-26hr-q2wp-rvc5
To remediate this vulnerability, upgrade all affected Github.com/treeverse/lakefs dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/treeverse/lakefs to 1.3.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/treeverse/lakefs
How to Check if You Are Affected
To determine whether your application is affected by GHSA-26hr-q2wp-rvc5, inspect your project dependencies for Github.com/treeverse/lakefs:
inspect dependencies for github.com/treeverse/lakefs
Analyze the terminal output to locate any version of Github.com/treeverse/lakefs in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.3.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In Github.com/treeverse/lakefs, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-26hr-q2wp-rvc5 Affected Github.com/treeverse/lakefs Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/treeverse/lakefs
|
Go |
< 1.3.1
|
1.3.1
|
References
Frequently Asked Questions
What is GHSA-26hr-q2wp-rvc5?
Which Github.com/treeverse/lakefs versions are affected?
What version fixes GHSA-26hr-q2wp-rvc5?
Is github.com/treeverse/lakefs affected?
What is the CVSS score of GHSA-26hr-q2wp-rvc5?
What CWE is associated with GHSA-26hr-q2wp-rvc5?
How can I check Go dependencies for GHSA-26hr-q2wp-rvc5?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-26hr-q2wp-rvc5",
"modified" : "2023-12-12T00:58:04Z",
"published" : "2023-12-12T00:58:04Z",
"aliases" : [ ],
"summary" : "User with permission to write actions can impersonate another user when auth token is configured in environment variable",
"details" : "### Impact\n\nWhen lakeFS is configured with **ALL** of the following:\n\n- Configuration option `auth.encrypt.secret_key` passed through environment variable\n- Actions enabled via configuration option `actions.enabled` (default enabled)\n\nthen a user who can configure an action can impersonate any other user.\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n\n### Workarounds\n\n**ANY ONE** of these is sufficient to prevent the issue:\n\n* Do not pass `auth.encrypt.secret_key` through an environment variable.\n\n For instance, Kubernetes users can generate the entire configuration as a secret and mount that. This is described [here](https://kubernetes.io/docs/concepts/configuration/secret/#using-a-secret).\n* Disable actions.\n* Limit users allowed to configure actions.\n\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/treeverse/lakefs"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.3.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/treeverse/lakeFS/security/advisories/GHSA-26hr-q2wp-rvc5"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/treeverse/lakeFS"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-12-12T00:58:04Z",
"nvd_published_at" : null
}
}