{"id":"CVE-2026-33022","aliases":["CVE-2026-33022","GHSA-cv4x-93xx-wgfj","GO-2026-4730"],"related":["CGA-vg29-rqrr-7pq3"],"kind":"vulnerability","state":"published","title":"Tekton Pipelines: Controller can panic when setting long resolver names in TaskRun/PipelineRun","summary":"Tekton Pipelines project provides k8s-style resources for declaring CI/CD-style pipelines. Versions 0.60.0 through 1.0.0, 1.1.0 through 1.3.2, 1.4.0 through 1.6.0, 1.7.0 through 1.9.0, 1.10.0, and 1.10.1 have a denial-of-service vulnerability in that allows any user who can create a TaskRun or PipelineRun to crash the controller cluster-wide by setting .spec.taskRef.resolver (or .spec.pipelineRef.resolver) to a string of 31+ characters. The crash occurs because GenerateDeterministicNameFromSpec produces a name exceeding the 63-character DNS-1123 label limit, and its truncation logic panics on a [-1] slice bound since the generated name contains no spaces. Once crashed, the controller enters a CrashLoopBackOff on restart (as it re-reconciles the offending resource), blocking all CI/CD reconciliation until the resource is manually deleted. Built-in resolvers (git, cluster, bundles, hub) are unaffected due to their short names, but any custom resolver name triggers the bug. The fix truncates the resolver-name prefix instead of the full string, preserving the hash suffix for determinism and uniqueness. This issue has been patched in versions 1.0.1, 1.3.3, 1.6.1, 1.9.2 and 1.10.2.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Tekton Pipelines project provides k8s-style resources for declaring CI/CD-style pipelines. Versions 0.60.0 through 1.0.0, 1.1.0 through 1.3.2, 1.4.0 through 1.6.0, 1.7.0 through 1.9.0, 1.10.0, and 1.10.1 have a denial-of-service vulnerability in that allows any user who can create a TaskRun or PipelineRun to crash the controller cluster-wide by setting .spec.taskRef.resolver (or .spec.pipelineRef.resolver) to a string of 31+ characters. The crash occurs because GenerateDeterministicNameFromSpec produces a name exceeding the 63-character DNS-1123 label limit, and its truncation logic panics on a [-1] slice bound since the generated name contains no spaces. Once crashed, the controller enters a CrashLoopBackOff on restart (as it re-reconciles the offending resource), blocking all CI/CD reconciliation until the resource is manually deleted. Built-in resolvers (git, cluster, bundles, hub) are unaffected due to their short names, but any custom resolver name triggers the bug. The fix truncates the resolver-name prefix instead of the full string, preserving the hash suffix for determinism and uniqueness. This issue has been patched in versions 1.0.1, 1.3.3, 1.6.1, 1.9.2 and 1.10.2.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nA user with permission to create or update a TaskRun or PipelineRun can crash the Tekton Pipelines controller by setting `.spec.taskRef.resolver` (or `.spec.pipelineRef.resolver`) to a string of 31 characters or more, causing a denial of service for all reconciliation.\n\n### Details\n\nThe controller panics in `GenerateDeterministicNameFromSpec` when building a deterministic `ResolutionRequest` name. The generated name has the format `{resolver}-{hash}` and, when the resolver name is long enough, the result exceeds the DNS-1123 label limit of 63 characters.\n\nThe truncation logic attempts to find a word boundary using `strings.LastIndex(name, \" \")`. Since the generated name never contains spaces (it is composed of the resolver name, a dash, and a hex-encoded hash), `LastIndex` returns `-1`, which is then used as a slice bound:\n\n```go\nreturn name[:strings.LastIndex(name[:maxLength], \" \")], nil\n// strings.LastIndex returns -1 → panic: slice bounds out of range [:-1]\n```\n\nThe panic crashes the controller. Because the offending TaskRun or PipelineRun is re-reconciled on restart, the controller enters a `CrashLoopBackOff`, blocking all TaskRun and PipelineRun reconciliation cluster-wide until the offending resource is manually deleted.\n\nBuilt-in resolvers use short names (`git`, `cluster`, `bundles`, `hub`) and are not affected under normal usage. The vulnerability is exploitable by any user who can create TaskRuns or PipelineRuns with a custom resolver name.\n\n### Impact\n\n**Denial of service** — A single malicious TaskRun or PipelineRun with a long resolver name is sufficient to crash the Tekton Pipelines controller into a restart loop, blocking all CI/CD reconciliation cluster-wide until the resource is removed.\n\n### Patches\n\nFixed in versions 1.0.1, 1.3.3, 1.6.1, 1.9.2, 1.10.2.\n\nThe fix computes the hash first, then truncates only the prefix (resolver name) to fit within the DNS-1123 label limit, preserving the full hash to maintain determinism and uniqueness of `ResolutionRequest` names.\n\n### Workarounds\n\nRestrict who can create TaskRun and PipelineRun resources via Kubernetes RBAC. There is no validation-side workaround without patching.\n\n### Affected Versions\n\nAll releases from **v0.60.0** through **v1.10.0**.\n\nThe vulnerable truncation logic was introduced in commit `ea1fa7ad1fdc` (\"Remote Resolution Refactor\"), first released in v0.60.0 (2024-05-22).\n\nCurrently supported affected releases:\n- **v1.10.x** (latest)\n- **v1.9.x** (LTS, EOL 2027-01-30)\n- **v1.6.x** (LTS, EOL 2026-10-31)\n- **v1.3.x** (LTS, EOL 2026-08-04)\n- **v1.0.x** (LTS, EOL 2026-04-29)\n\nReleases prior to v0.60.0 are **not affected** — the truncation code did not exist.\n\n### Acknowledgments\n\nThis vulnerability was reported by Oleh Konko (@1seal), who provided a thorough vulnerability analysis, proof-of-concept, and review of the fix. Thank you!\n\n### References\n\n- Fix (main): [5eead3f859b9](https://github.com/tektoncd/pipeline/commit/5eead3f859b9f938e86039e4d29185092c1d4ee6)\n- Fix (v1.10.x): [01673237c464](https://github.com/tektoncd/pipeline/commit/01673237c464cfac7e286183f5c9e9d6ec951a64)\n- Fix (v1.9.x): [edc64bbf2232](https://github.com/tektoncd/pipeline/commit/edc64bbf22323fcf218170f19047c9bcd8163e90)\n- Fix (v1.6.x): [0fa2d66cff81](https://github.com/tektoncd/pipeline/commit/0fa2d66cff814838c3a10cce252104c7fe618932)\n- Fix (v1.3.x): [5e4905fb6754](https://github.com/tektoncd/pipeline/commit/5e4905fb6754efa5ecea54de195738d73fb0e01d)\n- Fix (v1.0.x): [ebc197e2b973](https://github.com/tektoncd/pipeline/commit/ebc197e2b9733deedaa1624212ec66dcdf61eaaf)\n- Introduced in: `ea1fa7ad1fdc` (\"Remote Resolution Refactor\")","format":"markdown","source":"ghsa"},{"lang":"en","text":"Tekton Pipelines controller panic via long resolver name in TaskRun/PipelineRun 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. Las versiones 0.60.0 a 1.0.0, 1.1.0 a 1.3.2, 1.4.0 a 1.6.0, 1.7.0 a 1.9.0, 1.10.0 y 1.10.1 tienen una vulnerabilidad de denegación de servicio que permite a cualquier usuario que pueda crear un TaskRun o PipelineRun bloquear el controlador en todo el clúster al establecer .spec.taskRef.resolver (o .spec.pipelineRef.resolver) a una cadena de 31 o más caracteres. El bloqueo ocurre porque GenerateDeterministicNameFromSpec produce un nombre que excede el límite de etiqueta DNS-1123 de 63 caracteres, y su lógica de truncamiento entra en pánico en un límite de segmento [-1] ya que el nombre generado no contiene espacios. Una vez bloqueado, el controlador entra en un CrashLoopBackOff al reiniciar (ya que vuelve a reconciliar el recurso infractor), bloqueando toda la reconciliación de CI/CD hasta que el recurso se elimine manualmente. Los resolvedores incorporados (git, cluster, bundles, hub) no se ven afectados debido a sus nombres cortos, pero cualquier nombre de resolvedor personalizado activa el error. La solución trunca el prefijo del nombre del resolvedor en lugar de la cadena completa, preservando el sufijo hash para determinismo y unicidad. Este problema ha sido parcheado en las versiones 1.0.1, 1.3.3, 1.6.1, 1.9.2 y 1.10.2.","source":"nvd"}],"published":"2026-03-17T19:46:29.000Z","modified":"2026-09-10T03:50:38.709Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"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:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-129","CWE-400"],"affected":[{"ranges":[{"version":">= 0.60.0, < 1.0.1","status":"affected"},{"version":">= 1.1.0, < 1.3.3","status":"affected"},{"version":">= 1.4.0, < 1.6.1","status":"affected"},{"version":">= 1.7.0, < 1.9.2","status":"affected"},{"version":">= 1.10.0, < 1.10.2","status":"affected"}],"vendor":"tektoncd","product":"pipeline","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.60.0","status":"affected","fixed":"1.0.1"}],"ecosystem":"Go","package":"github.com/tektoncd/pipeline","purl":"pkg:golang/github.com/tektoncd/pipeline","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.1.0","status":"affected","fixed":"1.3.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.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.2"}],"ecosystem":"Go","package":"github.com/tektoncd/pipeline","purl":"pkg:golang/github.com/tektoncd/pipeline","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.10.0","status":"affected","fixed":"1.10.2"}],"ecosystem":"Go","package":"github.com/tektoncd/pipeline","purl":"pkg:golang/github.com/tektoncd/pipeline","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.60.0","status":"affected","fixed":"1.0.1"},{"type":"semver","introduced":"1.1.0","status":"affected","fixed":"1.3.3"},{"type":"semver","introduced":"1.4.0","status":"affected","fixed":"1.6.1"},{"type":"semver","introduced":"1.7.0","status":"affected","fixed":"1.9.2"},{"type":"semver","introduced":"1.10.0","status":"affected","fixed":"1.10.2"}],"ecosystem":"Go","package":"github.com/tektoncd/pipeline","purl":"pkg:golang/github.com/tektoncd/pipeline","source":"go"},{"ranges":[{"status":"affected","introduced":"0.60.0","fixed":"1.0.1"},{"status":"affected","introduced":"1.1.0","fixed":"1.3.3"},{"status":"affected","introduced":"1.4.0","fixed":"1.6.1"},{"status":"affected","introduced":"1.7.0","fixed":"1.9.2"},{"status":"affected","introduced":"1.10.0","fixed":"1.10.2"}],"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-cv4x-93xx-wgfj","tags":["advisory","patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/tektoncd/pipeline/commit/5eead3f859b9f938e86039e4d29185092c1d4ee6","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33022","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/tektoncd/pipeline/commit/01673237c464cfac7e286183f5c9e9d6ec951a64","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/tektoncd/pipeline/commit/0fa2d66cff814838c3a10cce252104c7fe618932","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/tektoncd/pipeline/commit/5e4905fb6754efa5ecea54de195738d73fb0e01d","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/tektoncd/pipeline/commit/ebc197e2b9733deedaa1624212ec66dcdf61eaaf","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/tektoncd/pipeline/commit/edc64bbf22323fcf218170f19047c9bcd8163e90","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/tektoncd/pipeline","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/tektoncd/pipeline/commit/5eead3f859b9","tags":["fix"],"sources":["go"]},{"url":"https://github.com/tektoncd/pipeline/commit/01673237c464","tags":["fix"],"sources":["go"]},{"url":"https://github.com/tektoncd/pipeline/commit/edc64bbf2232","tags":["fix"],"sources":["go"]},{"url":"https://github.com/tektoncd/pipeline/commit/0fa2d66cff81","tags":["fix"],"sources":["go"]},{"url":"https://github.com/tektoncd/pipeline/commit/5e4905fb6754","tags":["fix"],"sources":["go"]},{"url":"https://github.com/tektoncd/pipeline/commit/ebc197e2b973","tags":["fix"],"sources":["go"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-03-20T16:22:10.536Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-33022","url":"https://www.cve.org/CVERecord?id=CVE-2026-33022","licence":"CVE Terms of Use","modified":"2026-03-20T18:07:35.331Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cv4x-93xx-wgfj","url":"https://github.com/advisories/GHSA-cv4x-93xx-wgfj","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:38.709Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-4730","url":"https://pkg.go.dev/vuln/GO-2026-4730","licence":"CC-BY-4.0","modified":"2026-07-23T19:15:15.711Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-33022","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33022","licence":"Public domain","modified":"2026-06-17T10:36:47.793Z"}],"updatedAt":"2026-11-25T22:59:16.291Z","epss":{"score":0.00406,"percentile":0.36995,"date":"2026-12-01T12:00:22.000Z"}}