# CVE-2024-43784: Re-creating a deleted user in lakeFS will re-enable previous user credentials that existed prior to it's deletion

> Recreating a deleted user with the same username inherits previous credentials, allowing unauthorized access to the new user's account.

- **Severity:** Medium 5.7 (`CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:H/A:L`)
- **Exploited in the wild:** Not known
- **Login needed:** An administrator
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 26 Nov 2024
- **Updated:** 26 Nov 2024
- **Also known as:** GHSA-hh33-46q4-hwm2, GO-2024-3291

## What is CVE-2024-43784?

CVE-2024-43784 is a medium-severity vulnerability in treeverse lakeFS, published on 26 Nov 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

### Official description

lakeFS is an open-source tool that transforms object storage into a Git-like repository. Existing lakeFS users who have issued credentials to users who have been deleted are affected by this vulnerability. When creating a new user with the same username as a deleted user, that user will inherit all of the previous user's credentials. This issue has been addressed in release version 1.33.0 and all users are advised to upgrade. The only known workaround for those who cannot upgrade is to not reuse usernames.

Weakness: CWE-281 (Improper Preservation of Permissions)

## Which versions are affected by CVE-2024-43784?

3 open source packages ship an affected version, including github.com/treeverse/lakefs.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/treeverse/lakefs` | Go | All versions | 1.33.0 |
| `github.com/treeverse/lakefs` | Go | All versions | 1.33.0 |
| `github.com/treeverse/lakefs` | Go | All versions | 1.33.0 |

## How do I fix CVE-2024-43784?

Upgrade github.com/treeverse/lakefs to 1.33.0 or later.

## Is CVE-2024-43784 being exploited?

There is no known exploitation of CVE-2024-43784 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-43784 and fix it if it is affected.

What it is: CVE-2024-43784 is a medium-severity vulnerability in treeverse lakeFS, published on 26 Nov 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2024-43784 in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/treeverse/lakefs (Go): affected all versions; fixed in 1.33.0
- github.com/treeverse/lakefs (Go): affected all versions; fixed in 1.33.0
- github.com/treeverse/lakefs (Go): affected all versions; fixed in 1.33.0

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2024-43784/ (Markdown: https://insights.sbomify.com/CVE-2024-43784/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2024-43784
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-43784
- OSV: https://osv.dev/vulnerability/CVE-2024-43784

---
From sbomify Insights: https://insights.sbomify.com/CVE-2024-43784/
Summaries are generated and may contain mistakes; the official description above is the record.
