Vulnerabilities · 2021 · Golang
CVE-2021-31525
Golang Go vulnerability
net/http in Go before 1.15.12 and 1.16.x before 1.16.4 allows remote attackers to cause a denial of service (panic) via a large header to ReadRequest or ReadResponse. Server, Transport, and Client can each be affected in some configurations.
Affected products
Go, Fedora. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Golang Go runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/golang/go/issues/45710 · Patch
- groups.google.com/g/golang-announce/c/cu9SP4eSXMc · Third Party Advisory
- security.gentoo.org/glsa/202208-02 · Third Party Advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/I
- nvd.nist.gov/vuln/detail/CVE-2021-31525
- go.dev/cl/313069
- go.dev/issue/45710
- go.googlesource.com/net/+/89ef3d95e781148a0951956029c92a211477f7f9
- nvd.nist.gov/vuln/detail/CVE-2021-31525
- cve.org/CVERecord?id=CVE-2021-31525
More vulnerabilities in Golang products
CVE-2026-42506CVE-2026-42502CVE-2026-27136CVE-2026-25681CVE-2026-25680CVE-2025-68121CVE-2025-68119CVE-2025-61732All 172
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.