ADVISORIES

openEuler Security Advisory

OESA-2024-1306

golang security update

Details

The Go Programming Language.

Security Fix(es):

When following an HTTP redirect to a domain which is not a subdomain match or exact match of the initial domain, an http.Client does not forward sensitive headers such as "Authorization" or "Cookie". For example, a redirect from foo.com to www.foo.com will forward the Authorization header, but a redirect to bar.com will not. A maliciously crafted HTTP redirect could cause sensitive headers to be unexpectedly forwarded.(CVE-2023-45289)

When parsing a multipart form (either explicitly with Request.ParseMultipartForm or implicitly with Request.FormValue, Request.PostFormValue, or Request.FormFile), limits on the total size of the parsed form were not applied to the memory consumed while reading a single form line. This permits a maliciously crafted input containing very long lines to cause allocation of arbitrarily large amounts of memory, potentially leading to memory exhaustion. With fix, the ParseMultipartForm function now correctly limits the maximum size of form lines.(CVE-2023-45290)

Verifying a certificate chain which contains a certificate with an unknown public key algorithm will cause Certificate.Verify to panic. This affects all crypto/tls clients, and servers that set Config.ClientAuth to VerifyClientCertIfGiven or RequireAndVerifyClientCert. The default behavior is for TLS servers to not verify client certificates.(CVE-2024-24783)

If errors returned from MarshalJSON methods contain user controlled data, they may be used to break the contextual auto-escaping behavior of the html/template package, allowing for subsequent actions to inject unexpected content into templates.(CVE-2024-24785)

Affected packages

EcosystemPackageAffected versions
openEuler:20.03-LTS-SP1golang
All versions before 1.15.7-39.oe1 (fixed in 1.15.7-39.oe1)
openEuler:20.03-LTS-SP4golang
All versions before 1.15.7-39.oe2003sp4 (fixed in 1.15.7-39.oe2003sp4)
openEuler:22.03-LTSgolang
All versions before 1.17.3-28.oe2203sp3 (fixed in 1.17.3-28.oe2203sp3)
openEuler:22.03-LTS-SP1golang
All versions before 1.17.3-28.oe2203sp1 (fixed in 1.17.3-28.oe2203sp1)
openEuler:22.03-LTS-SP2golang
All versions before 1.17.3-28.oe2203sp2 (fixed in 1.17.3-28.oe2203sp2)
openEuler:22.03-LTS-SP3golang
All versions before 1.17.3-28.oe2203sp3 (fixed in 1.17.3-28.oe2203sp3)

References