Vulnerability · Published May 27, 2021 · Assigned by mitre
CVE-2021-31525
Medium 5.9
In plain English
A medium-severity security flaw in the go package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.7% (higher than 90% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)5.9Medium
Exploit odds (30 days)3.7%top 10.2% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | go | 1.16.4-r0 | ALPINE-CVE-2021-31525 |
| Alpine:v3.21 | go | 1.16.4-r0 | ALPINE-CVE-2021-31525 |
| Alpine:v3.22 | go | 1.16.4-r0 | ALPINE-CVE-2021-31525 |
| Alpine:v3.23 | go | 1.16.4-r0 | ALPINE-CVE-2021-31525 |
| Alpine:v3.24 | go | 1.16.4-r0 | ALPINE-CVE-2021-31525 |
| Debian:12 | golang-golang-x-net | 1:0.0+git20210119.5f4716e+dfsg-3 | DEBIAN-CVE-2021-31525 |
| Debian:13 | golang-golang-x-net | 1:0.0+git20210119.5f4716e+dfsg-3 | DEBIAN-CVE-2021-31525 |
| Debian:14 | golang-golang-x-net | 1:0.0+git20210119.5f4716e+dfsg-3 | DEBIAN-CVE-2021-31525 |
| Go | golang.org/x/net | 0.0.0-20210428140749-89ef3d95e781 | GHSA-h86h-8ppg-mxmh |
| Go | golang.org/x/net | 0.0.0-20210428140749-89ef3d95e781 | GO-2022-0236 |
| Go | stdlib | 1.15.12, 1.16.4 | GO-2022-0236 |
| Rocky Linux:8 | delve | 0:1.5.0-2.module+el8.4.0+396+d2d16ae3 | RLSA-2021:3076 |
| Rocky Linux:8 | go-toolset | 0:1.15.14-1.module+el8.4.0+632+4dba2916 | RLSA-2021:3076 |
| Rocky Linux:8 | golang | 0:1.15.14-1.module+el8.4.0+632+4dba2916 | RLSA-2021:3076 |
Affected products (as reported)
References
- https://groups.google.com/g/golang-announce/c/cu9SP4eSXMc x_refsource_MISC
- https://github.com/golang/go/issues/45710 x_refsource_MISC
- FEDORA-2021-ee3c072cd0 vendor-advisory, x_refsource_FEDORA
- GLSA-202208-02 vendor-advisory, x_refsource_GENTOO