CVE-2024-43784: Github.com/treeverse/lakefs Re-creating A Deleted User Vulnerability

MODERATE
Advisory Identifier: GHSA-hh33-46q4-hwm2
CVSS 5.7
CWE-287 CWE-281
Published
Advisory Summary

CVE-2024-43784 is a MODERATE (CVSS 5.7) re-creating a deleted user vulnerability (CWE-287: Improper Authentication) affecting Github.com/treeverse/lakefs libraries in the Go ecosystem. The issue involves re-creating a deleted user in lakefs will re-enable previous user credentials that existed prior to its deletion. Remediation is available by upgrading affected packages to version 1.33.0.

CVE-2024-43784 at a Glance

CVE Identifier CVE-2024-43784
GHSA Identifier GHSA-hh33-46q4-hwm2
Severity MODERATE
CVSS v3.1 Base Score 5.7
CWE Classification CWE-287: Improper Authentication
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:H/UI:R/S:U/C:L/I:H/A:L).

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

How to Fix CVE-2024-43784

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: 1.33.0
Upgrade github.com/treeverse/lakefs to 1.33.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 CVE-2024-43784, 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.33.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-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. 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 Existing lakeFS users who have issued credentials to users who have been deleted. Creating a new user with the same username, that user will inherit all of the previous user's credentials lakeFS needs to delete user credentials upon user deletion. ### Patches _Has the problem been patched? What versions should users upgrade to?_ ### Workarounds A possible workaround will be not to reuse usernames that were previously deleted ### References _Are there any links users can visit to find out more?_

CVE-2024-43784 Affected Github.com/treeverse/lakefs Versions

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

References

Frequently Asked Questions

What is CVE-2024-43784?
CVE-2024-43784 is a security vulnerability in Github.com/treeverse/lakefs involving Re-creating a deleted user in lakeFS will re-enable previous user credentials that existed prior to its deletion under CWE-287: Improper Authentication.
Which Github.com/treeverse/lakefs versions are affected?
Affected versions include releases prior to 1.33.0 across affected packages: github.com/treeverse/lakefs.
What version fixes CVE-2024-43784?
Upgrading to 1.33.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 1.33.0. Upgrade your dependency to 1.33.0 or later.
What is the CVSS score of CVE-2024-43784?
CVE-2024-43784 has a CVSS v3.1 base score of 5.7 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:H/A:L.
What CWE is associated with CVE-2024-43784?
CVE-2024-43784 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check Go dependencies for CVE-2024-43784?
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-hh33-46q4-hwm2",
  "modified" : "2024-11-26T21:43:45Z",
  "published" : "2024-11-26T19:58:20Z",
  "aliases" : [ "CVE-2024-43784" ],
  "summary" : "Re-creating a deleted user in lakeFS will re-enable previous user credentials that existed prior to its deletion",
  "details" : "### Impact\nExisting lakeFS users who have issued credentials to users who have been deleted.\nCreating a new user with the same username, that user will inherit all of the previous user's credentials lakeFS needs to delete user credentials upon user deletion.\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n\n### Workarounds\nA possible workaround will be not to reuse usernames that were previously deleted\n\n### References\n_Are there any links users can visit to find out more?_\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:H/A:L"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:A/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/treeverse/lakefs"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.33.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/treeverse/lakeFS/security/advisories/GHSA-hh33-46q4-hwm2"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-43784"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/treeverse/lakeFS"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/treeverse/lakeFS/releases/tag/v1.33.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-281", "CWE-287" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-11-26T19:58:20Z",
    "nvd_published_at" : "2024-11-26T21:15:07Z"
  }
}