CVE-2021-31525
Go · CVE-2021-31525
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 3.692% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T18:36:01.564Z. Public exploit availability is not used to set this status.
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T18:36:01.564Z | CISA KEV |
| cvss | unknown | unknown | unknown |
| epss | verified | 2026-11-19T18:27:06.173Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:39.236Z | OSV |
| affected | verified | 2026-11-19T12:55:57.846Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:55:57.846Z | CVE Program |
Affected versions and configuration
n/a n/a; default status: unknown: n/a [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "n/a",
"product": "n/a",
"versions": [
{
"status": "affected",
"version": "n/a"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://groups.google.com/g/golang-announce/c/cu9SP4eSXMc",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://github.com/golang/go/issues/45710",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ISRZZ6NY5R2TBYE72KZFOCO25TEUQTBF/",
"name": "FEDORA-2021-ee3c072cd0",
"tags": [
"vendor-advisory",
"x_refsource_FEDORA",
"x_transferred"
]
},
{
"url": "https://security.gentoo.org/glsa/202208-02",
"name": "GLSA-202208-02",
"tags": [
"vendor-advisory",
"x_refsource_GENTOO",
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-03T23:03:33.426Z"
}
}
]
}Archived source JSONCVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "n/a",
"product": "n/a",
"versions": [
{
"status": "affected",
"version": "n/a"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://groups.google.com/g/golang-announce/c/cu9SP4eSXMc",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://github.com/golang/go/issues/45710",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ISRZZ6NY5R2TBYE72KZFOCO25TEUQTBF/",
"name": "FEDORA-2021-ee3c072cd0",
"tags": [
"vendor-advisory",
"x_refsource_FEDORA",
"x_transferred"
]
},
{
"url": "https://security.gentoo.org/glsa/202208-02",
"name": "GLSA-202208-02",
"tags": [
"vendor-advisory",
"x_refsource_GENTOO",
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-03T23:03:33.426Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GO-2022-0236",
"aliases": [
"BIT-golang-2021-31525",
"CVE-2021-31525",
"GHSA-h86h-8ppg-mxmh"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.15.12"
},
{
"introduced": "1.16.0-0"
},
{
"fixed": "1.16.4"
}
]
}
],
"package": {
"name": "stdlib",
"purl": "pkg:golang/stdlib",
"ecosystem": "Go"
},
"versions": [],
"database_specific": {
"source": "https://vuln.go.dev/ID/GO-2022-0236.json"
},
"ecosystem_specific": {
"imports": [
{
"path": "net/http",
"symbols": [
"http2clientStream.writeRequest",
"http2isConnectionCloseRequest",
"isProtocolSwitchHeader",
"shouldClose"
]
}
]
}
}
],
"severity": [],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://go.dev/cl/313069",
"type": "FIX"
},
{
"url": "https://go.googlesource.com/net/+/89ef3d95e781148a0951956029c92a211477f7f9",
"type": "FIX"
},
{
"url": "https://go.dev/issue/45710",
"type": "REPORT"
},
{
"url": "https://groups.google.com/g/golang-announce/c/cu9SP4eSXMc",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2022-0236",
"review_status": "REVIEWED"
}
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-h86h-8ppg-mxmh",
"aliases": [
"BIT-golang-2021-31525",
"CVE-2021-31525",
"GO-2022-0236"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.0.0-20210428140749-89ef3d95e781"
}
]
}
],
"package": {
"name": "golang.org/x/net",
"purl": "pkg:golang/golang.org/x/net",
"ecosystem": "Go"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-h86h-8ppg-mxmh/GHSA-h86h-8ppg-mxmh.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-31525",
"type": "ADVISORY"
},
{
"url": "https://github.com/golang/go/issues/45710",
"type": "WEB"
},
{
"url": "https://github.com/golang/go",
"type": "PACKAGE"
},
{
"url": "https://go.dev/cl/313069",
"type": "WEB"
},
{
"url": "https://go.dev/issue/45710",
"type": "WEB"
},
{
"url": "https://go.googlesource.com/net/+/89ef3d95e781148a0951956029c92a211477f7f9",
"type": "WEB"
},
{
"url": "https://groups.google.com/g/golang-announce/c/cu9SP4eSXMc",
"type": "WEB"
},
{
"url": "https://lists.fedoraproject.org/archives/list/[email protected]/message/ISRZZ6NY5R2TBYE72KZFOCO25TEUQTBF",
"type": "WEB"
},
{
"url": "https://pkg.go.dev/vuln/GO-2022-0236",
"type": "WEB"
},
{
"url": "https://security.gentoo.org/glsa/202208-02",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-674"
],
"severity": "MODERATE",
"github_reviewed": true,
"nvd_published_at": "2021-05-27T13:15:00Z",
"github_reviewed_at": "2023-02-08T00:35:49Z"
}
}Archived source JSONOSV · osv · full conditions
{
"id": "GO-2022-0236",
"aliases": [
"BIT-golang-2021-31525",
"CVE-2021-31525",
"GHSA-h86h-8ppg-mxmh"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.0.0-20210428140749-89ef3d95e781"
}
]
}
],
"package": {
"name": "golang.org/x/net",
"purl": "pkg:golang/golang.org/x/net",
"ecosystem": "Go"
},
"versions": [],
"database_specific": {
"source": "https://vuln.go.dev/ID/GO-2022-0236.json"
},
"ecosystem_specific": {
"imports": [
{
"path": "golang.org/x/net/http/httpguts",
"symbols": [
"HeaderValuesContainsToken",
"headerValueContainsToken"
]
}
]
}
}
],
"severity": [],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://go.dev/cl/313069",
"type": "FIX"
},
{
"url": "https://go.googlesource.com/net/+/89ef3d95e781148a0951956029c92a211477f7f9",
"type": "FIX"
},
{
"url": "https://go.dev/issue/45710",
"type": "REPORT"
},
{
"url": "https://groups.google.com/g/golang-announce/c/cu9SP4eSXMc",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2022-0236",
"review_status": "REVIEWED"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | Go / package | stdlib | Not a distribution channel | 1.15.12 | Official record |
| ecosystem-boundary | Go / package | stdlib | Not a distribution channel | 1.16.4 | Official record |
| ecosystem-boundary | Go / package | golang.org/x/net | Not a distribution channel | 0.0.0-20210428140749-89ef3d95e781 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:37.080ZArchived source JSON
Source publication: 2022-05-24T19:03:29.000Z
Source modification: 2026-09-10T03:49:23.210ZDocument fingerprint
d85289dcf7894a7fab311c831399017440686686353d135825e7603131cd938e - OSVConsulted: 2026-11-19T12:52:37.080ZArchived source JSON
Source publication: 2022-07-15T23:04:18.000Z
Source modification: 2026-02-04T02:54:01.110ZDocument fingerprint
d85289dcf7894a7fab311c831399017440686686353d135825e7603131cd938e - OSVConsulted: 2026-11-19T12:52:39.236ZArchived source JSON
Source publication: 2022-07-15T23:04:18.000Z
Source modification: 2026-02-04T02:54:01.110ZDocument fingerprint
4ca7818b395ba1078372d8aa5d2c3c1d10796ecab94cc944cbdcb6a19ce4ed17 - FIRST EPSSConsulted: 2026-11-19T18:27:06.173ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
8b22e3d0bbbe22a3c52f8c688c42204480fc90c949431dad186ebe9ca81245a8 - CVE ProgramConsulted: 2026-11-19T12:55:57.846ZArchived source JSON
Source publication: 2021-05-27T12:17:11.000Z
Source modification: 2024-08-03T23:03:33.426ZDocument fingerprint
a1dbbb5efb7e18eecc52069c5555bae6769ed0b155f02418cc194e518fd194fc - CISA KEVConsulted: 2026-11-19T18:36:01.564ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56
Official status history
- UNKNOWN → PUBLISHED · · evidence