Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/treeverse/lakefs
  4. ›
  5. GHSA-fvv5-h29g-f6w5

GHSA-fvv5-h29g-f6w5: User with ci:ReadAction permissions and write permissions to one path in a repository may copy objects from any path in the repository

February 22, 2024

Impact

A bug in permissions validation allows a user with the ci:ReadAction permission to skip read checks when copying an object. If they additionally have read and write permission to path in the repository, they can copy an otherwise unreadable object and read it.

In order to be affected and exploitable, the following conditions must ALL occur on the same user:

  1. ci:ReadAction enabled for the repository. Predefined policies RepoManagementRead and RepoManagementFullAccess allow this action.
  2. fs:ReadObject and fs:WriteObject enabled for some path.
  3. fs:ReadObject not available for some path

Such a user can use (1) to copy the unreadable object (3) to a path that they can read and write (2). At that point they can read the object copy.

Patches

Releases >= 1.12.1 fix this issue in lakeFS.

Workarounds

As a workaround, use RBAC to deny ci:* permissions to all users, or to all users who have limited read access.

Many installations are unaffected:

  • Installations using ACLs are not affected. This includes all OSS installations that have not implemented an external authorization server. We do not know of any OSS installations that have implemented such a server. ACLs that allow ci:ReadAction also allow reading repositories, so no capabilities are granted.
  • Installations using RBAC that use only predefined policies with “all” ARNs ("*") are not affected. This includes all installations that have not defined any new groups in RBAC.

In order to be affected, installations using RBAC must define users and simultaneous allow ci:ReadAction and disallow fs:ReadObject for some path. ci:ReadAction is available in policies RepoManagementReadAll and RepoManagementFullAccess. By default these actions are configured for groups Developers and above, for all repositories and paths.

References

  • lakeFS RBAC

References

  • github.com/advisories/GHSA-fvv5-h29g-f6w5
  • github.com/treeverse/lakeFS
  • github.com/treeverse/lakeFS/commit/56556ee5406fc5425b9302cd08a8d412635fdcd7
  • github.com/treeverse/lakeFS/security/advisories/GHSA-fvv5-h29g-f6w5

Code Behaviors & Features

Detect and mitigate GHSA-fvv5-h29g-f6w5 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.90.0 before 1.12.1

Fixed versions

  • 1.12.1

Solution

Upgrade to version 1.12.1 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Source file

go/github.com/treeverse/lakefs/GHSA-fvv5-h29g-f6w5.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:44 +0000.