Loading advisory.
Loading advisory.
Tekton Pipelines: VolumeMount path restriction bypass via missing filepath.Clean in /tekton/ check
A validation bypass in the VolumeMount path restriction allows mounting volumes under restricted /tekton/ internal paths by using .. path traversal components.
Published 2026-04-21 20:26 UTC · Modified 2026-09-10 03:51 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| github.com/tektoncd/pipeline | Go | >= 1.10.0, < 1.11.1 >= 1.7.0, < 1.9.3 >= 1.4.0, < 1.6.2 >= 1.2.0, < 1.3.4 >= 1.0.0, < 1.0.2 >= 1.1.0, < 1.3.4 | 1.11.1, 1.9.3, 1.6.2, 1.3.4, 1.0.2 | go get github.com/tektoncd/pipeline@v1.11.1go get github.com/tektoncd/pipeline@v1.9.3go get github.com/tektoncd/pipeline@v1.6.2go get github.com/tektoncd/pipeline@v1.3.4go get github.com/tektoncd/pipeline@v1.0.2 |
A validation bypass in the VolumeMount path restriction allows mounting
volumes under restricted /tekton/ internal paths by using .. path
traversal components. The restriction check uses strings.HasPrefix
without filepath.Clean, so a path like /tekton/home/../results
passes validation but resolves to /tekton/results at runtime.
Tekton Pipelines restricts VolumeMount paths under /tekton/ (except
/tekton/home) to prevent users from interfering with internal
execution state. The validation at
pkg/apis/pipeline/v1/container_validation.go checks mount paths using
strings.HasPrefix without normalizing the path first:
if strings.HasPrefix(vm.MountPath, "/tekton/") &&
!strings.HasPrefix(vm.MountPath, "/tekton/home") {
// reject
}Because /tekton/home is an allowed prefix, a path like
/tekton/home/../results passes both checks. At runtime, the container
runtime resolves .. and the actual mount point becomes
/tekton/results.
The same pattern exists in pkg/apis/pipeline/v1beta1/task_validation.go.
An authenticated user with Task or TaskRun creation permissions can mount volumes over internal Tekton paths, potentially:
Writing fake task results that downstream pipelines trust
Reading or modifying step scripts before execution
Interfering with entrypoint coordination state
(to be filled: fixed in versions X.Y.Z)
Use admission controllers (OPA/Gatekeeper, Kyverno) to validate that
VolumeMount paths do not contain .. components.
In multi-tenant setups, restrict who can create Task and TaskRun resources via RBAC.
All versions through v1.10.0 (both v1 and v1beta1 APIs).
This vulnerability was reported by @kodareef5.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.002 on 2026-11-24 to 0.003 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.002 | first score | v2026.06.15 |
| 2026-11-26 | 0.003 | 0.002 | v2026.06.15 |