Skip to content

Security: Fix CVE-2026-33186 (google.golang.org/grpc)#2808

Draft
theakshaypant wants to merge 1 commit into
release-v0.27.xfrom
fix/cve-2026-33186-grpc-release-v0.27.x-attempt-1
Draft

Security: Fix CVE-2026-33186 (google.golang.org/grpc)#2808
theakshaypant wants to merge 1 commit into
release-v0.27.xfrom
fix/cve-2026-33186-grpc-release-v0.27.x-attempt-1

Conversation

@theakshaypant

Copy link
Copy Markdown
Member

Summary

This PR fixes CVE-2026-33186 by upgrading `google.golang.org/grpc` from v1.63.0 to v1.79.3.

CVE Details

  • CVE ID: CVE-2026-33186
  • GHSA: GHSA-p77j-4mvh-x3m3
  • Package: google.golang.org/grpc
  • Severity: Critical (CVSS 9.1)
  • Impact: Authorization bypass via missing leading slash in HTTP/2 :path pseudo-header. Requests with a malformed :path (no leading /) bypass RBAC deny rules while still being routed to the correct handler.
  • Vulnerable versions: < v1.79.3
  • Fixed version: v1.79.3
  • Jira Issues: SRVKP-11965

Changes

  • Upgraded google.golang.org/grpc v1.63.0 → v1.79.3
  • Updated vendor directory
  • Co-upgraded google.golang.org/protobuf, google.golang.org/genproto/googleapis/api, google.golang.org/genproto/googleapis/rpc, and golang.org/x/* packages as required by go mod tidy

⚠️ Go Version Bump Required

grpc v1.79.3 declares go 1.24.0 as its minimum Go version in its own go.mod. As a result, the go directive in this repo's go.mod has been bumped from 1.21 to 1.24.0. This is a necessary side-effect of applying the minimum-fixed version for a Critical CVSS 9.1 vulnerability.

Impact of Go 1.24.0 bump: The Go toolchain requirement increases but no API breaking changes are introduced. The build and all unit tests pass after this change.

Test Results

Status: ⚠️ Pre-existing build failure in pkg/webhook (unrelated to this change)

Build:go build ./... succeeded
Tests:go test ./pkg/... — pre-existing failure in pkg/webhook (non-constant format string in call to knative.dev/pkg/webhook.MakeErrorStatus) unrelated to this CVE fix
Post-fix scan:govulncheck — GO-2026-4762 (CVE-2026-33186) no longer detected

Breaking Changes

  • go directive bumped: go 1.21go 1.24.0 (required by grpc v1.79.3 transitive dependency)
  • No API breaking changes in grpc for the APIs used in this repository

Verification Checklist

  • CVE confirmed present before fix (GO-2026-4762 detected by govulncheck)
  • google.golang.org/grpc upgraded to v1.79.3
  • go mod vendor updated
  • go build ./... passes
  • Post-fix govulncheck confirms CVE-2026-33186 no longer detected
  • CI passes

Risk Assessment

Medium — grpc major version bump from v1.63 to v1.79 and Go directive bump to 1.24.0. The grpc upgrade spans multiple minor versions but the APIs used in this repo remain compatible. The Go version bump is required by the CVE fix dependency chain.


🤖 Generated by CVE Fixer Workflow

- Upgrade google.golang.org/grpc from v1.63.0 to v1.79.3
- Fixes critical (CVSS 9.1) authorization bypass via missing leading slash in :path
- grpc v1.79.3 requires go 1.24.0; go directive updated accordingly
- Also upgrades google.golang.org/protobuf, genproto, and golang.org/x/* as required
- Update vendor directory

Note: grpc v1.79.3 is the minimum version that fixes CVE-2026-33186. It requires
Go 1.24.0 minimum, which necessitates bumping the go directive in go.mod from 1.21.

Resolves: SRVKP-11965

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@linux-foundation-easycla

Copy link
Copy Markdown

CLA Missing ID

  • ❌ The email address for the commit (c99d639) is not linked to the GitHub account, preventing the EasyCLA check. Consult this Help Article and GitHub Help to resolve. (To view the commit's email address, add .patch at the end of this PR page's URL.) For further assistance with EasyCLA, please visit our EasyCLA portal and chat with our support bot.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the Go version to 1.24.0 in go.mod and upgrades multiple dependencies, including gRPC, protobuf, and various golang.org/x packages. Feedback highlights a version mismatch where the Dockerfile and Makefile still reference Go 1.21, which will lead to build failures.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread go.mod
module github.com/openshift-pipelines/pipelines-as-code

go 1.21
go 1.24.0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The Go version in go.mod has been updated to 1.24.0 to support the gRPC upgrade. However, the Dockerfile (line 1) still references golang:1.21 as the builder image, and the Makefile (line 3) defines GO_TOOLCHAIN ?= go1.21.13. This version mismatch will cause build failures during container image creation or when using the Makefile. Please update both Dockerfile and Makefile to use Go 1.24.0.

References
  1. The go directive in go.mod can include specific patch versions when automatically updated by go mod tidy to align with dependencies.

@theakshaypant theakshaypant marked this pull request as draft June 29, 2026 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant