Skip to content

fix: [CI-21812]: Upgrade moby/buildkit to v0.28.1 to fix CVE-2026-337…#58

Merged
spahuja-harness merged 1 commit into
mainfrom
release/harness-vm-runner-plugin_1.5.0
Mar 31, 2026
Merged

fix: [CI-21812]: Upgrade moby/buildkit to v0.28.1 to fix CVE-2026-337…#58
spahuja-harness merged 1 commit into
mainfrom
release/harness-vm-runner-plugin_1.5.0

Conversation

@spahuja-harness
Copy link
Copy Markdown
Contributor

Summary

  • Upgrades github.com/moby/buildkit from v0.21.0 to v0.28.1, fixing two high-severity CVEs
  • Adds a replace directive to pin docker/cli to v28.0.4 at compile time, working around an incompatibility between buildkit v0.28.1 (which requires docker/cli v29) and
    harness/nektos-act/v2 (which uses docker/cli v28 APIs removed in v29)
  • Verified with govulncheck: 0 vulnerabilities found in code or imported packages

CVEs Fixed

CVE Severity CVSS Fixed In
CVE-2026-33747 High 8.4 moby/buildkit v0.28.1
CVE-2026-33748 High 8.0 moby/buildkit v0.28.1

Known Remaining Issue

docker/cli remains pinned to v28.0.4 via replace directive due to harness/nektos-act/v2 incompatibility with v29 APIs (ListOpts.GetAll removed, auth type changes). CVE-2025-15558
(GO-2026-4610, Windows-only local privilege escalation) remains unresolved and is tracked in a comment in go.mod. Will be fixed when nektos-act adds docker/cli v29 support.

Test Plan

  • go build ./... passes
  • go test ./... passes (all 8 test packages)
  • govulncheck ./... reports 0 vulnerabilities in code and imported packages

… and CVE-2026-33748

Both CVEs (CVSS 8.4 and 8.0) affect moby/buildkit < v0.28.1.
Upgraded from v0.21.0 to v0.28.1.

buildkit v0.28.1 requires docker/cli v29, which is incompatible with
harness/nektos-act/v2 (uses removed v28 APIs). Added a replace directive
to pin docker/cli to v28.0.4 at compile time while satisfying buildkit's
declared dependency on v29.2.1.

Verified with govulncheck: 0 vulnerabilities found in code or imported packages.

AI-Session-Id: e5fffb26-30d0-4e53-aa03-bc09d36c2599
AI-Tool: claude-code
AI-Model: global.anthropic.claude-sonnet-4-6
@spahuja-harness spahuja-harness merged commit ed6780a into main Mar 31, 2026
1 check passed
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.

2 participants