From 2a4eec17a8b8e3fc03eec551bab8c41568982c3b Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Wed, 11 Nov 2026 09:25:21 +0000 Subject: [PATCH] build: fix multiple CVEs by upgrading to go1.27.4 - CVE-2026-97054: net/http: HTTP/1 server crash due to MaxBytesReader header race - CVE-2026-97033: cmd/go: unexpected code execution via --sysroot, -target, -isysroot, -Wl,-syslibroot, and -x cgo flags - CVE-2026-97034: cmd/go: arbitrary command execution via GCC spec files in cgo linker search directories - CVE-2026-97035: cmd/go: unexpected code execution and arbitrary file write via Clang -gen-* and GCC -gnat* flags in cgo - CVE-2026-97036: cmd/go: arbitrary code execution during build on darwin via "-l to_library" in cgo - CVE-2026-97037: cmd/go: linker script injection via split -Wl, flags and Darwin or symbol linker flags in cgo - CVE-2026-97038: cmd/go: arbitrary code execution via crafted .syso files and cgo linker input files - CVE-2026-97039: cmd/go: flag sanitization bypass via "#cgo pkg-config:" directives - CVE-2026-97040: cmd/go, cmd/link: cgo directive injection via .syso files disguised as Go object files - CVE-2026-97041: cmd/compile, cmd/link: host linker flag injection via //go:cgo_* directives - CVE-2026-97042: cmd/cgo, cmd/compile, cmd/link: linker flag injection via cgo_import_dynamic and PE DLL names - CVE-2026-97043: cmd/go, cmd/compile: unexpected code execution via escaped quotes in //go:cgo_ldflag This also updates the go1.26 test job to go1.26.11 which contains the same fixes. --- .github/workflows/build.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fb8398bd8..836de4edf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,7 +37,7 @@ jobs: include: - job_name: linux os: ubuntu-latest - go: '~1.27.3' + go: '~1.27.4' gotags: cmount build_flags: '-include "^linux/"' check: true @@ -48,14 +48,14 @@ jobs: - job_name: linux_386 os: ubuntu-latest - go: '~1.27.3' + go: '~1.27.4' goarch: 386 gotags: cmount quicktest: true - job_name: mac_amd64 os: macos-latest - go: '~1.27.3' + go: '~1.27.4' gotags: 'cmount' build_flags: '-include "^darwin/amd64" -cgo' quicktest: true @@ -64,14 +64,14 @@ jobs: - job_name: mac_arm64 os: macos-latest - go: '~1.27.3' + go: '~1.27.4' gotags: 'cmount' build_flags: '-include "^darwin/arm64" -cgo -macos-arch arm64 -cgo-cflags=-I/usr/local/include -cgo-ldflags=-L/usr/local/lib' deploy: true - job_name: windows os: windows-latest - go: '~1.27.3' + go: '~1.27.4' gotags: cmount cgo: '0' build_flags: '-include "^windows/"' @@ -81,14 +81,14 @@ jobs: - job_name: other_os os: ubuntu-latest - go: '~1.27.3' + go: '~1.27.4' build_flags: '-exclude "^(windows/|darwin/|linux/)"' compile_all: true deploy: true - job_name: go1.26 os: ubuntu-latest - go: '~1.26.10' + go: '~1.26.11' quicktest: true racequicktest: true @@ -287,7 +287,7 @@ jobs: id: setup-go uses: actions/setup-go@v7 with: - go-version: '~1.27.3' + go-version: '~1.27.4' check-latest: true cache: false @@ -402,7 +402,7 @@ jobs: id: setup-go uses: actions/setup-go@v7 with: - go-version: '~1.27.3' + go-version: '~1.27.4' # Caching is handled explicitly below to share the module cache # with the other jobs - see the build job for the rationale. cache: false