Skip to content

kubevela/1.10.6-r0: cve remediation - #77702

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

kubevela/1.10.6-r0: cve remediation#77702
octo-sts[bot] wants to merge 1 commit into
mainfrom
cve-kubevela-1.10.6-r0-45daddae2bbf227f1c3eb7d61f7e0076

Conversation

@octo-sts

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

Copy link
Copy Markdown
Contributor

kubevela/1.10.6-r0: fix GHSA-f9f8-9pmf-xv68

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-f9f8-9pmf-xv68 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

go: github.com/oam-dev/kubevela/cmd/core/app/hooks imports github.com/kubevela/pkg/util/singleton imports sigs.k8s.io/apiserver-runtime/pkg/builder imports sigs.k8s.io/apiserver-runtime/internal/sample-apiserver/pkg/cmd/server imports k8s.io/apiserver/pkg/util/version: 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/gobump
Failure Point go mod tidy during gobump dependency update

Root Cause Analysis 🔍

The k8s.io/apiserver module version 0.35.0 does not contain the required package k8s.io/apiserver/pkg/util/version that is being imported by the dependency chain. This is likely due to package restructuring or removal in newer versions of the Kubernetes apiserver module.


🔍 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[0].uses: go/bump.with)
    Original:
  - uses: go/bump
    with:
      replaces: github.com/docker/docker=github.com/moby/moby@v26.1.0+incompatible
      deps: |-
        github.com/containerd/containerd@v1.7.29
        golang.org/x/crypto@v0.45.0
        helm.sh/helm/v3@v3.18.5

Replacement:

  - uses: go/bump
    with:
      replaces: |-
        github.com/docker/docker=github.com/moby/moby@v26.1.0+incompatible
        k8s.io/apiserver=k8s.io/apiserver@v0.31.12
      deps: |-
        github.com/containerd/containerd@v1.7.29
        golang.org/x/crypto@v0.45.0
        helm.sh/helm/v3@v3.18.5

Content:

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

Analysis

The similar fix shows a pattern where k8s.io/apiserver version compatibility issues are resolved by explicitly downgrading to a specific working version using the 'replaces' directive in the go/bump step. In the previous fix, k8s.io/apiserver was replaced with v0.31.12 when v0.33.4 was causing the missing package error. This suggests that newer versions of k8s.io/apiserver have restructured or removed the pkg/util/version package.

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 pkg/util/version package. The current error occurs because the latest version (v0.35.0) has likely removed or restructured this package. By adding the replacement directive, we force the Go module system to use the compatible version instead of attempting to use the latest. The fix follows the exact same pattern as the previous successful fix, just updating the replaces directive to include both the existing Docker replacement and the new apiserver version constraint.

Click to expand alternative approaches

Alternative Approaches

  • Try a different compatible version of k8s.io/apiserver (such as v0.30.x or v0.32.x) if v0.31.12 proves incompatible with other dependencies
  • Investigate if the kubevela project has updated their dependencies to work with newer k8s.io/apiserver versions and update to a newer kubevela version
  • Add version constraints for other k8s.io packages that might be transitively pulled in to ensure consistency across the entire Kubernetes ecosystem dependencies

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-r58r-cg5j-q278 has the latest event type of "pending-upstream-fix"

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

ID:      CGA-r58r-cg5j-q278
Package: kubevela
Aliases: CVE-2025-55198 GHSA-f9f8-9pmf-xv68
Events:
  - "scan/v1" at 2025-08-14 09:48:03 UTC
  - "pending-upstream-fix" at 2025-08-18 23:19:06 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-45daddae2bbf227f1c3eb7d61f7e0076 branch from 7398d72 to 6d4e87f 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-r58r-cg5j-q278 has the latest event type of "pending-upstream-fix"

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

ID:      CGA-r58r-cg5j-q278
Package: kubevela
Aliases: CVE-2025-55198 GHSA-f9f8-9pmf-xv68
Events:
  - "scan/v1" at 2025-08-14 09:48:03 UTC
  - "pending-upstream-fix" at 2025-08-18 23:19:06 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-45daddae2bbf227f1c3eb7d61f7e0076 branch from 6d4e87f to ac76b84 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-3j55-r9m2-g92v has the latest event type of "FIXED"

View with: cg adv show CGA-3j55-r9m2-g92v

ID:      CGA-3j55-r9m2-g92v
Package: kubevela
Aliases: CVE-2025-55198 GHSA-f9f8-9pmf-xv68 GO-2025-3888 CGA-gh4w-vw29-v29x
Events:
  - "DETECTION" at 2025-08-14 09:48:03 UTC
  - "PENDING_UPSTREAM_FIX" at 2025-08-18 23:19:06 UTC
  - "FIXED" at 2025-11-07 09:44:56 UTC

@octo-sts octo-sts Bot closed this Jan 15, 2026
octo-sts-6 Bot added a commit that referenced this pull request Apr 30, 2026
Co-authored-by: staging-update-bot <staging-update-bot@chainguard.dev>

Export:  b36e2d879596ac4aa09b53f056ce46e074b325e8
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-f9f8-9pmf-xv68 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