CVE-2026-40938
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedTekton 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceThe Tekton Pipelines git resolver passes the revision parameter directly to git fetch without validating it doesn't start with a dash character. Since git parses flags from positional arguments, attackers can inject arbitrary flags like --upload-pack=<binary>. Combined with validateRepoURL allowing URLs starting with / (local paths), tenants with ResolutionRequest access can execute arbitrary binaries on the resolver pod. The resolver ServiceAccount has cluster-wide secrets access, enabling full secret exfiltration.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data>= 1.0.0, < 1.11.0CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- High
- Privileges
- Low
- User interaction
- None
- Scope
- Changed
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check Tekton Pipelines versionRun 'kubectl get deployment -n tekton-pipelines tekton-pipelines-controller -o jsonpath="{.spec.template.spec.containers[0].image}"' or check the 'tekton-pipelines' namespace for installed version via 'kubectl get pods -n tekton-pipelines -l app=tekton-pipelines-controller' and inspect labels/annotationsAffected if Installed version is >= 1.0.0 and < 1.11.0
-
Verify git resolver is deployedRun 'kubectl get deployment -n tekton-pipelines -l app=tekton-pipelines-resolvers' and check for git-resolver pod existence, or inspect configmap 'tekton-git-resolver' in tekton-pipelines namespaceAffected if The git resolver component is present in the cluster
-
Check if ResolutionRequest resources exist with git resolverRun 'kubectl get resolutionrequests -A' and review any ResolutionRequest resources specifying 'git' resolver type in their spec, particularly those with revision parametersAffected if There are ResolutionRequest resources using the git resolver with a user-controlled revision parameter
-
Inspect tekton-pipelines-resolvers ServiceAccount permissionsRun 'kubectl get serviceaccount tekton-pipelines-resolvers -n tekton-pipelines -o yaml' and check associated ClusterRoleBindings or RoleBindings for permissions granted to this SAAffected if The resolver ServiceAccount has broad permissions (e.g., secrets access, pod exec, or cluster-wide resources) that could be exploited for exfiltration
-
Check git resolver configuration for revision validationInspect the git resolver ConfigMap or deployment environment variables for any input validation settings on the 'revision' parameter, or review tekton-pipelines git resolver admission configurationAffected if No validation is enforced preventing revision parameters starting with '-' or allowing filesystem paths in repo URL validation
The environment is affected if Tekton Pipelines version is between 1.0.0 and 1.11.0, the git resolver is enabled, and ResolutionRequest resources with git resolver are in use with untrusted revision inputs.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped1.11.0
Upgrade Tekton Pipelines to version 1.0.2, 1.3.4, 1.6.2, 1.9.3, or 1.11.1 or later. Alternatively, restrict who can submit ResolutionRequest objects until patching is possible.
Upgrade to Tekton Pipelines version 1.11.1 or later (minimum fixed release)
- Identify the current Tekton Pipelines version running in the cluster using: kubectl get tektonconfig config -o jsonpath='{.spec.pipeline.version}'
- Backup current Tekton Pipelines configuration: kubectl get TektonPipeline,Task,Pipeline,TaskRun,PipelineRun -o yaml > backup.yaml
- Upgrade Tekton Pipelines to version 1.11.1 or later using the official release manifests: kubectl apply -f https://storage.googleapis.com/tekton-releases/pipeline/previous/v1.11.1/release.yaml
- Verify the upgrade completed successfully: kubectl get pods -n tekton-pipelines -l app=tekton-pipelines-controller
- Ensure the git resolver pods have been restarted with the patched image: kubectl rollout restart deployment/tekton-pipelines-git-resolver -n tekton-pipelines
- Verify the git resolver pods are running with the patched version: kubectl get deployment tekton-pipelines-git-resolver -n tekton-pipelines -o jsonpath='{.spec.template.spec.containers[0].image}'
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation6.0 h
- Testing4.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,224.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-40938 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-40938 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data