cve.bz

CVE-2026-40938 linuxfoundation tekton pipelines: Argument Injection

8.5 highExploit referenceEPSS 0.8%Fix available

High (8.5) in linuxfoundation tekton pipelines. EPSS 0.8% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/tektoncd/pipeline 1.0.2, 1.11.1, 1.3.4.

On this page
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.

Severity

CVSS 3.1

8.5 high
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
EPSS
0.8% (unchanged from 0.8% a week ago; 0.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 58th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2026-04-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-88 Improper Neutralization of Argument Delimiters in a Command (Argument Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-40938 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-40938?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-40938?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-40938 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
linuxfoundation:tekton_pipelinesfrom 1.0.0 before 1.11.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-94jr-7pqp-xhcqGogithub.com/tektoncd/pipeline>=1.10.0 <1.11.11.11.1
GHSA-94jr-7pqp-xhcqGogithub.com/tektoncd/pipeline>=1.7.0 <1.9.31.9.3
GHSA-94jr-7pqp-xhcqGogithub.com/tektoncd/pipeline>=1.4.0 <1.6.21.6.2
GHSA-94jr-7pqp-xhcqGogithub.com/tektoncd/pipeline>=1.2.0 <1.3.41.3.4
GHSA-94jr-7pqp-xhcqGogithub.com/tektoncd/pipeline>=1.0.0 <1.0.21.0.2
GO-2026-5272Gogithub.com/tektoncd/pipeline>=1.0.0 <1.0.2
>=1.1.0 <1.3.4
>=1.4.0 <1.6.2
>=1.7.0 <1.9.3
>=1.10.0 <1.11.1
1.0.2, 1.3.4, 1.6.2, 1.9.3, 1.11.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
openSUSELeap 16.0govulncheck-vulndb0.0.20260723T184607-160000.1.1openSUSE-SU-2026:21483-1

From the distributions' data via OSV.dev: SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This Important flaw in Tekton Pipelines allows an authenticated user to achieve arbitrary code execution on the resolver pod by injecting malicious commands into the git resolver's revision parameter. This vulnerability happens because the `revision` parameter is passed as a positional argument to the `git fetch` command without any previous validation whether the parameter's value doesn't start with `-` character. Combining this lack of validation with the fact the function which validates the repository URL explicitly allows a repository URL to being with `/`, translating to a local filesystem. An attacker with enough privileges to perform an operation which trigger resolvers to use the `ResolutionRequest` function can

chain both behaviors to trick Tekton Pipelines to load and execute an arbitrary binary on the resolver pod.

Exploring this vulnerability may be considered of a high complexity as an attacker needs to either know an existing valid git repository located at a predicable path already in the resolver pod or a default URL configuration pointing to a local filesystem's path.

A successful exploitation of the flaw can lead to the exfiltration of all cluster-wide secrets, posing a significant risk to the integrity and confidentiality of the OpenShift environment. Additionally, depending on the data included in the `kubeconfig` files, an attacker may achieve privilege escalation or perform lateral movements within the targeted cluster.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat OpenShift Builds 1.7.3openshift-builds/openshift-builds-controller-rhel9:1780373846Fixed 2026-06-08RHSA-2026:24359
Red Hat OpenShift Builds 1.7.3openshift-builds/openshift-builds-git-cloner-rhel9:1780374151Fixed 2026-06-08RHSA-2026:24359
Red Hat OpenShift Builds 1.7.3openshift-builds/openshift-builds-image-bundler-rhel9:1780373867Fixed 2026-06-08RHSA-2026:24359
Red Hat OpenShift Builds 1.7.3openshift-builds/openshift-builds-image-processing-rhel9:1780373835Fixed 2026-06-08RHSA-2026:24359
Red Hat OpenShift Builds 1.7.3openshift-builds/openshift-builds-rhel9-operator:1780480839Fixed 2026-06-08RHSA-2026:24359
Red Hat OpenShift Builds 1.7.3openshift-builds/openshift-builds-waiters-rhel9:1780374228Fixed 2026-06-08RHSA-2026:24359
Red Hat OpenShift Builds 1.7.3openshift-builds/openshift-builds-webhook-rhel9:1780374084Fixed 2026-06-08RHSA-2026:24359
Red Hat OpenShift Builds 1.8.3openshift-builds/openshift-builds-controller-rhel9:1778683229Fixed 2026-05-14RHSA-2026:17546
Red Hat OpenShift Builds 1.8.3openshift-builds/openshift-builds-git-cloner-rhel9:1778683134Fixed 2026-05-14RHSA-2026:17546
Red Hat OpenShift Builds 1.8.3openshift-builds/openshift-builds-image-bundler-rhel9:1778683436Fixed 2026-05-14RHSA-2026:17546
OpenShift Lightspeedopenshift-lightspeed/openshift-mcp-server-rhel9Not affected
OpenShift Pipelinesopenshift-pipelines/pipelines-chains-controller-rhel8Not affected
OpenShift Pipelinesopenshift-pipelines/pipelines-chains-controller-rhel9Affected
OpenShift Pipelinesopenshift-pipelines/pipelines-cli-tkn-rhel8Not affected
OpenShift Pipelinesopenshift-pipelines/pipelines-cli-tkn-rhel9Affected
OpenShift Pipelinesopenshift-pipelines/pipelines-controller-rhel8Not affected
OpenShift Pipelinesopenshift-pipelines/pipelines-controller-rhel9Affected
OpenShift Pipelinesopenshift-pipelines/pipelines-entrypoint-rhel8Not affected
OpenShift Pipelinesopenshift-pipelines/pipelines-entrypoint-rhel9Affected
OpenShift Pipelinesopenshift-pipelines/pipelines-events-rhel8Not affected
66 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-40938.

Attack patterns (CAPEC)

  • CAPEC-41 Using Meta-characters in E-mail Headers to Inject Malicious Payloads Likelihood: High · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-137 Parameter Injection Likelihood: Medium · Severity: Medium
  • CAPEC-174 Flash Parameter Injection Likelihood: High · Severity: Medium
  • CAPEC-460 HTTP Parameter Pollution (HPP) Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON