Skip to content

kubevela/1.10.6-r0: cve remediation - #77700

Closed
octo-sts[bot] wants to merge 1 commit into
mainfrom
cve-kubevela-1.10.6-r0-5c62ddef27c1c0b0d2d1ccb7112f1a21
Closed

kubevela/1.10.6-r0: cve remediation#77700
octo-sts[bot] wants to merge 1 commit into
mainfrom
cve-kubevela-1.10.6-r0-5c62ddef27c1c0b0d2d1ccb7112f1a21

Conversation

@octo-sts

@octo-sts octo-sts Bot commented Jan 9, 2026

Copy link
Copy Markdown
Contributor

kubevela/1.10.6-r0: fix GHSA-5xqw-8hwv-wg92

Advisory data: https://github.com/wolfi-dev/advisories/blob/main/kubevela.advisories.yaml


"Breadcrumbs" for this automated service

Inspected git repositories: https://github.com/kubevela/kubevela@v1.10.6

@octo-sts octo-sts Bot added automated pr request-cve-remediation go/bump GHSA-5xqw-8hwv-wg92 p:kubevela P1 This label indicates our scanning found High, Medium or Low CVEs for these packages. labels Jan 9, 2026
@octo-sts

octo-sts Bot commented Jan 9, 2026

Copy link
Copy Markdown
Contributor Author

📦 Build Failed: Missing Dependency

module k8s.io/apiserver@latest found (v0.35.0), but does not contain package k8s.io/apiserver/pkg/util/version

Build Details

Category Details
Build System Go
Failure Point go mod tidy command during go/bump step

Root Cause Analysis 🔍

The Go module dependency resolution failed because k8s.io/apiserver version 0.35.0 does not contain the required package k8s.io/apiserver/pkg/util/version that is being imported by the kubevela project through its dependency chain. This is likely due to a breaking change or package restructuring in the k8s.io/apiserver module where the util/version package was removed or moved to a different location.


🔍 Build failure fix suggestions

Found similar build failures that have been fixed in the past and analyzed them to suggest a fix:

Similar PRs with fixes

Suggested Changes

File: kubevela.yaml

  • modification (pipeline[1].uses go/bump with.replaces section)
    Original:
replaces: github.com/docker/docker=github.com/moby/moby@v26.1.0+incompatible

Replacement:

replaces: |-
        github.com/docker/docker=github.com/moby/moby@v26.1.0+incompatible
        k8s.io/apiserver=k8s.io/apiserver@v0.31.12

Content:

Add k8s.io/apiserver version constraint to replaces directive using multiline format
Click to expand fix analysis

Analysis

The similar fix shows a pattern where k8s.io/apiserver dependency issues are resolved by explicitly pinning the k8s.io/apiserver module to a specific compatible version using the 'replaces' directive in the go/bump step. In the example fix, k8s.io/apiserver was replaced with version v0.31.12 to ensure compatibility when the latest version (v0.33.4 in that case, v0.35.0 in current case) lacks the required package. This approach bypasses the problematic latest version and uses a known working version that contains the necessary packages.

Click to expand fix explanation

Explanation

This fix addresses the root cause by explicitly constraining k8s.io/apiserver to version v0.31.12, which is known to contain the required package k8s.io/apiserver/pkg/util/version. The current failure occurs because the latest version v0.35.0 has restructured or removed this package. By using the 'replaces' directive in go/bump, we override Go's module resolution to use the compatible version instead of the problematic latest version. The multiline format (|-) is used to maintain consistency with the existing replaces structure and allows for clean addition of multiple replace directives.

Click to expand alternative approaches

Alternative Approaches

  • Use a different compatible version like v0.30.x if v0.31.12 proves incompatible with other dependencies
  • Pin to the last known working version by checking the kubevela project's go.mod file to see what version they officially support
  • Update the kubevela source version to a newer release that may have already addressed this k8s.io/apiserver compatibility issue

Was this comment helpful? Please use 👍 or 👎 reactions on this comment.

@octo-sts octo-sts Bot added the ai/skip-comment Stop AI from commenting on PR label Jan 9, 2026
@octo-sts

octo-sts Bot commented Jan 12, 2026

Copy link
Copy Markdown
Contributor Author

This vulnerability remediation is stale and no longer needed. 👋

Advisory CGA-xgvp-j5mw-pm6p has the latest event type of "pending-upstream-fix"

View with: cg advisory show CGA-xgvp-j5mw-pm6p
Or view on GitHub: https://github.com/wolfi-dev/advisories/blob/main/kubevela.advisories.yaml

ID:      CGA-xgvp-j5mw-pm6p
Package: kubevela
Aliases: CVE-2025-32387 GHSA-5xqw-8hwv-wg92
Events:
  - "scan/v1" at 2025-04-12 10:12:13 UTC
  - "pending-upstream-fix" at 2025-04-17 11:28:03 UTC

@octo-sts octo-sts Bot closed this Jan 12, 2026
@aborrero aborrero reopened this Jan 15, 2026
@aborrero
aborrero force-pushed the cve-kubevela-1.10.6-r0-5c62ddef27c1c0b0d2d1ccb7112f1a21 branch from c22bc61 to 415f7da Compare January 15, 2026 11:40
@octo-sts

octo-sts Bot commented Jan 15, 2026

Copy link
Copy Markdown
Contributor Author

This vulnerability remediation is stale and no longer needed. 👋

Advisory CGA-xgvp-j5mw-pm6p has the latest event type of "pending-upstream-fix"

View with: cg advisory show CGA-xgvp-j5mw-pm6p
Or view on GitHub: https://github.com/wolfi-dev/advisories/blob/main/kubevela.advisories.yaml

ID:      CGA-xgvp-j5mw-pm6p
Package: kubevela
Aliases: CVE-2025-32387 GHSA-5xqw-8hwv-wg92
Events:
  - "scan/v1" at 2025-04-12 10:12:13 UTC
  - "pending-upstream-fix" at 2025-04-17 11:28:03 UTC

@octo-sts octo-sts Bot closed this Jan 15, 2026
@aborrero aborrero reopened this Jan 15, 2026
@aborrero
aborrero force-pushed the cve-kubevela-1.10.6-r0-5c62ddef27c1c0b0d2d1ccb7112f1a21 branch from 415f7da to df0114a Compare January 15, 2026 15:56
@octo-sts

octo-sts Bot commented Jan 15, 2026

Copy link
Copy Markdown
Contributor Author

This vulnerability remediation is stale and no longer needed. 👋

Advisory CGA-p58q-wx6f-wh9r has the latest event type of "FIXED"

View with: cg adv show CGA-p58q-wx6f-wh9r

ID:      CGA-p58q-wx6f-wh9r
Package: kubevela
Aliases: CVE-2025-32387 GHSA-5xqw-8hwv-wg92 GO-2025-3602 CGA-42hx-875p-8r28
Events:
  - "DETECTION" at 2025-04-12 10:12:13 UTC
  - "PENDING_UPSTREAM_FIX" at 2025-04-17 11:28:03 UTC
  - "FIXED" at 2025-11-07 09:44:56 UTC

@octo-sts octo-sts Bot closed this Jan 15, 2026
octo-sts-10 Bot pushed a commit that referenced this pull request May 1, 2026
fix(ingress-nginx-controller): drop obsolete libcrypt1 runtime depends

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

Labels

ai/skip-comment Stop AI from commenting on PR automated pr cve-pr-closer/v2-adv-disagreement GHSA-5xqw-8hwv-wg92 go/bump p:kubevela P1 This label indicates our scanning found High, Medium or Low CVEs for these packages. request-cve-remediation service:cve-pr-closer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants