github.com/tektoncd/pipeline
Affected
- introduced
1.10.0, fixed1.11.1(semver)
Fixed versions
1.11.1
Fix
- Fixed version
1.11.1go get github.com/tektoncd/[email protected]
Advisory
Also known as: CVE-2026-40923, GO-2026-5643
Tekton Pipelines: VolumeMount path restriction bypass via missing filepath.Clean in /tekton/ check
Summary
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.
Details
Tekton Pipelines restricts VolumeMount paths under /tekton/ (except/tekton/home) to prevent users from interfering with internal
execution state. The validation atpkg/apis/pipeline/v1/container_validation.go checks mount paths usingstrings.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.
Impact
An authenticated user with Task or TaskRun creation permissions can
mount volumes over internal Tekton paths, potentially:
Patches
_(to be filled: fixed in versions X.Y.Z)_
Workarounds
.. components.Affected Versions
All versions through v1.10.0 (both v1 and v1beta1 APIs).
Acknowledgments
This vulnerability was reported by @kodareef5.
Medium Basis: The source's own band: MODERATE
1.10.0, fixed 1.11.1 (semver)1.11.1
1.11.1go get github.com/tektoncd/[email protected]1.7.0, fixed 1.9.3 (semver)1.9.3
1.9.3go get github.com/tektoncd/[email protected]1.4.0, fixed 1.6.2 (semver)1.6.2
1.6.2go get github.com/tektoncd/[email protected]1.2.0, fixed 1.3.4 (semver)1.3.4
1.3.4go get github.com/tektoncd/[email protected]1.0.0, fixed 1.0.2 (semver)1.0.2
1.0.2go get github.com/tektoncd/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0