Skip to content

[backport v1.6] fix: bumping Go version to 1.24.13#4342

Open
behzad-mir wants to merge 1 commit intorelease/v1.6from
backport/go-cve-fix-to-release-v1.6
Open

[backport v1.6] fix: bumping Go version to 1.24.13#4342
behzad-mir wants to merge 1 commit intorelease/v1.6from
backport/go-cve-fix-to-release-v1.6

Conversation

@behzad-mir
Copy link
Copy Markdown
Contributor

Summary

Backport of #4289 to release/v1.6 — bumps Go from 1.23.x to 1.24 to fix critical CVEs.

Changes

Updates Go image SHA in:

  • cni/Dockerfile
  • cns/Dockerfile
  • azure-ipam/Dockerfile

New image: mcr.microsoft.com/oss/go/microsoft/golang:1.24-cbl-mariner2.0
SHA: sha256:b05a9bbf50a8ccfdd0ebe9f673ef29dca7c1d5e209434b35a560a4e8ae5f72b2

CVE Impact

CVE Severity Package
CVE-2025-68121 CRITICAL crypto/tls
CVE-2025-68132 HIGH net/http
CVE-2025-68133 MEDIUM os
CVE-2025-68134 MEDIUM strings
CVE-2025-68135 LOW encoding/json

Notes

  • Manual SHA update (v1.6 uses cbl-mariner2.0, not azurelinux3.0)
  • Dev tooling Dockerfiles (hack/toolbox, tools/acncli) not updated — internal only

Related

Bumps Go version from 1.23.x to 1.24 in:
- cni/Dockerfile
- cns/Dockerfile
- azure-ipam/Dockerfile

New SHA: sha256:b05a9bbf50a8ccfdd0ebe9f673ef29dca7c1d5e209434b35a560a4e8ae5f72b2
(mcr.microsoft.com/oss/go/microsoft/golang:1.24-cbl-mariner2.0)

This addresses 5 stdlib CVEs including:
- CVE-2025-68121 (CRITICAL) - crypto/tls
- CVE-2025-68132 (HIGH) - net/http
- CVE-2025-68133 (MEDIUM) - os
- CVE-2025-68134 (MEDIUM) - strings
- CVE-2025-68135 (LOW) - encoding/json

Backport of #4289 to release/v1.6 (manual SHA update since this
branch uses cbl-mariner2.0 base images instead of azurelinux3.0).
@behzad-mir behzad-mir marked this pull request as ready for review April 9, 2026 23:55
@behzad-mir behzad-mir requested review from a team as code owners April 9, 2026 23:55
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Backport to release/v1.6 that updates the pinned Go builder image used to build ACN components, intended to remediate Go stdlib CVEs by moving from Go 1.23.x to Go 1.24.x.

Changes:

  • Update the pinned mcr.microsoft.com/oss/go/microsoft/golang digest used in cns and cni builds.
  • Update the pinned mcr.microsoft.com/oss/go/microsoft/golang digest used in the azure-ipam build.
  • Update adjacent version-reference comments to match the new base image tag.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
cns/Dockerfile Updates the pinned Go builder image digest used for building azure-cns.
cni/Dockerfile Updates the pinned Go builder image digest used for building CNI artifacts and dropgz.
azure-ipam/Dockerfile Updates the pinned Go builder image digest used for building azure-ipam and dropgz.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +7 to +8
# mcr.microsoft.com/oss/go/microsoft/golang:1.24-cbl-mariner2.0
FROM --platform=linux/${ARCH} mcr.microsoft.com/oss/go/microsoft/golang@sha256:b05a9bbf50a8ccfdd0ebe9f673ef29dca7c1d5e209434b35a560a4e8ae5f72b2 AS go
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This Dockerfile is marked AUTOGENERATED from cns/Dockerfile.tmpl (which renders {{.GO_PIN}} from the GO_IMG/GO_PIN values in build/images.mk). In this branch, build/images.mk still defaults GO_IMG to .../golang:1.23-cbl-mariner2.0, so re-running the standard dockerfile generation will likely revert this change back to Go 1.23 and reintroduce the CVE exposure. Please update the source of truth (e.g., build/images.mk GO_IMG or the rendering inputs used by CI) and regenerate, rather than only editing the rendered Dockerfile.

Copilot uses AI. Check for mistakes.
Comment on lines +7 to +8
# mcr.microsoft.com/oss/go/microsoft/golang:1.24-cbl-mariner2.0
FROM --platform=linux/${ARCH} mcr.microsoft.com/oss/go/microsoft/golang@sha256:b05a9bbf50a8ccfdd0ebe9f673ef29dca7c1d5e209434b35a560a4e8ae5f72b2 AS go
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment indicates mcr.microsoft.com/oss/go/microsoft/golang:1.24-cbl-mariner2.0, but the PR title/description say the Go bump is to 1.24.13. Please align the referenced version/tag in the Dockerfile comments (and, ideally, the upstream GO_IMG input used for rendering) so it’s clear which Go patch level the pinned digest corresponds to.

Copilot uses AI. Check for mistakes.
Comment on lines +8 to +9
# mcr.microsoft.com/oss/go/microsoft/golang:1.24-cbl-mariner2.0
FROM --platform=linux/${ARCH} mcr.microsoft.com/oss/go/microsoft/golang@sha256:b05a9bbf50a8ccfdd0ebe9f673ef29dca7c1d5e209434b35a560a4e8ae5f72b2 AS go
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This Dockerfile is marked AUTOGENERATED from cni/Dockerfile.tmpl (which renders {{.GO_PIN}} from the GO_IMG/GO_PIN values in build/images.mk). In this branch, build/images.mk still defaults GO_IMG to .../golang:1.23-cbl-mariner2.0, so re-running the standard dockerfile generation will likely revert this change back to Go 1.23 and reintroduce the CVE exposure. Please update the source of truth (e.g., build/images.mk GO_IMG or the rendering inputs used by CI) and regenerate, rather than only editing the rendered Dockerfile.

Copilot uses AI. Check for mistakes.
Comment on lines +8 to +9
# mcr.microsoft.com/oss/go/microsoft/golang:1.24-cbl-mariner2.0
FROM --platform=linux/${ARCH} mcr.microsoft.com/oss/go/microsoft/golang@sha256:b05a9bbf50a8ccfdd0ebe9f673ef29dca7c1d5e209434b35a560a4e8ae5f72b2 AS go
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment indicates mcr.microsoft.com/oss/go/microsoft/golang:1.24-cbl-mariner2.0, but the PR title/description say the Go bump is to 1.24.13. Please align the referenced version/tag in the Dockerfile comments (and, ideally, the upstream GO_IMG input used for rendering) so it’s clear which Go patch level the pinned digest corresponds to.

Copilot uses AI. Check for mistakes.
Comment on lines +6 to +7
# skopeo inspect docker://mcr.microsoft.com/oss/go/microsoft/golang:1.24-cbl-mariner2.0 --format "{{.Name}}@{{.Digest}}"
FROM --platform=linux/${ARCH} mcr.microsoft.com/oss/go/microsoft/golang@sha256:b05a9bbf50a8ccfdd0ebe9f673ef29dca7c1d5e209434b35a560a4e8ae5f72b2 AS go
Copy link

Copilot AI Apr 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The skopeo inspect comment was updated to reference .../golang:1.24-cbl-mariner2.0, but the PR title/description state the bump is to Go 1.24.13. Please align this comment/tag (and ensure the pinned digest corresponds to the intended patch release) to avoid confusion during future maintenance.

Copilot uses AI. Check for mistakes.
@jpayne3506 jpayne3506 enabled auto-merge April 10, 2026 21:35
@jpayne3506 jpayne3506 disabled auto-merge April 10, 2026 21:35
Copy link
Copy Markdown
Contributor

@jpayne3506 jpayne3506 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to update signed pipeline as well

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.

3 participants