CVE-2026-33211: Tekton Pipelines git resolver has path traversal that allows reading arbitrary files from the resolver pod

Published Mar 18, 2026
·
Updated

Summary

The Tekton Pipelines git resolver is vulnerable to path traversal via the pathInRepo parameter. A tenant with permission to create ResolutionRequests (e.g. by creating TaskRuns or PipelineRuns that use the git resolver) can read arbitrary files from the resolver pod's filesystem, including ServiceAccount tokens. The file contents are returned base64-encoded in resolutionrequest.status.data.

Details

The git resolver's getFileContent() function in pkg/resolution/resolver/git/repository.go constructs a file path by joining the repository clone directory with the user-supplied pathInRepo parameter:

go fileContents, err := os.ReadFile(filepath.Join(repo.directory, path))

The pathInRepo parameter is not validated for path traversal sequences. An attacker can supply values like ../../../../etc/passwd to escape the cloned repository directory and read arbitrary files from the resolver pod's filesystem.

The vulnerability was introduced in commit 318006c4e3a5 which switched the git resolver from the go-git library (using an in-memory filesystem that cannot be escaped) to shelling out to the git binary and reading files with os.ReadFile() from the real filesystem.

Impact

Arbitrary file read — A namespace-scoped tenant who can create TaskRuns or PipelineRuns with git resolver parameters can read any file readable by the resolver pod process.

Credential exfiltration and privilege escalation — The resolver pod's ServiceAccount token is readable at a well-known path (/var/run/secrets/kubernetes.io/serviceaccount/token). In the default RBAC configuration, the tekton-pipelines-resolvers ServiceAccount has get, list, and watch permissions on secrets cluster-wide. An attacker who exfiltrates this token gains the ability to read all Secrets across all namespaces, escalating from namespace-scoped access to cluster-wide secret access.

Patches

Fixed in 1.0.x, 1.3.x, 1.6.x, 1.9.x, 1.10.x.

The fix validates pathInRepo to reject paths containing .. components at parameter validation time, and adds a containment check using filepath.EvalSymlinks() to prevent symlink-based escapes from attacker-controlled repositories.

Workarounds

There is no workaround other than restricting which users can create TaskRuns, PipelineRuns, or ResolutionRequests that use the git resolver. Administrators can also reduce the impact by scoping the resolver pod's ServiceAccount RBAC permissions using a custom ClusterRole with more restrictive rules.

Affected Versions

All releases from v1.0.0 through v1.10.0, including all patch releases:

- v1.0.0, v1.1.0, v1.2.0 - v1.3.0, v1.3.1, v1.3.2 - v1.4.0, v1.5.0, v1.6.0, v1.7.0 - v1.9.0, v1.9.1, v1.10.0

Releases prior to v1.0.0 (e.g. v0.70.0 and earlier) are not affected because they used the go-git library's in-memory filesystem where path traversal cannot escape the git worktree.

Acknowledgments

This vulnerability was reported by Oleh Konko (@1seal), who provided a thorough vulnerability analysis, proof-of-concept, and review of the fix. Thank you!

References

- Fix: (link to merged PR/commit) - Introduced in: 318006c4e3a5 ("fix: resolve Git Anonymous Resolver excessive memory usage")

Other sources

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.1, 1.3.3, 1.6.1, 1.9.2, and 1.10.2, the Tekton Pipelines git resolver is vulnerable to path traversal via the pathInRepo parameter. A tenant with permission to create ResolutionRequests (e.g. by creating TaskRuns or PipelineRuns that use the git resolver) can read arbitrary files from the resolver pod's filesystem, including ServiceAccount tokens. The file contents are returned base64-encoded in resolutionrequest.status.data. Versions 1.0.1, 1.3.3, 1.6.1, 1.9.2, and 1.10.2 contain a patch.

MITRE

Affected Software

10 affected componentsFixes available
go/github.com/tektoncd/pipeline>=1.10.0<1.10.2
1.10.2
go/github.com/tektoncd/pipeline>=1.7.0<1.9.2
1.9.2
go/github.com/tektoncd/pipeline>=1.4.0<1.6.1
1.6.1
go/github.com/tektoncd/pipeline>=1.1.0<1.3.3
1.3.3
go/github.com/tektoncd/pipeline>=1.0.0<1.0.1
1.0.1
linuxfoundation Tekton Pipelines Go>=1.1.0<1.3.3
linuxfoundation Tekton Pipelines Go>=1.4.0<1.6.1
linuxfoundation Tekton Pipelines Go>=1.7.0<1.9.2
linuxfoundation Tekton Pipelines Go>=1.10.0<1.10.2
linuxfoundation Tekton Pipelines Go=1.0.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/tektoncd/pipeline to a version that resolves this vulnerability.

    Fixed in 1.10.2
  2. Upgrade

    Upgrade go/github.com/tektoncd/pipeline to a version that resolves this vulnerability.

    Fixed in 1.9.2
  3. Upgrade

    Upgrade go/github.com/tektoncd/pipeline to a version that resolves this vulnerability.

    Fixed in 1.6.1
  4. Upgrade

    Upgrade go/github.com/tektoncd/pipeline to a version that resolves this vulnerability.

    Fixed in 1.3.3
  5. Upgrade

    Upgrade go/github.com/tektoncd/pipeline to a version that resolves this vulnerability.

    Fixed in 1.0.1
  6. Upgrade

    Upgrade Tekton Pipelines git resolver to a version that resolves this vulnerability.

    Fixed in 1.0.1
  7. Upgrade

    Upgrade Tekton Pipelines git resolver to a version that resolves this vulnerability.

    Fixed in 1.3.3
  8. Upgrade

    Upgrade Tekton Pipelines git resolver to a version that resolves this vulnerability.

    Fixed in 1.6.1
  9. Upgrade

    Upgrade Tekton Pipelines git resolver to a version that resolves this vulnerability.

    Fixed in 1.9.2
  10. Upgrade

    Upgrade Tekton Pipelines git resolver to a version that resolves this vulnerability.

    Fixed in 1.10.2
  11. Compensating control

    Reduce impact by scoping the `tekton-pipelines-resolvers` ServiceAccount RBAC permissions: use a custom `ClusterRole` with more restrictive rules so it does not have `get`, `list`, and `watch` permissions on `secrets` cluster-wide.

  12. Compensating control

    Restrict which users can create `TaskRuns`, `PipelineRuns`, or `ResolutionRequests` that use the git resolver, since there is no workaround other than limiting those permissions.

Event History

Mar 18, 2026
Advisory Published
via GitHub·08:20 PM
Data Sourced
via GitHub·08:20 PM
DescriptionSeverityWeaknessAffected Software
Mar 23, 2026
CVE Published
via MITRE·11:55 PM
Data Sourced
via MITRE·11:55 PM
DescriptionSeverityWeakness
Mar 24, 2026
Data Sourced
via Red Hat·12:02 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·12:16 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-33211?

The severity of CVE-2026-33211 is considered high due to the potential for attackers to read arbitrary files from the resolver pod's filesystem.

2

How do I fix CVE-2026-33211?

To fix CVE-2026-33211, update the Tekton Pipelines package to version 1.10.3 or later, or to a secure version as specified in the advisory.

3

What is the root cause of CVE-2026-33211?

CVE-2026-33211 is caused by a path traversal vulnerability in the git resolver's pathInRepo parameter.

4

Who is affected by CVE-2026-33211?

Tenants with permission to create ResolutionRequests in Tekton Pipelines are affected by CVE-2026-33211.

5

What types of files can be accessed due to CVE-2026-33211?

CVE-2026-33211 allows access to arbitrary files on the resolver pod's filesystem, which could include sensitive information.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203