lakeFS vulnerable to path traversal in local block adapter allow cross-namespace and sibling directory access
Description
lakeFS is an open-source tool that transforms object storage into a Git-like repositories. Prior to 1.77.0, the local block adapter (pkg/block/local/adapter.go) allows authenticated users to read and write files outside their designated storage boundaries. The verifyRelPath function used strings.HasPrefix() to verify that requested paths fall within the configured storage directory. This check was insufficient because it validated only the path prefix without requiring a path separator, allowing access to sibling directories with similar names. Also, the adapter verified that resolved paths stayed within the adapter's base path, but did not verify that object identifiers stayed within their designated storage namespace. This allowed attackers to use path traversal sequences in the object identifier to access files in other namespaces. Fixed in version v1.77.0.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/treeverse/lakefsGo | < 1.77.0 | 1.77.0 |
Affected products
1Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
5- github.com/advisories/GHSA-699m-4v95-rmpmghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-26187ghsaADVISORY
- github.com/treeverse/lakeFS/commit/cbc106275357302a834280f133265dc39f1384ceghsax_refsource_MISCWEB
- github.com/treeverse/lakeFS/releases/tag/v1.77.0ghsax_refsource_MISCWEB
- github.com/treeverse/lakeFS/security/advisories/GHSA-699m-4v95-rmpmghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.