{
  "id": "CVE-2026-40938",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-40938",
  "published_at": "2026-04-21T20:45:24.658Z",
  "title": "Tekton Pipelines: Git Resolver Unsanitized Revision Parameter Enables git Argument Injection Leading to RCE",
  "vendor": "tektoncd",
  "product": "pipeline",
  "cvss": {
    "score": 8.5,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-88",
  "cpes": [
    "cpe:2.3:a:linuxfoundation:tekton_pipelines:*:*:*:*:*:go:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.5,
    "nvd": 8.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "tektoncd",
        "product": "pipeline",
        "ranges": [
          "\u003e= 1.0.0, \u003c 1.0.2",
          "\u003e= 1.2.0, \u003c 1.3.4",
          "\u003e= 1.4.0, \u003c 1.6.2",
          "\u003e= 1.7.0, \u003c 1.9.3",
          "\u003e= 1.10.0, \u003c 1.11.1"
        ],
        "fixed_in": [
          "1.0.2",
          "1.3.4",
          "1.6.2",
          "1.9.3",
          "1.11.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade pipeline to 1.0.2 or 1.3.4 or 1.6.2 or 1.9.3 or 1.11.1 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/tektoncd/pipeline/security/advisories/GHSA-94jr-7pqp-xhcq"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/tektoncd/pipeline/releases/tag/v1.11.1"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
