fix: [CI-21812]: Upgrade moby/buildkit to v0.28.1 to fix CVE-2026-337…#58
Merged
Merged
Conversation
… 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
jamie-harness
approved these changes
Mar 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
github.com/moby/buildkitfromv0.21.0tov0.28.1, fixing two high-severity CVEsreplacedirective to pindocker/clitov28.0.4at compile time, working around an incompatibility between buildkit v0.28.1 (which requires docker/cli v29) andharness/nektos-act/v2(which uses docker/cli v28 APIs removed in v29)govulncheck: 0 vulnerabilities found in code or imported packagesCVEs Fixed
Known Remaining Issue
docker/cliremains pinned tov28.0.4via replace directive due toharness/nektos-act/v2incompatibility with v29 APIs (ListOpts.GetAllremoved, 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 ./...passesgo test ./...passes (all 8 test packages)govulncheck ./...reports 0 vulnerabilities in code and imported packages