{"answers":{"affected":"3 open source packages ship an affected version, including github.com/treeverse/lakefs.","exploited":"There is no known exploitation of GHSA-fvv5-h29g-f6w5 in the wild and no public exploit code.","fix":"Upgrade github.com/treeverse/lakefs to 1.12.1 or later.","what":"GHSA-fvv5-h29g-f6w5 is a missing authorization vulnerability in github.com/treeverse/lakefs, published on 22 Feb 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-fvv5-h29g-f6w5 and fix it if it is affected.\n\nWhat it is: GHSA-fvv5-h29g-f6w5 is a missing authorization vulnerability in github.com/treeverse/lakefs, published on 22 Feb 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-fvv5-h29g-f6w5 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/treeverse/lakefs (Go): affected from 0.90.0; fixed in 1.12.1\n- github.com/treeverse/lakefs (Go): affected from 0.90.0; fixed in 1.12.1\n- github.com/treeverse/lakefs (Go): affected from 0.90.0; fixed in 1.12.1\n\nTask:\n1. 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.\n2. 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.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-fvv5-h29g-f6w5/ (Markdown: https://insights.sbomify.com/GHSA-fvv5-h29g-f6w5/index.md)","id":"GHSA-fvv5-h29g-f6w5","markdown":"https://insights.sbomify.com/GHSA-fvv5-h29g-f6w5/index.md","name":"GHSA-fvv5-h29g-f6w5","record":{"aliases":["GO-2024-2581"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"lakeFS storage server","requires_auth":"low_privilege","summary":"A user with specific CI and path write permissions can bypass read restrictions to access otherwise unreadable repository objects.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Impact\n\nA 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.\n\nIn order to be affected and exploitable, the following conditions must ALL occur on the same user:\n1. `ci:ReadAction` enabled for the repository.  Predefined policies RepoManagementRead and RepoManagementFullAccess allow this action.\n2. `fs:ReadObject` and `fs:WriteObject` enabled for some path.\n3. `fs:ReadObject` _not_ available for some path\n\nSuch 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.\n\n### Patches\n\nReleases \u003e= 1.12.1 fix this issue in lakeFS.\n\n### Workarounds\n\nAs a workaround, use RBAC to deny `ci:*` permissions to all users, or to all users who have limited read access.\n\nMany installations are unaffected:\n\n* **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.\n* **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.**\n\nIn 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.\n\n### References\n\n* [lakeFS RBAC](https://docs.lakefs.io/reference/security/rbac.html)","ecosystems":["Go"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Impact A bug in permissions validation allows a user with the `ci:ReadAction` permission to skip read checks when copying an object.","id":"GHSA-fvv5-h29g-f6w5","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"missing_authorization","year":"2024"},"n_packages":3,"n_references":null,"packages":[{"ecosystem":"Go","fixed":["1.12.1"],"introduced":["0.90.0"],"last_affected":[],"package":"github.com/treeverse/lakefs","purl":null,"source":"GHSA-fvv5-h29g-f6w5"},{"ecosystem":"Go","fixed":["1.12.1"],"introduced":["0.90.0"],"last_affected":[],"package":"github.com/treeverse/lakefs","purl":"pkg:golang/github.com/treeverse/lakefs","source":"GHSA-fvv5-h29g-f6w5"},{"ecosystem":"Go","fixed":["1.12.1"],"introduced":["0.90.0"],"last_affected":[],"package":"github.com/treeverse/lakefs","purl":"pkg:golang/github.com/treeverse/lakefs","source":"GO-2024-2581"}],"products":null,"published":"2024-02-22","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"A user with specific CI and path write permissions can bypass read restrictions to access otherwise unreadable repository objects.","url":"https://insights.sbomify.com/GHSA-fvv5-h29g-f6w5/"}