Skip to content

kubevela/1.10.6-r0: cve remediation - #77699

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

kubevela/1.10.6-r0: cve remediation#77699
octo-sts[bot] wants to merge 1 commit into
mainfrom
cve-kubevela-1.10.6-r0-9dbfbd1eb552468a1fc221befebe982e

Conversation

@octo-sts

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

Copy link
Copy Markdown
Contributor

kubevela/1.10.6-r0: fix GHSA-4hfp-h4cw-hj8p

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-4hfp-h4cw-hj8p 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: Dependency Version Mismatch

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 command during dependency update process

Root Cause Analysis 🔍

The k8s.io/apiserver module version v0.35.0 does not contain the required package k8s.io/apiserver/pkg/util/version that is being imported by the application code. This indicates either the package was moved/removed in this version of the apiserver module, or there's an incompatibility between the module version and the expected package structure.


🔍 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

  • add at line 25 (go/bump section - replaces field)
    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 the replaces section to pin it to a compatible version that contains the required pkg/util/version package
Click to expand fix analysis

Analysis

The similar fixed failure shows a pattern where k8s.io/apiserver module versions (v0.33.4 in the example, v0.35.0 in current case) do not contain the expected package k8s.io/apiserver/pkg/util/version. The fix involved adding a specific version constraint using the 'replaces' directive to pin k8s.io/apiserver to an earlier compatible version (v0.31.12 in the example). This suggests that newer versions of k8s.io/apiserver have restructured or removed the pkg/util/version package, requiring a downgrade to a stable version that still contains this package.

Click to expand fix explanation

Explanation

The fix works by explicitly constraining the k8s.io/apiserver module to version v0.31.12, which is known to contain the required k8s.io/apiserver/pkg/util/version package. The current failure occurs because kubevela's dependency resolution is picking up v0.35.0 of k8s.io/apiserver, which has either moved or removed the pkg/util/version package. By adding the version constraint in the 'replaces' section, we force Go's module system to use the older, compatible version instead of the latest one. This approach follows the exact same pattern used in the similar fix, where the same package was constrained to the same version (v0.31.12) to resolve an identical missing package error.

Click to expand alternative approaches

Alternative Approaches

  • Update kubevela's source code to use the new location/structure of the version utilities in k8s.io/apiserver v0.35.0, though this would require identifying where the functionality moved
  • Pin to a different intermediate version of k8s.io/apiserver (like v0.32.x or v0.33.x) that might still contain the package while being newer than v0.31.12
  • Update all Kubernetes-related dependencies to a consistent version set that works together, though this might introduce other compatibility issues

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-3frq-h5v4-84rq has the latest event type of "pending-upstream-fix"

View with: cg advisory show CGA-3frq-h5v4-84rq
Or view on GitHub: https://github.com/wolfi-dev/advisories/blob/main/kubevela.advisories.yaml

ID:      CGA-3frq-h5v4-84rq
Package: kubevela
Aliases: CVE-2025-32386 GHSA-4hfp-h4cw-hj8p
Events:
  - "scan/v1" at 2025-04-12 10:12:12 UTC
  - "pending-upstream-fix" at 2025-04-17 12:17:13 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-9dbfbd1eb552468a1fc221befebe982e branch from 014b5d6 to aadd716 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-3frq-h5v4-84rq has the latest event type of "pending-upstream-fix"

View with: cg advisory show CGA-3frq-h5v4-84rq
Or view on GitHub: https://github.com/wolfi-dev/advisories/blob/main/kubevela.advisories.yaml

ID:      CGA-3frq-h5v4-84rq
Package: kubevela
Aliases: CVE-2025-32386 GHSA-4hfp-h4cw-hj8p
Events:
  - "scan/v1" at 2025-04-12 10:12:12 UTC
  - "pending-upstream-fix" at 2025-04-17 12:17:13 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-9dbfbd1eb552468a1fc221befebe982e branch from aadd716 to 871fdf9 Compare January 15, 2026 15:57
@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-cmw4-qcf2-frpr has the latest event type of "FIXED"

View with: cg adv show CGA-cmw4-qcf2-frpr

ID:      CGA-cmw4-qcf2-frpr
Package: kubevela
Aliases: CVE-2025-32386 GHSA-4hfp-h4cw-hj8p GO-2025-3601 CGA-vj43-8whr-8qgq
Events:
  - "DETECTION" at 2025-04-12 10:12:12 UTC
  - "PENDING_UPSTREAM_FIX" at 2025-04-17 12:17:13 UTC
  - "FIXED" at 2025-11-07 09:44:56 UTC

@octo-sts octo-sts Bot closed this Jan 15, 2026
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-4hfp-h4cw-hj8p 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