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

Published Feb 13, 2026
·
Updated

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/lakefsevil/secret.txt | Blocked | Vulnerable | | /data/lakefsbackup/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.

Other sources

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.

MITRE

Affected Software

2 affected componentsFixes available
go/github.com/treeverse/lakefs<=1.76.0
1.77.0
lakeFS lakeFS<1.77.0

Event History

Feb 13, 2026
Advisory Published
via GitHub·04:16 PM
Data Sourced
via GitHub·04:16 PM
DescriptionSeverityWeaknessAffected Software
CVE Published
via MITRE·06:34 PM
Data Sourced
via MITRE·06:34 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:17 PM
RemedyDescriptionSeverityWeaknessAffected Software
Nov 23, 58106
Event
via FIRST·05:09 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-26187?

CVE-2026-26187 is a critical severity vulnerability due to its potential for unauthorized file access and modification.

2

How do I fix CVE-2026-26187?

To fix CVE-2026-26187, upgrade to version 1.77.0 or later of the affected package.

3

Who is affected by CVE-2026-26187?

Authenticated users of the local block adapter in versions up to 1.76.0 of the package are affected by CVE-2026-26187.

4

What types of vulnerabilities does CVE-2026-26187 contain?

CVE-2026-26187 contains two path traversal vulnerabilities that allow file access outside designated storage boundaries.

5

What is the potential impact of CVE-2026-26187?

The potential impact of CVE-2026-26187 includes unauthorized reading and writing of files, which can compromise data integrity and confidentiality.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203
CVE-2026-26187 - lakeFS vulnerable to path traversal in local block adapter allow cross-namespace and sibling directory access - SecAlerts