CVE-2026-25542

Tekton Pipelines: VerificationPolicy regex pattern bypass via substring matching

Published Apr 21, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
Tekton Pipelines project provides k8s-style resources for declaring CI/CD-style pipelines. Starting in version 0.43.0 and prior to versions 1.0.2, 1.3.4, 1.6.2, 1.9.3, and 1.11.1, trusted resources verification policies match a resource source string (refSource.URI) against spec.resources[].pattern using regexp.MatchString. In Go, regexp.MatchString reports a match if the pattern matches anywhere in the string, so common unanchored patterns (including examples in tekton documentation) can be bypassed by attacker-controlled source strings that contain the trusted pattern as a substring. This can cause an unintended policy match and change which verification mode/keys apply. Versions 1.0.2, 1.3.4, 1.6.2, 1.9.3, and 1.11.1 fix the issue.

Analysis

AI-generated

Technical impact

Tekton Pipelines relies on its VerificationPolicy to validate resource source strings against patterns defined in spec.resources[].pattern using Go's regexp.MatchString. Because regexp.MatchString returns true when a pattern appears anywhere in the string, unanchored patterns can be bypassed by attacker‑controlled source strings that contain the trusted pattern as a substring. This flaw allows an unintended policy match, causing the pipeline to be verified under an incorrect set of keys or verification modes. The result is that an attacker may gain unauthorized control over the CI/CD workflow by having a resource accepted with the wrong credentials.

Affected Systems

This vulnerability affects Tekton Pipelines versions from 0.43.0 up to, but not including, the fixed releases 1.0.2, 1.3.4, 1.6.2, 1.9.3, and 1.11.1. Any cluster running a version older than those fixes and relying on VerificationPolicies for resource validation is impacted.

Risk and Exploitability

The CVSS score of 6.5 indicates medium severity. The EPSS score of < 1% indicates a very low exploitation probability, suggesting that the likelihood of attack is low. The vulnerability is not listed in the CISA KEV catalog. The likely attack vector involves an attacker who can supply or influence pipeline resource definitions, inserting a source string that contains the trusted pattern as a substring. By doing so, the attacker can cause an unintended policy match and alter the verification mode or keys applied to the pipeline. The exploitation requires the ability to modify or author a resource within the cluster, which may be achievable through privileged user or compromised CI tooling.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Tekton Pipelines to version 1.12.0 or later, where the pattern matching logic has been corrected to enforce exact matches or proper anchoring.
  • If an upgrade is not immediately possible, modify existing VerificationPolicy patterns to include explicit start (^) and end ($) anchors so that only exact matches will succeed.
  • Audit all current VerificationPolicy configurations and verify that the applied keys and verification modes match the intended specifications, and monitor for any unexpected changes to policy application.

Generated by OpenCVE AI on May 22, 2026 at 17:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-rmx9-2pp3-xhcr Tekton Pipelines has VerificationPolicy regex pattern bypass via substring matching
History
Type Values Removed Values Added
Description Tekton Pipelines project provides k8s-style resources for declaring CI/CD-style pipelines. From 0.43.0 to 1.11.0, trusted resources verification policies match a resource source string (refSource.URI) against spec.resources[].pattern using regexp.MatchString. In Go, regexp.MatchString reports a match if the pattern matches anywhere in the string, so common unanchored patterns (including examples in tekton documentation) can be bypassed by attacker-controlled source strings that contain the trusted pattern as a substring. This can cause an unintended policy match and change which verification mode/keys apply. Tekton Pipelines project provides k8s-style resources for declaring CI/CD-style pipelines. Starting in version 0.43.0 and prior to versions 1.0.2, 1.3.4, 1.6.2, 1.9.3, and 1.11.1, trusted resources verification policies match a resource source string (refSource.URI) against spec.resources[].pattern using regexp.MatchString. In Go, regexp.MatchString reports a match if the pattern matches anywhere in the string, so common unanchored patterns (including examples in tekton documentation) can be bypassed by attacker-controlled source strings that contain the trusted pattern as a substring. This can cause an unintended policy match and change which verification mode/keys apply. Versions 1.0.2, 1.3.4, 1.6.2, 1.9.3, and 1.11.1 fix the issue.
Type Values Removed Values Added
First Time appeared Linuxfoundation
Linuxfoundation tekton Pipelines
CPEs cpe:2.3:a:linuxfoundation:tekton_pipelines:*:*:*:*:*:go:*:*
Vendors & Products Linuxfoundation
Linuxfoundation tekton Pipelines
Type Values Removed Values Added
First Time appeared Tektoncd
Tektoncd pipeline
Vendors & Products Tektoncd
Tektoncd pipeline
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Tekton Pipelines project provides k8s-style resources for declaring CI/CD-style pipelines. From 0.43.0 to 1.11.0, trusted resources verification policies match a resource source string (refSource.URI) against spec.resources[].pattern using regexp.MatchString. In Go, regexp.MatchString reports a match if the pattern matches anywhere in the string, so common unanchored patterns (including examples in tekton documentation) can be bypassed by attacker-controlled source strings that contain the trusted pattern as a substring. This can cause an unintended policy match and change which verification mode/keys apply.
Title Tekton Pipelines: VerificationPolicy regex pattern bypass via substring matching
Weaknesses CWE-185
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N'}

Weaknesses
  • CWE-185

    Incorrect Regular Expression

  • CWE-625

    Permissive Regular Expression

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 22, 2026, 4:06 PM
Reserved
Feb 2, 2026, 7:59 PM
Status
Modified
Published
Apr 21, 2026, 5:16 PM
Modified
Oct 26, 2026, 10:10 PM
Severity
Moderate
Public date
Apr 21, 2026, 4:05 PM