CVE-2026-40938: Tekton Pipeline: Git Resolver Unsanitized Revision Parameter Enables git Argument Injection Leading to RCE
(updated )
The git resolver’s revision parameter is passed directly as a positional argument to git fetch without any validation that it does not begin with a - character. Because git parses flags from mixed positional arguments, an attacker can inject arbitrary git fetch flags such as --upload-pack=<binary>. Combined with the validateRepoURL function explicitly permitting URLs that begin with / (local filesystem paths), a tenant who can submit ResolutionRequest objects can chain these two behaviors to execute an arbitrary binary on the resolver pod. The tekton-pipelines-resolvers ServiceAccount holds cluster-wide get/list/watch on all Secrets, so code execution on the resolver pod enables full cluster-wide secret exfiltration.
References
- access.redhat.com/errata/RHSA-2026:17546
- access.redhat.com/errata/RHSA-2026:24359
- access.redhat.com/errata/RHSA-2026:24484
- access.redhat.com/errata/RHSA-2026:26519
- access.redhat.com/errata/RHSA-2026:26538
- access.redhat.com/security/cve/CVE-2026-40938
- bugzilla.redhat.com/show_bug.cgi?id=2460292
- github.com/advisories/GHSA-94jr-7pqp-xhcq
- github.com/tektoncd/pipeline/releases/tag/v1.11.1
- github.com/tektoncd/pipeline/security/advisories/GHSA-94jr-7pqp-xhcq
- nvd.nist.gov/vuln/detail/CVE-2026-40938
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40938.json
Code Behaviors & Features
Detect and mitigate CVE-2026-40938 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →