GHSA-28q9-9c3g-v3f9: Github.com/treeverse/lakefs LakeFS Vulnerable To Authenticated Users Vulnerability

HIGH
CWE-284 CWE-281
Published
Advisory Summary

GHSA-28q9-9c3g-v3f9 is a HIGH lakefs vulnerable to authenticated users vulnerability (CWE-284: Improper Access Control) affecting Github.com/treeverse/lakefs libraries in the Go ecosystem. The issue involves lakefs vulnerable to authenticated users deleting files they are not authorized to delete. Remediation is available by upgrading affected packages to version 0.82.0.

GHSA-28q9-9c3g-v3f9 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-28q9-9c3g-v3f9
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-284: Improper Access Control
Affected Product Github.com/treeverse/lakefs
Package Ecosystem Go
Published Date
Last Updated

How to Fix GHSA-28q9-9c3g-v3f9

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.82.0
Upgrade github.com/treeverse/lakefs to 0.82.0
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-28q9-9c3g-v3f9, 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.82.0), 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 Authenticated users can send a request to delete-objects through the s3 gateway and delete files they are not authorized to delete. ### Patches lakeFS v0.82.0 and later ### Workarounds Drop specific request to the lakeFS listen port. Any request with "Authorization" header and value that starts with "AWS". ### References [advisories/GHSA-28q9-9c3g-v3f9](https://github.com/treeverse/lakeFS/security/advisories/GHSA-28q9-9c3g-v3f9) ### For more information If you have any questions or comments about this advisory: Ask on the [lakeFS Slack](https://github.com/treeverse/lakeFS/security/advisories/lakefs.io/slack) #help channel Email us at [security@treeverse.io](mailto:security@treeverse.io)

GHSA-28q9-9c3g-v3f9 Affected Github.com/treeverse/lakefs Versions

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

References

Frequently Asked Questions

What is GHSA-28q9-9c3g-v3f9?
GHSA-28q9-9c3g-v3f9 is a security vulnerability in Github.com/treeverse/lakefs involving lakeFS vulnerable to authenticated users deleting files they are not authorized to delete under CWE-284: Improper Access Control.
Which Github.com/treeverse/lakefs versions are affected?
Affected versions include releases prior to 0.82.0 across affected packages: github.com/treeverse/lakefs.
What version fixes GHSA-28q9-9c3g-v3f9?
Upgrading to 0.82.0 (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.82.0. Upgrade your dependency to 0.82.0 or later.
What CWE is associated with GHSA-28q9-9c3g-v3f9?
GHSA-28q9-9c3g-v3f9 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-28q9-9c3g-v3f9?
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-28q9-9c3g-v3f9",
  "modified" : "2022-09-23T15:13:14Z",
  "published" : "2022-09-23T15:13:14Z",
  "aliases" : [ ],
  "summary" : "lakeFS vulnerable to authenticated users deleting files they are not authorized to delete",
  "details" : "### Impact\n\nAuthenticated users can send a request to delete-objects through the s3 gateway and delete files they are not authorized to delete.\n\n### Patches\n\nlakeFS v0.82.0 and later\n\n### Workarounds\n\nDrop specific request to the lakeFS listen port. Any request with \"Authorization\" header and value that starts with \"AWS\".\n\n### References\n\n[advisories/GHSA-28q9-9c3g-v3f9](https://github.com/treeverse/lakeFS/security/advisories/GHSA-28q9-9c3g-v3f9)\n\n### For more information\nIf you have any questions or comments about this advisory:\n\nAsk on the [lakeFS Slack](https://github.com/treeverse/lakeFS/security/advisories/lakefs.io/slack) #help channel\nEmail us at [security@treeverse.io](mailto:security@treeverse.io)",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/treeverse/lakefs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.82.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/treeverse/lakeFS/security/advisories/GHSA-28q9-9c3g-v3f9"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/treeverse/lakeFS/commit/81182bf9c0cf57f3cec3c893cf739b2069305e37"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/treeverse/lakeFS"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-281", "CWE-284" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-09-23T15:13:14Z",
    "nvd_published_at" : null
  }
}