CVSS 3.1
8.5 highCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:HHigh (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.
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:Hgithub.com/tektoncd/pipeline (Go): fixed in 1.11.1, 1.9.3, 1.6.2, 1.3.4, 1.0.2Explain 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.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| linuxfoundation:tekton_pipelines | from 1.0.0 before 1.11.0 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-94jr-7pqp-xhcq | Go | github.com/tektoncd/pipeline | >=1.10.0 <1.11.1 | 1.11.1 |
| GHSA-94jr-7pqp-xhcq | Go | github.com/tektoncd/pipeline | >=1.7.0 <1.9.3 | 1.9.3 |
| GHSA-94jr-7pqp-xhcq | Go | github.com/tektoncd/pipeline | >=1.4.0 <1.6.2 | 1.6.2 |
| GHSA-94jr-7pqp-xhcq | Go | github.com/tektoncd/pipeline | >=1.2.0 <1.3.4 | 1.3.4 |
| GHSA-94jr-7pqp-xhcq | Go | github.com/tektoncd/pipeline | >=1.0.0 <1.0.2 | 1.0.2 |
| GO-2026-5272 | Go | github.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 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| openSUSE | Leap 16.0 | govulncheck-vulndb | 0.0.20260723T184607-160000.1.1 | openSUSE-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 rates this Important.
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.
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.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat OpenShift Builds 1.7.3 | openshift-builds/openshift-builds-controller-rhel9:1780373846 | Fixed 2026-06-08 | RHSA-2026:24359 |
| Red Hat OpenShift Builds 1.7.3 | openshift-builds/openshift-builds-git-cloner-rhel9:1780374151 | Fixed 2026-06-08 | RHSA-2026:24359 |
| Red Hat OpenShift Builds 1.7.3 | openshift-builds/openshift-builds-image-bundler-rhel9:1780373867 | Fixed 2026-06-08 | RHSA-2026:24359 |
| Red Hat OpenShift Builds 1.7.3 | openshift-builds/openshift-builds-image-processing-rhel9:1780373835 | Fixed 2026-06-08 | RHSA-2026:24359 |
| Red Hat OpenShift Builds 1.7.3 | openshift-builds/openshift-builds-rhel9-operator:1780480839 | Fixed 2026-06-08 | RHSA-2026:24359 |
| Red Hat OpenShift Builds 1.7.3 | openshift-builds/openshift-builds-waiters-rhel9:1780374228 | Fixed 2026-06-08 | RHSA-2026:24359 |
| Red Hat OpenShift Builds 1.7.3 | openshift-builds/openshift-builds-webhook-rhel9:1780374084 | Fixed 2026-06-08 | RHSA-2026:24359 |
| Red Hat OpenShift Builds 1.8.3 | openshift-builds/openshift-builds-controller-rhel9:1778683229 | Fixed 2026-05-14 | RHSA-2026:17546 |
| Red Hat OpenShift Builds 1.8.3 | openshift-builds/openshift-builds-git-cloner-rhel9:1778683134 | Fixed 2026-05-14 | RHSA-2026:17546 |
| Red Hat OpenShift Builds 1.8.3 | openshift-builds/openshift-builds-image-bundler-rhel9:1778683436 | Fixed 2026-05-14 | RHSA-2026:17546 |
| OpenShift Lightspeed | openshift-lightspeed/openshift-mcp-server-rhel9 | Not affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-chains-controller-rhel8 | Not affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-chains-controller-rhel9 | Affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-cli-tkn-rhel8 | Not affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-cli-tkn-rhel9 | Affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-controller-rhel8 | Not affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-controller-rhel9 | Affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-entrypoint-rhel8 | Not affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-entrypoint-rhel9 | Affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-events-rhel8 | Not 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.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.