CVE-2026-40938
Description
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, 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. Versions 1.0.2, 1.3.4, 1.6.2, 1.9.3, and 1.11.1 fix the issue.
Weakness
- CWE-88: Improper Neutralization of Argument Delimiters in a Command
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2026-04-22 |
Timeline
- 2026-04-21Published by the CNA20:45 UTC
- 2026-04-21GitHub advisory published (GHSA-94jr-7pqp-xhcq)same day
- 2026-04-22CISA SSVC decision recorded1 day after publication
Exploit and advisory records
GitHub advisory GHSA-94jr-7pqp-xhcq, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Go github.com/tektoncd/pipeline | from 1.0.0 before 1.0.2 | 1.0.2 |
| Go github.com/tektoncd/pipeline | from 1.10.0 before 1.11.1 | 1.11.1 |
| Go github.com/tektoncd/pipeline | from 1.2.0 before 1.3.4 | 1.3.4 |
| Go github.com/tektoncd/pipeline | from 1.4.0 before 1.6.2 | 1.6.2 |
| Go github.com/tektoncd/pipeline | from 1.7.0 before 1.9.3 | 1.9.3 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| linuxfoundation tekton_pipelines | from 1.0.0 before 1.11.0fixed in 1.11.0 | 1.11.0 |
References
- https://github.com/tektoncd/pipeline/security/advisories/GHSA-94jr-7pqp-xhcq
- https://access.redhat.com/errata/RHSA-2026:17546
- https://access.redhat.com/errata/RHSA-2026:24359
- https://access.redhat.com/errata/RHSA-2026:24484
- https://access.redhat.com/errata/RHSA-2026:26519
- https://access.redhat.com/errata/RHSA-2026:26538
- https://access.redhat.com/security/cve/CVE-2026-40938
- https://bugzilla.redhat.com/show_bug.cgi?id=2460292
- https://github.com/tektoncd/pipeline/releases/tag/v1.11.1
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40938.json
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-40938'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-40938'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-40938'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-40938'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).