CVE-2026-26187
JSON

8.1high

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

Severity
8.1high CVSS:3.1 by GitHub_M
Exploit likelihood
0.46% (higher than 41% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-699m-4v95-rmpmGO-2026-4494

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

Product or packageVersionsReported by
treeverse lakeFS< 1.77.0CVE List
github.com/treeverse/lakefs (Go)before 1.77.0GitHub Advisory Database, Go Vulnerability Database
lakefs lakefsbefore 1.77.0NVD

All scores

GitHub_M8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
GitHub8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Classification

CWE-22

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database

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:

PathExpectedActual
/data/lakefs/valid/file.txtAllowedAllowed
/data/lakefs_evil/secret.txtBlockedVulnerable
/data/lakefs_backup/data.dbBlockedVulnerable
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:

IdentifierResolved PathExpectedActual
file.txt/data/lakefs/repo1/userdata/file.txtAllowedAllowed
../secrets/key.txt/data/lakefs/repo1/secrets/key.txtBlockedVulnerable
../../other-repo/data.txt/data/lakefs/other-repo/data.txtBlockedVulnerable

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.

Go Vulnerability Database

lakeFS vulnerable to path traversal in local block adapter allow cross-namespace and sibling directory access in github.com/treeverse/lakefs

NVD (es)

lakeFS es una herramienta de código abierto que transforma el almacenamiento de objetos en repositorios similares a Git. Antes de la versión 1.77.0, el adaptador de bloque local (pkg/block/local/adapter.go) permitía a los usuarios autenticados leer y escribir archivos fuera de sus límites de almacenamiento designados. La función verifyRelPath utilizaba strings.HasPrefix() para verificar que las rutas solicitadas estuvieran dentro del directorio de almacenamiento configurado. Esta verificación era insuficiente porque validaba solo el prefijo de la ruta sin requerir un separador de ruta, lo que permitía el acceso a directorios hermanos con nombres similares. Además, el adaptador verificaba que las rutas resueltas permanecieran dentro de la ruta base del adaptador, pero no verificaba que los identificadores de objeto permanecieran dentro de su espacio de nombres de almacenamiento designado. Esto permitía a los atacantes utilizar secuencias de salto de ruta en el identificador de objeto para acceder a archivos en otros espacios de nombres. Corregido en la versión v1.77.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-26187 changed 2026-02-13CVE Terms of Use
GitHub Advisory DatabaseGHSA-699m-4v95-rmpm changed 2026-02-19CC-BY-4.0
Go Vulnerability DatabaseGO-2026-4494 changed 2026-02-19CC-BY-4.0
NVDCVE-2026-26187 changed 2026-06-17Public domain