GHSA-fvv5-h29g-f6w5

Suggest an improvement
Source
https://github.com/advisories/GHSA-fvv5-h29g-f6w5
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/02/GHSA-fvv5-h29g-f6w5/GHSA-fvv5-h29g-f6w5.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-fvv5-h29g-f6w5
Aliases
Published
2024-02-22T21:36:04Z
Modified
2024-06-04T16:56:54.526779Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
User with ci:ReadAction permissions and write permissions to one path in a repository may copy objects from any path in the repository
Details

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

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2024-02-22T21:36:04Z"
}
References

Affected packages

Go / github.com/treeverse/lakefs

Package

Name
github.com/treeverse/lakefs
View open source insights on deps.dev
Purl
pkg:golang/github.com/treeverse/lakefs

Affected ranges

Type
SEMVER
Events
Introduced
0.90.0
Fixed
1.12.1

Database specific

{
    "last_known_affected_version_range": "<= 1.12.0"
}