Subject: CVS commit: pkgsrc/lang
From: Benny Siegert
Date: 2024-07-03 08:49:54
Message id: 20240703064955.15D69FC74@cvs.NetBSD.org

Log Message:
go: update to 1.22.5 and 1.21.12 (security)

These minor releases include 1 security fix following the security policy:

net/http: denial of service due to improper 100-continue handling

The net/http HTTP/1.1 client mishandled the case where a server responds to a
request with an "Expect: 100-continue" header with a non-informational \ 
(200 or
higher) status. This mishandling could leave a client connection in an invalid
state, where the next request sent on the connection will fail.

An attacker sending a request to a net/http/httputil.ReverseProxy proxy can
exploit this mishandling to cause a denial of service by sending "Expect:
100-continue" requests which elicit a non-informational response from the
backend. Each such request leaves the proxy with an invalid connection, and
causes one subsequent request using that connection to fail.

Thanks to Geoff Franks for reporting this issue.

This is CVE-2024-24791 and Go issue https://go.dev/issue/67555.

View the release notes for more information:
https://go.dev/doc/devel/release#go1.22.5

Files:
RevisionActionfile
1.211modifypkgsrc/lang/go/version.mk
1.12modifypkgsrc/lang/go121/PLIST
1.15modifypkgsrc/lang/go121/distinfo
1.6modifypkgsrc/lang/go122/PLIST
1.8modifypkgsrc/lang/go122/distinfo