{"id":"CVE-2026-40923","aliases":["CVE-2026-40923","GHSA-rx35-6rhx-7858","GO-2026-5643"],"related":[],"kind":"vulnerability","state":"published","title":"Tekton Pipelines: VolumeMount path restriction bypass via missing filepath.Clean in /tekton/ check","summary":"Tekton Pipelines project provides k8s-style resources for declaring CI/CD-style pipelines. Starting in version 1.0.0 and prior to versions 1.0.2, 1.3.4, 1.6.2, 1.9.3, and 1.11.1, 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. Versions 1.0.2, 1.3.4, 1.6.2, 1.9.3, and 1.11.1 fix the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Tekton Pipelines project provides k8s-style resources for declaring CI/CD-style pipelines. Starting in version 1.0.0 and prior to versions 1.0.2, 1.3.4, 1.6.2, 1.9.3, and 1.11.1, 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. Versions 1.0.2, 1.3.4, 1.6.2, 1.9.3, and 1.11.1 fix the issue.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nA validation bypass in the VolumeMount path restriction allows mounting\nvolumes under restricted `/tekton/` internal paths by using `..` path\ntraversal components. The restriction check uses `strings.HasPrefix`\nwithout `filepath.Clean`, so a path like `/tekton/home/../results`\npasses validation but resolves to `/tekton/results` at runtime.\n\n### Details\n\nTekton Pipelines restricts VolumeMount paths under `/tekton/` (except\n`/tekton/home`) to prevent users from interfering with internal\nexecution state. The validation at\n`pkg/apis/pipeline/v1/container_validation.go` checks mount paths using\n`strings.HasPrefix` without normalizing the path first:\n\n```go\nif strings.HasPrefix(vm.MountPath, \"/tekton/\") &&\n    !strings.HasPrefix(vm.MountPath, \"/tekton/home\") {\n    // reject\n}\n```\n\nBecause `/tekton/home` is an allowed prefix, a path like\n`/tekton/home/../results` passes both checks. At runtime, the container\nruntime resolves `..` and the actual mount point becomes\n`/tekton/results`.\n\nThe same pattern exists in `pkg/apis/pipeline/v1beta1/task_validation.go`.\n\n### Impact\n\nAn authenticated user with Task or TaskRun creation permissions can\nmount volumes over internal Tekton paths, potentially:\n\n- Writing fake task results that downstream pipelines trust\n- Reading or modifying step scripts before execution\n- Interfering with entrypoint coordination state\n\n### Patches\n\n_(to be filled: fixed in versions X.Y.Z)_\n\n### Workarounds\n\n- Use admission controllers (OPA/Gatekeeper, Kyverno) to validate that\n  VolumeMount paths do not contain `..` components.\n- In multi-tenant setups, restrict who can create Task and TaskRun\n  resources via RBAC.\n\n### Affected Versions\n\nAll versions through **v1.10.0** (both `v1` and `v1beta1` APIs).\n\n### Acknowledgments\n\nThis vulnerability was reported by @kodareef5.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Tekton Pipelines VolumeMount path restriction bypass via missing filepath.Clean in github.com/tektoncd/pipeline","format":"markdown","source":"go"},{"lang":"es","text":"El proyecto Tekton Pipelines proporciona recursos estilo k8s para declarar pipelines estilo CI/CD. A partir de la versión 1.0.0 y antes de las versiones 1.0.2, 1.3.4, 1.6.2, 1.9.3 y 1.11.1, una omisión de validación en la restricción de ruta de VolumeMount permite montar volúmenes bajo rutas internas restringidas /tekton/ utilizando componentes de salto de ruta ... La comprobación de la restricción utiliza strings.HasPrefix sin filepath.Clean, por lo que una ruta como /tekton/home/.. / results pasa la validación pero se resuelve a /tekton/results en tiempo de ejecución. Las versiones 1.0.2, 1.3.4, 1.6.2, 1.9.3 y 1.11.1 corrigen el problema.","source":"nvd"}],"published":"2026-04-21T20:26:41.000Z","modified":"2026-10-26T22:10:00.163Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":">= 1.0.0, < 1.0.2","status":"affected"},{"version":">= 1.2.0, < 1.3.4","status":"affected"},{"version":">= 1.4.0, < 1.6.2","status":"affected"},{"version":">= 1.7.0, < 1.9.3","status":"affected"},{"version":">= 1.10.0, < 1.11.1","status":"affected"}],"vendor":"tektoncd","product":"pipeline","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.10.0","status":"affected","fixed":"1.11.1"}],"ecosystem":"Go","package":"github.com/tektoncd/pipeline","purl":"pkg:golang/github.com/tektoncd/pipeline","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.7.0","status":"affected","fixed":"1.9.3"}],"ecosystem":"Go","package":"github.com/tektoncd/pipeline","purl":"pkg:golang/github.com/tektoncd/pipeline","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.4.0","status":"affected","fixed":"1.6.2"}],"ecosystem":"Go","package":"github.com/tektoncd/pipeline","purl":"pkg:golang/github.com/tektoncd/pipeline","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.2.0","status":"affected","fixed":"1.3.4"}],"ecosystem":"Go","package":"github.com/tektoncd/pipeline","purl":"pkg:golang/github.com/tektoncd/pipeline","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.0.0","status":"affected","fixed":"1.0.2"}],"ecosystem":"Go","package":"github.com/tektoncd/pipeline","purl":"pkg:golang/github.com/tektoncd/pipeline","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.0.0","status":"affected","fixed":"1.0.2"},{"type":"semver","introduced":"1.1.0","status":"affected","fixed":"1.3.4"},{"type":"semver","introduced":"1.4.0","status":"affected","fixed":"1.6.2"},{"type":"semver","introduced":"1.7.0","status":"affected","fixed":"1.9.3"},{"type":"semver","introduced":"1.10.0","status":"affected","fixed":"1.11.1"}],"ecosystem":"Go","package":"github.com/tektoncd/pipeline","purl":"pkg:golang/github.com/tektoncd/pipeline","source":"go"},{"ranges":[{"status":"affected","fixed":"1.11.1"}],"vendor":"linuxfoundation","product":"tekton_pipelines","cpe":"cpe:2.3:a:linuxfoundation:tekton_pipelines:*:*:*:*:*:go:*:*","source":"nvd"}],"references":[{"url":"https://github.com/tektoncd/pipeline/security/advisories/GHSA-rx35-6rhx-7858","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/tektoncd/pipeline/releases/tag/v1.11.1","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40923","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/tektoncd/pipeline","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-04-22T13:50:48.955Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-40923","url":"https://www.cve.org/CVERecord?id=CVE-2026-40923","licence":"CVE Terms of Use","modified":"2026-05-22T15:41:51.388Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rx35-6rhx-7858","url":"https://github.com/advisories/GHSA-rx35-6rhx-7858","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:03.014Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5643","url":"https://pkg.go.dev/vuln/GO-2026-5643","licence":"CC-BY-4.0","modified":"2026-07-23T19:15:17.194Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-40923","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40923","licence":"Public domain","modified":"2026-10-26T22:10:00.163Z"}],"updatedAt":"2026-11-25T22:59:19.191Z","epss":{"score":0.00224,"percentile":0.13917,"date":"2026-12-02T12:00:21.000Z"}}