Skip to content

[release-0.95] CVE-2026-33186: Bump grpc#2718

Open
sbiradar10 wants to merge 1 commit into
kubevirt:release-0.95from
sbiradar10:cnv-4.17
Open

[release-0.95] CVE-2026-33186: Bump grpc#2718
sbiradar10 wants to merge 1 commit into
kubevirt:release-0.95from
sbiradar10:cnv-4.17

Conversation

@sbiradar10
Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

Bump grpc to 1.79.3 leads to go lang bump so i used grpc folk to avoid this:
Used below command for replace:

`go mod edit -replace google.golang.org/grpc=github.com/openshift-sustaining/grpc-go@v1.75.1-sec.1

Release note:

Bump google.golang.org/grpc to v1.75.1-sec.1 

Signed-off-by: Shiwani Biradar <sbiradar@redhat.com>
@kubevirt-bot kubevirt-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. labels May 6, 2026
@kubevirt-bot kubevirt-bot requested a review from oshoval May 6, 2026 09:09
@kubevirt-bot
Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign oshoval for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubevirt-bot kubevirt-bot requested a review from RamLavi May 6, 2026 09:09
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 6, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
5 Security Hotspots
C Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Copy link
Copy Markdown

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

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 project to Go 1.22.0 and performs a comprehensive upgrade of core dependencies, including OpenTelemetry, logr, and testify, while adding an auto-instrumentable SDK. Notable changes include UUID v6/v7 support, improved slog interoperability for logr, and the promotion of the OpenTelemetry Logs API to beta. Feedback highlights a version discrepancy for the grpc-go replacement directive and a regression in the MemMapFs.RemoveAll implementation that prevents the correct removal of the root directory.

Comment thread go.mod

replace golang.org/x/crypto => github.com/openshift/golang-crypto v0.33.1-0.20250310193910-9003f682e581

replace google.golang.org/grpc => github.com/openshift-sustaining/grpc-go v1.71.3-sec.1
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

There is a discrepancy between the version of grpc-go specified in the replace directive (v1.71.3-sec.1) and the versions mentioned in the pull request description (1.79.3 and v1.75.1-sec.1). Please verify and use the correct version intended to address the CVE.


for p := range m.getData() {
if strings.HasPrefix(p, path) {
if p == path || strings.HasPrefix(p, path+FilePathSeparator) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The updated logic for RemoveAll using path + FilePathSeparator will fail to match subdirectories when path is the root directory (e.g., /), as it would check for a prefix of //. This is a regression that prevents RemoveAll("/") from working correctly in the memory filesystem.

Suggested change
if p == path || strings.HasPrefix(p, path+FilePathSeparator) {
if p == path || strings.HasPrefix(p, strings.TrimSuffix(path, FilePathSeparator)+FilePathSeparator) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dco-signoff: yes Indicates the PR's author has DCO signed all their commits. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XXL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants