Skip to content

lakeFS vulnerable to path traversal in local block adapter allow cross-namespace and sibling directory access

High severity GitHub Reviewed Published Feb 12, 2026 in treeverse/lakeFS • Updated Feb 13, 2026

Package

gomod github.com/treeverse/lakefs (Go)

Affected versions

<= 1.76.0

Patched versions

1.77.0

Description

Summary

Two path traversal vulnerabilities in the local block adapter allow authenticated users to read and write files outside their designated storage boundaries.

Details

The local block adapter in pkg/block/local/adapter.go had two path traversal vulnerabilities:

1. Prefix Bypass Vulnerability

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.

Example: If the adapter is configured with base path /data/lakefs:

Path Expected Actual
/data/lakefs/valid/file.txt Allowed Allowed
/data/lakefs_evil/secret.txt Blocked Vulnerable
/data/lakefs_backup/data.db Blocked Vulnerable

2. Namespace Escape via Identifier

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.

Example: With base path /data/lakefs and namespace local://repo1/userdata:

Identifier Resolved Path Expected Actual
file.txt /data/lakefs/repo1/userdata/file.txt Allowed Allowed
../secrets/key.txt /data/lakefs/repo1/secrets/key.txt Blocked Vulnerable
../../other-repo/data.txt /data/lakefs/other-repo/data.txt Blocked Vulnerable

This vulnerability allows users with access to one namespace to read and write files in other namespaces within the same lakeFS deployment.

Impact

Authenticated lakeFS users can:

  • Read and write files in sibling directories that share the same path prefix as the storage directory (vulnerability 1)
  • Access files across namespaces by using path traversal in object identifiers (vulnerability 2)

This could allow attackers to:

  • Read sensitive data from other repositories/namespaces
  • Write malicious files to other namespaces
  • Read/write files in adjacent directories outside lakeFS storage
  • Potentially escalate privileges if writable directories are used by other services

This vulnerability only affects deployments using the local block adapter. Deployments using S3, GCS, Azure, or other object storage backends are not affected.

Patches

Fixed in version v1.77.0.

The fixes:

  1. Append a path separator to prefix checks, ensuring paths must be within the storage directory
  2. Add two-level path validation: verify both that namespace paths stay within the adapter's base path AND that resolved paths stay within their designated namespace

Workarounds

  • Configure the storage path with a unique name unlikely to be a prefix of other directories
  • Restrict filesystem permissions for the lakeFS process
  • Ensure no sensitive data exists in sibling directories

Credit

Discovered via CodeQL static analysis.

References

@N-o-Z N-o-Z published to treeverse/lakeFS Feb 12, 2026
Published to the GitHub Advisory Database Feb 13, 2026
Reviewed Feb 13, 2026
Published by the National Vulnerability Database Feb 13, 2026
Last updated Feb 13, 2026

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

EPSS score

Exploit Prediction Scoring System (EPSS)

This score estimates the probability of this vulnerability being exploited within the next 30 days. Data provided by FIRST.
(31st percentile)

Weaknesses

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. Learn more on MITRE.

CVE ID

CVE-2026-26187

GHSA ID

GHSA-699m-4v95-rmpm

Source code

Credits

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.