# CVE-2026-92791: Uber Kraken through 0.1.29 Path Traversal via tag parameter

The Markdown version of <https://upatch.dev/cve/CVE-2026-92791>. Last updated 25 Nov 2026.

## At a glance

CVE-2026-92791 is rated High 8.7 (CVSS 4.0, CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X). It affects Kraken (uber) and was published on 16 Sept 2026. It is not in CISA's Known Exploited Vulnerabilities catalog. Its EPSS score is 0.6%: the estimated chance it is exploited in the next 30 days, as of 24 Nov 2026. The upatch `cve-2026-92791-testfs-block` mitigates it, and is vetted (merged into the registry).

A upatch is a signed BPF program that shirudo loads into a running Linux kernel to block the code path this CVE's exploit takes. It holds the line until the fix ships; it does not replace patching.

## The vulnerability

CVE-2026-92791, published on 16 September 2026, is an unauthenticated path traversal in Uber Kraken through 0.1.29 (and 0.1.30, fixed in 0.1.31). Kraken's `build-index` component exposes `GET /tags/{tag}` and `HEAD /tags/{tag}` (`build-index/tagserver/server.go`), which decode the `tag` URL parameter with `httputil.ParseParam` (`url.PathUnescape`) and pass it to `namepath.DockerTagPather.BlobPath` (`lib/backend/namepath/pather.go`). `BlobPath` splits the string on `:` into `repo` and `tag` and joins `path.Join(p.BasePath(), repo, "_manifests/tags", tag, "current/link")` without checking for `..` or `/`. When backed by Kraken's `testfs` storage server (`lib/backend/testfs/server.go`), `s.path(entry)` replaces `:` with `/` and runs `filepath.Join(s.dir, entry)` without verifying that the resolved path stays inside `s.dir` (`/tmp/kraken-testfs*`). A tag parameter with percent-encoded `../` segments such as `..%2f..%2f..%2f..%2f..%2f..%3aevil-tag` walks out of the storage root and lets an unauthenticated caller stat arbitrary files via `HEAD /tags/{tag}` (`os.Stat` in `statHandler`) or read files via `GET /tags/{tag}` (`os.Open` in `downloadHandler`).

### Official description

Uber Kraken through 0.1.29 fails to validate the tag parameter in the /tags/{tag} endpoint, allowing unauthenticated attackers to traverse outside the configured storage root. Attackers can use percent-encoded parent-directory segments in the tag parameter to read arbitrary files accessible to the testfs backend process.

## What the upatch does

Two BPF LSM programs match processes whose executable is `testfs` or `kraken-testfs`:

| Hook                | Refused                                                                                              |
| ------------------- | ---------------------------------------------------------------------------------------------------- |
| `lsm/file_open`     | Opening a regular file whose dentry has no `/tmp/kraken-testfs*` ancestor within 16 directory levels |
| `lsm/inode_getattr` | Statting a path whose dentry has no `/tmp/kraken-testfs*` ancestor within 16 directory levels        |

`testfs.NewServer()` creates its storage directory with `os.MkdirTemp("/tmp", "kraken-testfs")`, and every file stored in the backend lives under `/tmp/kraken-testfs*/`. When `filepath.Join(s.dir, entry)` resolves `..` segments outside `s.dir`, the kernel resolves the path outside `/tmp/kraken-testfs*`, so the resulting dentry has no `kraken-testfs*` ancestor and the upatch returns `-EPERM`. A refusal from an earlier BPF LSM program on the same hook is preserved.

The `refused` per-CPU array counts refusals at key 0.

The policy: [`cve-2026-92791-testfs-block.bpf.c`](https://github.com/copper-helm/upatch-registry/tree/main/upatches/cve-2026-92791), 134 lines of BPF C attached at `lsm/file_open` and `lsm/inode_getattr`, licensed GPL-2.0 OR BSD-2-Clause.

## Side effects

- `testfs` (`kraken-testfs`) cannot stat or open regular files outside its `/tmp/kraken-testfs*` directory after starting.
- Normal tag uploads, stats (`HEAD /tags/{tag}`), downloads (`GET /tags/{tag}`) and listings within `/tmp/kraken-testfs*` continue to work.
- All other processes on the machine are unaffected.

## Preemption model and cost

The programs keep no shared state other than the per-CPU `refused` counter updated with `__sync_fetch_and_add`, making them safe under every preemption model including preemptible RCU and `PREEMPT_RT`. Every `file_open` and `inode_getattr` call checks the current task's executable dentry length and name first and returns immediately for every process other than `testfs` or `kraken-testfs`.

## Affected versions

Uber Kraken:

| Component     | Affected                                        | Fixed in |
| ------------- | ----------------------------------------------- | -------- |
| `uber/kraken` | through 0.1.30 (advisory states through 0.1.29) | 0.1.31   |

## How it was tested

On Uber Kraken v0.1.29 backed by testfs, the loaded upatch refused the path-traversal read outside the /tmp/kraken-testfs\* storage root while normal tag resolution inside the storage root kept working.

- **Tested:** 25 Nov 2026
- **Target:** Uber Kraken v0.1.29 build-index tagserver and kraken-testfs backend on loopback
- **Kernel:** 7.4-shirudo-ci-20261123
- **Architecture:** x86_64
- **Distribution:** Ubuntu 26.04

### Results

| State           | Traversal GET /tags/{tag} outside testfs root | Normal GET /tags/library%2Falpine%3Alatest |
| --------------- | --------------------------------------------- | ------------------------------------------ |
| Before loading  | HTTP 200 (probe digest returned)              | HTTP 200                                   |
| Upatch loaded   | HTTP 404 (open refused with EPERM)            | HTTP 200                                   |
| After unloading | HTTP 200 (probe digest returned)              | HTTP 200                                   |

## How to apply

Build the upatch from source, sign it with your own shirudo key, and publish it to your own OCI registry. Machines that follow your upatch tree load it within about a minute.

Build and sign:

```sh
git clone https://github.com/copper-helm/upatch-registry
cd upatch-registry
tools/build <shirudo-checkout> <keys-dir> 1.0.0 upatches/cve-2026-92791
```

Publish and roll out:

```sh
shirudo bpm push build/packages/cve-2026-92791-1.0.0.bee oci://<registry>/<namespace>/cve-2026-92791 --keys-dir <keys-dir>
shirudo bpm tree append build/packages/cve-2026-92791-1.0.0.bee oci://<registry>/<namespace>/<tree> --tree-id <tree-id> --keys-dir <keys-dir>
```

## Review

- Contributors: romanlab.
- Reviewers: none recorded yet.

## Sources and links

- [CVE-2026-92791 advisory (VulnCheck)](https://www.vulncheck.com/advisories/uber-kraken-through-0.1.29-path-traversal-via-tag-parameter)
- [Uber Kraken issue #645](https://github.com/uber/kraken/issues/645)
- [Uber Kraken pull request #668](https://github.com/uber/kraken/pull/668)
- [Fix commit 61495fd1e8b8aca827d89f088a685cda422c12a8](https://github.com/uber/kraken/commit/61495fd1e8b8aca827d89f088a685cda422c12a8)
- [Uber Kraken v0.1.27 tagserver/server.go](https://github.com/uber/kraken/blob/v0.1.27/build-index/tagserver/server.go#L128-L129)
- [Uber Kraken v0.1.27 namepath/pather.go](https://github.com/uber/kraken/blob/v0.1.27/lib/backend/namepath/pather.go#L78-L84)
- [Uber Kraken v0.1.27 testfs/server.go](https://github.com/uber/kraken/blob/v0.1.27/lib/backend/testfs/server.go#L165-L173)

### Links

- [CVE-2026-92791 on upatch.dev](https://upatch.dev/cve/CVE-2026-92791) (this page, as HTML)
- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-92791)
- [CVE.org](https://www.cve.org/CVERecord?id=CVE-2026-92791)
- [CWE-22](https://cwe.mitre.org/data/definitions/22.html)
- Upatch source: [upatches/cve-2026-92791](https://github.com/copper-helm/upatch-registry/tree/main/upatches/cve-2026-92791)

### More references from NVD (6)

- [github.com](https://github.com/uber/kraken)
- [github.com](https://github.com/uber/kraken/blob/v0.1.27/build-index/tagserver/server.go#L128-L129)
- [github.com](https://github.com/uber/kraken/blob/v0.1.27/lib/backend/namepath/pather.go#L78-L84)
- [github.com](https://github.com/uber/kraken/blob/v0.1.27/lib/backend/testfs/server.go#L165-L173)
- [github.com](https://github.com/uber/kraken/issues/645)
- [vulncheck.com](https://www.vulncheck.com/advisories/uber-kraken-through-0.1.29-path-traversal-via-tag-parameter)
