From 319939f62d830beb3174cbc392264c9169b01e14 Mon Sep 17 00:00:00 2001 From: Yoshihiro Misawa Date: Mon, 16 Nov 2026 08:58:09 +0900 Subject: [PATCH] Raise the Go toolchain floor to 1.27.4 go1.27.4 (released 2026-11-10) carries security fixes to cgo, the go command, the compiler, the linker and net/http. govulncheck v1.7.0 on go1.27.3 reports one of them, GO-2026-6859 (CVE-2026-97054), at symbol level, which fails the CI lint job on every PR (first seen on #31): an HTTP/1 server using MaxBytesReader can panic when the limit-exceeded "Connection: close" header races with a header written by a handler that reads the body concurrently. The library core does not import net/http (go list -deps shows none); the traces through internal/proto and clamdtest are interface-dispatch over-approximations caused by examples/httpupload being in the same scan. That example does use MaxBytesReader, but reads the body via FormFile before writing any header, in the same goroutine. As with 1.27.3, the go directive in go.mod is this project's declared toolchain floor and is expected to carry current stdlib security fixes: actions/setup-go resolves it through go-version-file, and local toolchains fetch it via GOTOOLCHAIN=auto. make verify and make integration pass on go1.27.4, and govulncheck -show verbose reports no vulnerabilities at any level. README.md, README.ja.md and CONTRIBUTING.md state "Go 1.27+", which stays accurate and needs no change. --- CHANGELOG.md | 7 +++++++ go.mod | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 293a4a4..962e031 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,13 @@ project adheres to [Semantic Versioning](https://semver.org/). ## [Unreleased] +### Changed + +- Raise the Go toolchain floor to 1.27.4, which carries the fix for + GO-2026-6859 (`net/http`). Modules that depend on go-clamav need + `go 1.27.4` or later; older local toolchains fetch it automatically via + `GOTOOLCHAIN=auto`. + ## [0.4.1] - 2026-10-23 ### Added diff --git a/go.mod b/go.mod index 10b2ce9..e1ad6a2 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/PyYoshi/go-clamav -go 1.27.3 +go 1.27.4