GHSA-m836-gxwq-j2pm: Github.com/treeverse/lakefs Improper Access Control Vulnerability

MODERATE
CVSS 5.7
CWE-284
Published
Advisory Summary

GHSA-m836-gxwq-j2pm is a MODERATE (CVSS 5.7) improper access control vulnerability (CWE-284: Improper Access Control) affecting Github.com/treeverse/lakefs libraries in the Go ecosystem. The issue involves improper access control in github.com/treeverse/lakefs. Remediation is available by upgrading affected packages to version 0.53.1.

GHSA-m836-gxwq-j2pm at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-m836-gxwq-j2pm
Severity MODERATE
CVSS v3.1 Base Score 5.7
CWE Classification CWE-284: Improper Access Control
Affected Product Github.com/treeverse/lakefs
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix GHSA-m836-gxwq-j2pm

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.

github.com/treeverse/lakefs fixed: 0.53.1
Upgrade github.com/treeverse/lakefs to 0.53.1
Verify Direct and Transitive Dependencies

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-m836-gxwq-j2pm, 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 0.53.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 CWE-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. 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

### Impact 1. [medium] A user with write permissions to a portion of a repository may use the S3 gateway to copy any object in the repository if they know its name. 1. [medium] A user with permission to write any one of tags, branches, or commits on a repository may write all of them. 1. [low] A user with permission to read any one of tags, branches, or commits on a repository may read all of them. 1. [low] A user allowed to list objects in a repository _or_ read repository meta-data may retrieve graveler information about the location on underlying storage of all objects stored in any commit that they can view. If the user additionally has the capability to read underlying storage, they will be able to retrieve metadata associated with all objects in that commit. ### For more information If you have any questions or comments about this advisory please: * Email us at security@treeverse.io. * Open an issue on https://github.com/treeverse/lakeFS/issues/new.

GHSA-m836-gxwq-j2pm Affected Github.com/treeverse/lakefs Versions

1 component(s)
Fixed Versions:
0.53.1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/treeverse/lakefs
Go
< 0.53.1
0.53.1

References

Frequently Asked Questions

What is GHSA-m836-gxwq-j2pm?
GHSA-m836-gxwq-j2pm is a security vulnerability in Github.com/treeverse/lakefs involving Improper Access Control in github.com/treeverse/lakefs under CWE-284: Improper Access Control.
Which Github.com/treeverse/lakefs versions are affected?
Affected versions include releases prior to 0.53.1 across affected packages: github.com/treeverse/lakefs.
What version fixes GHSA-m836-gxwq-j2pm?
Upgrading to 0.53.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/treeverse/lakefs affected?
Yes, github.com/treeverse/lakefs is affected in releases prior to 0.53.1. Upgrade your dependency to 0.53.1 or later.
What is the CVSS score of GHSA-m836-gxwq-j2pm?
GHSA-m836-gxwq-j2pm has a CVSS v3.1 base score of 5.7 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N.
What CWE is associated with GHSA-m836-gxwq-j2pm?
GHSA-m836-gxwq-j2pm is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check Go dependencies for GHSA-m836-gxwq-j2pm?
Run the dependency tree command: 'inspect dependencies for github.com/treeverse/lakefs'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-m836-gxwq-j2pm",
  "modified" : "2021-10-27T18:58:30Z",
  "published" : "2021-10-28T16:27:03Z",
  "aliases" : [ ],
  "summary" : "Improper Access Control in github.com/treeverse/lakefs",
  "details" : "### Impact\n\n1. [medium] A user with write permissions to a portion of a repository may use the S3 gateway to copy any object in the repository if they know its name.\n1. [medium] A user with permission to write any one of tags, branches, or commits on a repository may write all of them.\n1. [low] A user with permission to read any one of tags, branches, or commits on a repository may read all of them.\n1. [low] A user allowed to list objects in a repository _or_ read repository meta-data may retrieve graveler information about the location on underlying storage of all objects stored in any commit that they can view.  If the user additionally has the capability to read underlying storage, they will be able to retrieve metadata associated with all objects in that commit.\n\n### For more information\n\nIf you have any questions or comments about this advisory please:\n* Email us at security@treeverse.io.\n* Open an issue on https://github.com/treeverse/lakeFS/issues/new.\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/treeverse/lakefs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.53.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/treeverse/lakeFS/security/advisories/GHSA-m836-gxwq-j2pm"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/treeverse/lakeFS/commit/f2117281cadb14fdf9ac7fe287f84d5c10308b88"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/treeverse/lakeFS"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-284" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-10-27T18:58:30Z",
    "nvd_published_at" : null
  }
}