r/programming • • 18d ago

Go 1.27.4 security release: cgo flags and a net/http fix

https://importstatic.com/go/go-1-27-4-cgo-security-flags
3 Upvotes

2 comments sorted by

1

u/edwards_t7407 13d ago

Do these affect default builds, or only specific cgo flags and net/http usage patterns? That would clarify which deployments need to prioritize the update.

1

u/Efficient_File 12d ago

Two different groups really.

11 of the 12 are build-time: a dependency's #cgo flags or linker inputs could run code on whatever machine does the build. So the box that needs the new toolchain first is CI building deps you don't control. Your shipped binaries aren't the problem there. The net/http one is runtime but narrow: HTTP/1 servers using MaxBytesReader where the handler reads the body in one goroutine while setting headers in another. Those need a rebuild + redeploy.