CVE-2026-40938
Public on
Last Modified:
Description
A flaw was found in Tekton Pipelines, a system for declaring continuous integration/continuous delivery (CI/CD) pipelines. An authenticated user, able to submit ResolutionRequest objects, can exploit a vulnerability by injecting malicious commands into the git resolver's revision parameter. This allows for the execution of unauthorized programs on the resolver pod. Successful exploitation can lead to the exfiltration of all cluster-wide secrets, resulting in significant information disclosure.
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.
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.
Additional Information
- This content is not included.Bugzilla 2460292: github.com/tektoncd/pipeline: Tekton Pipelines: Arbitrary code execution and secret exfiltration via malicious git commands
- Content from cwe.mitre.org is not included.CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
- FAQ: Frequently asked questions about CVE-2026-40938
- Offline Security Data data is available for integration with other systems. See Offline Security Data API to get started.
External References
Content from www.cve.org is not included.https://www.cve.org/CVERecord?id=CVE-2026-40938
Content from nvd.nist.gov is not included.https://nvd.nist.gov/vuln/detail/CVE-2026-40938
Content from github.com is not included.https://github.com/tektoncd/pipeline/releases/tag/v1.11.1
Affected Packages and Issued Red Hat Security Errata
| Products / Services | Components | State | Errata |
|---|---|---|---|
| OpenShift Lightspeed | openshift-lightspeed/openshift-mcp-server-rhel9 | Not affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-chains-controller-rhel9 | Affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-cli-tkn-rhel9 | Affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-controller-rhel9 | Affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-entrypoint-rhel9 | Affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-events-rhel9 | Affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-git-init-rhel9 | Affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-hub-api-rhel9 | Affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-manual-approval-gate-controller-rhel9 | Affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-manual-approval-gate-webhook-rhel9 | Affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-nop-rhel9 | Affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-opc-rhel9 | Affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-operator-proxy-rhel9 | Affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-operator-webhook-rhel9 | Affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-pipelines-as-code-cli-rhel9 | Affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-pipelines-as-code-controller-rhel9 | Affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-pipelines-as-code-watcher-rhel9 | Affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-pruner-controller-rhel9 | Affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-resolvers-rhel9 | Affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-results-api-rhel9 | Affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-results-watcher-rhel9 | Affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-sidecarlogresults-rhel9 | Affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-triggers-controller-rhel9 | Affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-triggers-core-interceptors-rhel9 | Affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-triggers-eventlistenersink-rhel9 | Affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-triggers-webhook-rhel9 | Affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-webhook-rhel9 | Affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-workingdirinit-rhel9 | Affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-chains-controller-rhel8 | Not affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-cli-tkn-rhel8 | Not affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-controller-rhel8 | Not affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-entrypoint-rhel8 | Not affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-events-rhel8 | Not affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-git-init-rhel8 | Not affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-hub-api-rhel8 | Not affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-manual-approval-gate-controller-rhel8 | Not affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-manual-approval-gate-webhook-rhel8 | Not affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-nop-rhel8 | Not affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-operator-proxy-rhel8 | Not affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-operator-webhook-rhel8 | Not affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-pipelines-as-code-cli-rhel8 | Not affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-pipelines-as-code-controller-rhel8 | Not affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-pipelines-as-code-watcher-rhel8 | Not affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-resolvers-rhel8 | Not affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-results-api-rhel8 | Not affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-results-watcher-rhel8 | Not affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-rhel8-operator | Not affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-sidecarlogresults-rhel8 | Not affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-triggers-controller-rhel8 | Not affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-triggers-core-interceptors-rhel8 | Not affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-triggers-eventlistenersink-rhel8 | Not affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-triggers-webhook-rhel8 | Not affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-webhook-rhel8 | Not affected | |
| OpenShift Pipelines | openshift-pipelines/pipelines-workingdirinit-rhel8 | Not affected | |
| OpenShift Serverless | openshift-serverless-1/kn-client-kn-rhel9 | Not affected | |
| OpenShift Serverless | openshift-serverless-1/kn-plugin-func-func-util-rhel9 | Not affected | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-ml-pipelines-api-server-v2-rhel8 | Not affected | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-ml-pipelines-driver-rhel8 | Not affected | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-ml-pipelines-launcher-rhel8 | Not affected | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-ml-pipelines-persistenceagent-v2-rhel8 | Not affected | |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-ml-pipelines-scheduledworkflow-v2-rhel8 | Not affected | |
| Red Hat OpenShift Builds 1.7.3 | openshift-builds/openshift-builds-controller-rhel9 | Fixed | RHSA-2026:24359 |
| Red Hat OpenShift Builds 1.7.3 | openshift-builds/openshift-builds-git-cloner-rhel9 | Fixed | RHSA-2026:24359 |
| Red Hat OpenShift Builds 1.7.3 | openshift-builds/openshift-builds-image-bundler-rhel9 | Fixed | RHSA-2026:24359 |
| Red Hat OpenShift Builds 1.7.3 | openshift-builds/openshift-builds-image-processing-rhel9 | Fixed | RHSA-2026:24359 |
| Red Hat OpenShift Builds 1.7.3 | openshift-builds/openshift-builds-rhel9-operator | Fixed | RHSA-2026:24359 |
| Red Hat OpenShift Builds 1.7.3 | openshift-builds/openshift-builds-waiters-rhel9 | Fixed | RHSA-2026:24359 |
| Red Hat OpenShift Builds 1.7.3 | openshift-builds/openshift-builds-webhook-rhel9 | Fixed | RHSA-2026:24359 |
| Red Hat OpenShift Builds 1.8.0 | openshift-builds/openshift-builds-controller-rhel9 | Fixed | RHSA-2026:17546 |
| Red Hat OpenShift Builds 1.8.0 | openshift-builds/openshift-builds-git-cloner-rhel9 | Fixed | RHSA-2026:17546 |
| Red Hat OpenShift Builds 1.8.0 | openshift-builds/openshift-builds-image-bundler-rhel9 | Fixed | RHSA-2026:17546 |
| Red Hat OpenShift Builds 1.8.0 | openshift-builds/openshift-builds-image-processing-rhel9 | Fixed | RHSA-2026:17546 |
| Red Hat OpenShift Builds 1.8.0 | openshift-builds/openshift-builds-waiters-rhel9 | Fixed | RHSA-2026:17546 |
| Red Hat OpenShift Builds 1.8.0 | openshift-builds/openshift-builds-webhook-rhel9 | Fixed | RHSA-2026:17546 |
| Red Hat OpenShift Pipelines 1.21 | serve-tkn-cli-1-21-serve-tkn-cli | Fixed | RHSA-2026:24484 |
| Red Hat OpenShift Pipelines 1.21 | openshift-pipelines/pipelines-rhel9-operator | Fixed | RHSA-2026:26519 |
| Red Hat OpenShift Pipelines 1.21 | openshift-pipelines/pipelines-operator-bundle | Fixed | RHSA-2026:26538 |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/kubevirt-ssp-operator-rhel9 | Not affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/kubevirt-tekton-tasks-create-datavolume-rhel9 | Not affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/kubevirt-tekton-tasks-disk-virt-customize-rhel9 | Not affected | |
| Red Hat OpenShift Virtualization 4 | container-native-virtualization/kubevirt-template-validator-rhel9 | Not affected | |
| Red Hat Trusted Artifact Signer | rhtas/ec-rhel9 | Not affected |
Common Vulnerability Scoring System (CVSS) Score Details
Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authorities (CNA) source for its products and services (see Red Hat classifications ).
| CVSS v3 Score Breakdown | Red Hat | NVD |
|---|---|---|
| CVSS v3 Base Score | 8.5 | 8.5 |
| Attack Vector | Network | Network |
| Attack Complexity | High | High |
| Privileges Required | Low | Low |
| User Interaction | None | None |
| Scope | Changed | Changed |
| Confidentiality Impact | High | High |
| Integrity Impact | High | High |
| Availability Impact | High | High |
CVSS v3 Vector
Red Hat CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
NVD CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Frequently Asked Questions
Why is Red Hat's CVSS v3 score or Impact different from other vendors?
For more information, see https://access.redhat.com/solutions/762393.
My product is listed as "Under investigation" or "Affected", when will Red Hat release a fix for this vulnerability?
- "Under investigation" doesn't necessarily mean that the product is affected by this vulnerability. It only means that our Analysis Team is still working on determining whether the product is affected and how it is affected.
- "Affected" means that our Analysis Team has determined that this product is affected by this vulnerability and might release a fix to address this in the near future.
What can I do if my product is listed as "Will not fix"?
Available options depend mostly on the Impact of the vulnerability and the current Life Cycle phase of your product. Overall, you have the following options:
- Upgrade to a supported product version that includes a fix for this vulnerability (recommended).
- Apply a mitigation (if one exists).
- Open a This content is not included.support case to request a prioritization of releasing a fix for this vulnerability.
What can I do if my product is listed as "Fix deferred"?
Available options depend mostly on the Impact of the vulnerability and the current Life Cycle phase of your product. Overall, you have the following options:
- Apply a mitigation (if one exists).
- Open a This content is not included.support case to request a prioritization of releasing a fix for this vulnerability.
- Red Hat Engineering focuses on addressing high-priority issues based on their complexity or limited lifecycle support. Therefore, lower-priority issues will not receive immediate fixes.
What is a mitigation?
I have a Red Hat product but it is not in the above list, is it affected?
Why is my security scanner reporting my product as vulnerable to this vulnerability even though my product version is fixed or not affected?
My product is listed as "Out of Support Scope". What does this mean?
Not sure what something means? Check out our Security Glossary.