{"answers":{"affected":"11 open source packages ship an affected version, including github.com/tektoncd/pipeline. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-40938 exists.","fix":"Upgrade github.com/tektoncd/pipeline to a fixed version for your release line: 1.0.2, 1.3.4, 1.6.2 or 1.9.3.","what":"CVE-2026-40938 is a high-severity command injection vulnerability in tektoncd pipeline, published on 21 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-40938 and fix it if it is affected.\n\nWhat it is: CVE-2026-40938 is a high-severity command injection vulnerability in tektoncd pipeline, published on 21 Apr 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-40938 exists.\n\nAffected packages and fixed versions:\n- github.com/tektoncd/pipeline (Go): affected from 1.0.0; fixed in 1.0.2, 1.3.4, 1.6.2, 1.9.3, 1.11.1\n- github.com/tektoncd/pipeline (Go): affected from 1.0.0; fixed in 1.0.2\n- github.com/tektoncd/pipeline (Go): affected from 1.0.0; fixed in 1.0.2\n- github.com/tektoncd/pipeline (Go): affected from 1.10.0; fixed in 1.11.1\n- github.com/tektoncd/pipeline (Go): affected from 1.10.0; fixed in 1.11.1\n- github.com/tektoncd/pipeline (Go): affected from 1.2.0; fixed in 1.3.4\n- github.com/tektoncd/pipeline (Go): affected from 1.2.0; fixed in 1.3.4\n- github.com/tektoncd/pipeline (Go): affected from 1.4.0; fixed in 1.6.2\n- github.com/tektoncd/pipeline (Go): affected from 1.4.0; fixed in 1.6.2\n- github.com/tektoncd/pipeline (Go): affected from 1.7.0; fixed in 1.9.3\n- github.com/tektoncd/pipeline (Go): affected from 1.7.0; fixed in 1.9.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-40938/ (Markdown: https://insights.sbomify.com/CVE-2026-40938/index.md)","id":"CVE-2026-40938","markdown":"https://insights.sbomify.com/CVE-2026-40938/index.md","name":"CVE-2026-40938","record":{"aliases":["CLEANSTART-2026-KA98572","GHSA-94jr-7pqp-xhcq","GO-2026-5272"],"analysis":{"component_type":"cloud_service","fix_type":"upgrade","impacts":["code_execution","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Tekton Pipelines","requires_auth":"low_privilege","summary":"Attackers can inject git flags via the revision parameter to execute arbitrary code on resolver pods, leading to cluster-wide secret exfiltration.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"tekton_pipelines","vendor":"linuxfoundation"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"}],"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=\u003cbinary\u003e. 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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Tekton Pipelines: Git Resolver Unsanitized Revision Parameter Enables git Argument Injection Leading to RCE","id":"CVE-2026-40938","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":11,"n_references":2,"next":{"headline":"DSF: Missing Session Timeout for OIDC Sessions","id":"CVE-2026-40939"},"packages":[{"ecosystem":"Go","fixed":["1.0.2","1.3.4","1.6.2","1.9.3","1.11.1"],"introduced":["1.0.0","1.1.0","1.4.0","1.7.0","1.10.0"],"last_affected":[],"package":"github.com/tektoncd/pipeline","purl":"pkg:golang/github.com/tektoncd/pipeline","source":"GO-2026-5272"},{"ecosystem":"Go","fixed":["1.0.2"],"introduced":["1.0.0"],"last_affected":[],"package":"github.com/tektoncd/pipeline","purl":null,"source":"GHSA-94jr-7pqp-xhcq"},{"ecosystem":"Go","fixed":["1.0.2"],"introduced":["1.0.0"],"last_affected":[],"package":"github.com/tektoncd/pipeline","purl":"pkg:golang/github.com/tektoncd/pipeline","source":"GHSA-94jr-7pqp-xhcq"},{"ecosystem":"Go","fixed":["1.11.1"],"introduced":["1.10.0"],"last_affected":[],"package":"github.com/tektoncd/pipeline","purl":null,"source":"GHSA-94jr-7pqp-xhcq"},{"ecosystem":"Go","fixed":["1.11.1"],"introduced":["1.10.0"],"last_affected":[],"package":"github.com/tektoncd/pipeline","purl":"pkg:golang/github.com/tektoncd/pipeline","source":"GHSA-94jr-7pqp-xhcq"},{"ecosystem":"Go","fixed":["1.3.4"],"introduced":["1.2.0"],"last_affected":[],"package":"github.com/tektoncd/pipeline","purl":null,"source":"GHSA-94jr-7pqp-xhcq"},{"ecosystem":"Go","fixed":["1.3.4"],"introduced":["1.2.0"],"last_affected":[],"package":"github.com/tektoncd/pipeline","purl":"pkg:golang/github.com/tektoncd/pipeline","source":"GHSA-94jr-7pqp-xhcq"},{"ecosystem":"Go","fixed":["1.6.2"],"introduced":["1.4.0"],"last_affected":[],"package":"github.com/tektoncd/pipeline","purl":null,"source":"GHSA-94jr-7pqp-xhcq"},{"ecosystem":"Go","fixed":["1.6.2"],"introduced":["1.4.0"],"last_affected":[],"package":"github.com/tektoncd/pipeline","purl":"pkg:golang/github.com/tektoncd/pipeline","source":"GHSA-94jr-7pqp-xhcq"},{"ecosystem":"Go","fixed":["1.9.3"],"introduced":["1.7.0"],"last_affected":[],"package":"github.com/tektoncd/pipeline","purl":null,"source":"GHSA-94jr-7pqp-xhcq"},{"ecosystem":"Go","fixed":["1.9.3"],"introduced":["1.7.0"],"last_affected":[],"package":"github.com/tektoncd/pipeline","purl":"pkg:golang/github.com/tektoncd/pipeline","source":"GHSA-94jr-7pqp-xhcq"}],"prev":{"headline":"RustFS: Missing admin authorization on notification target endpoints allows unauthenticated configuration of event webhooks","id":"CVE-2026-40937"},"products":["pipeline"],"published":"2026-04-21","related":[{"cvss_score":9.6,"headline":"Tekton Pipelines git resolver has path traversal that allows reading arbitrary files from the resolver pod","id":"CVE-2026-33211","kev_date_added":null,"published":"2026-03-23"},{"cvss_score":7.7,"headline":"Tekton Pipelines: Git resolver API mode leaks system-configured API token to user-controlled serverURL","id":"CVE-2026-40161","kev_date_added":null,"published":"2026-04-21"},{"cvss_score":6.5,"headline":"Tekton Pipelines: VerificationPolicy regex pattern bypass via substring matching","id":"CVE-2026-25542","kev_date_added":null,"published":"2026-04-21"},{"cvss_score":6.5,"headline":"Tekton Pipelines: HTTP Resolver Unbounded Response Body Read Enables Denial of Service via Memory Exhaustion","id":"CVE-2026-40924","kev_date_added":null,"published":"2026-04-21"},{"cvss_score":6.5,"headline":"Tekton Pipelines: Controller can panic when setting long resolver names in TaskRun/PipelineRun","id":"CVE-2026-33022","kev_date_added":null,"published":"2026-03-20"},{"cvss_score":5.4,"headline":"Tekton Pipelines: VolumeMount path restriction bypass via missing filepath.Clean in /tekton/ check","id":"CVE-2026-40923","kev_date_added":null,"published":"2026-04-21"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-09-07","vendors":["tektoncd"]},"summary":"Attackers can inject git flags via the revision parameter to execute arbitrary code on resolver pods, leading to cluster-wide secret exfiltration.","url":"https://insights.sbomify.com/CVE-2026-40938/"}