ADVISORIES

openEuler Security Advisory

OESA-2025-2783

golang security update

Details

.

Security Fix(es):

The Parse function permits values other than IPv6 addresses to be included in square brackets within the host component of a URL. RFC 3986 permits IPv6 addresses to be included within the host component, enclosed within square brackets. For example: "http://[::1]/". IPv4 addresses and hostnames must not appear within square brackets. Parse did not enforce this requirement.(CVE-2025-47912)

In Go before 1.24.8 and 1.25.x before 1.25.2, Despite HTTP headers having a default limit of 1 MB, the number of cookies that can be parsed did not have a limit. By sending a lot of very small cookies such as "a=;", an attacker can make an HTTP server allocate a large amount of structs, causing large memory consumption.(CVE-2025-58186)

Affected packages

EcosystemPackageAffected versions
openEuler:22.03-LTS-SP3golang
All versions before 1.17.3-45.oe2203sp3 (fixed in 1.17.3-45.oe2203sp3)

References