CVE-2025-58186
Lack of limit when parsing cookies can cause memory exhaustion in net/http
Despite HTTP headers having a default limit of 1MB, the number of cookies that can be parsed does 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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.565% · 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-19T17:59:58.648Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 5.3 · published by Ubuntu SecurityCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Assessment source · checked 2026-11-19T16:50:10.263Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:59:58.648Z | CISA KEV |
| cvss | verified | 2026-11-19T16:50:10.263Z | Ubuntu Security |
| epss | verified | 2026-11-19T16:04:41.864Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:39.236Z | OSV |
| affected | verified | 2026-11-19T12:57:40.673Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:57:40.673Z | CVE Program |
Affected versions and configuration
Go standard library net/http; default status: unaffected: 0 to < 1.24.8 [affected; scheme: semver]; 1.25.0 to < 1.25.2 [affected; scheme: semver]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
Ubuntu Security · ubuntu-package · full conditions
[
{
"name": "golang-1.23",
"debian": "https://tracker.debian.org/pkg/golang-1.23",
"source": "https://ubuntu.com/security/cve?package=golang-1.23",
"ubuntu": "https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=sourcenames&keywords=golang-1.23",
"statuses": [
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "ignored",
"component": null,
"description": "end of life, was needs-triage",
"release_codename": "plucky"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "resolute"
},
{
"pocket": "security",
"status": "ignored",
"component": null,
"description": "end of life, was needs-triage",
"release_codename": "questing"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "stonking"
}
]
}
]Archived source JSONUbuntu Security · ubuntu-package · full conditions
[
{
"name": "golang-1.22",
"debian": "https://tracker.debian.org/pkg/golang-1.22",
"source": "https://ubuntu.com/security/cve?package=golang-1.22",
"ubuntu": "https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=sourcenames&keywords=golang-1.22",
"statuses": [
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "focal"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "plucky"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "questing"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "resolute"
},
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "stonking"
}
]
}
]Archived source JSONCVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "Go standard library",
"product": "net/http",
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "1.24.8",
"versionType": "semver"
},
{
"status": "affected",
"version": "1.25.0",
"lessThan": "1.25.2",
"versionType": "semver"
}
],
"packageName": "net/http",
"collectionURL": "https://pkg.go.dev",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "ParseCookie"
},
{
"name": "readSetCookies"
},
{
"name": "readCookies"
},
{
"name": "Client.Do"
},
{
"name": "Client.Get"
},
{
"name": "Client.Head"
},
{
"name": "Client.Post"
},
{
"name": "Client.PostForm"
},
{
"name": "Get"
},
{
"name": "Head"
},
{
"name": "Post"
},
{
"name": "PostForm"
},
{
"name": "Request.Cookie"
},
{
"name": "Request.Cookies"
},
{
"name": "Request.CookiesNamed"
},
{
"name": "Response.Cookies"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"cvssV3_1": {
"scope": "UNCHANGED",
"version": "3.1",
"baseScore": 5.3,
"attackVector": "NETWORK",
"baseSeverity": "MEDIUM",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L",
"integrityImpact": "NONE",
"userInteraction": "NONE",
"attackComplexity": "LOW",
"availabilityImpact": "LOW",
"privilegesRequired": "NONE",
"confidentialityImpact": "NONE"
}
},
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2025-58186",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2025-10-30T14:24:44.763207Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2025-10-30T14:24:50.235Z"
}
},
{
"title": "CVE Program Container",
"references": [
{
"url": "http://www.openwall.com/lists/oss-security/2025/10/08/1"
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2025-11-04T21:13:35.468Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GO-2025-4012",
"aliases": [
"BIT-golang-2025-58186",
"CVE-2025-58186"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.24.8"
},
{
"introduced": "1.25.0"
},
{
"fixed": "1.25.2"
}
]
}
],
"package": {
"name": "stdlib",
"purl": "pkg:golang/stdlib",
"ecosystem": "Go"
},
"versions": [],
"database_specific": {
"source": "https://vuln.go.dev/ID/GO-2025-4012.json"
},
"ecosystem_specific": {
"imports": [
{
"path": "net/http",
"symbols": [
"Client.Do",
"Client.Get",
"Client.Head",
"Client.Post",
"Client.PostForm",
"Get",
"Head",
"ParseCookie",
"Post",
"PostForm",
"Request.Cookie",
"Request.Cookies",
"Request.CookiesNamed",
"Response.Cookies",
"readCookies",
"readSetCookies"
]
}
]
}
}
],
"severity": [],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://go.dev/issue/75672",
"type": "REPORT"
},
{
"url": "https://go.dev/cl/709855",
"type": "FIX"
},
{
"url": "https://groups.google.com/g/golang-announce/c/4Emdl2iQ_bI",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2025-4012",
"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.24.8 | Official record |
| ecosystem-boundary | Go / package | stdlib | Not a distribution channel | 1.25.2 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- Ubuntu SecurityConsulted: 2026-11-19T16:50:10.263ZArchived source JSON
Source publication: 2025-10-29T23:16:00.000Z
Source modification: 2026-11-17T07:27:03.894ZDocument fingerprint
51405bd312f65a87f8fa6d08f996f5507057d614d552825ca91c1d0ea4e0d34a - CVE ProgramConsulted: 2026-11-19T12:57:40.673ZArchived source JSON
Source publication: 2025-10-29T22:10:13.912Z
Source modification: 2025-11-04T21:13:35.468ZDocument fingerprint
1345a4eee76d1c56772655157f5274dadbdb8e6f4c4a57a5d5145c9d40ca3842 - Ubuntu SecurityConsulted: 2026-11-19T16:51:31.838ZArchived source JSON
Source publication: 2025-10-29T23:16:00.000Z
Source modification: 2026-11-17T07:27:03.894ZDocument fingerprint
b8b104a73e99754ea590187dbeed67c7a677e5e1c66a9f67fdc9033003cd21e2 - CISA KEVConsulted: 2026-11-19T17:59:58.648ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - OSVConsulted: 2026-11-19T12:52:39.236ZArchived source JSON
Source publication: 2025-10-29T21:50:05.000Z
Source modification: 2026-05-15T10:59:23.250ZDocument fingerprint
4ca7818b395ba1078372d8aa5d2c3c1d10796ecab94cc944cbdcb6a19ce4ed17 - FIRST EPSSConsulted: 2026-11-19T16:04:41.864ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
09df03f9e4ac0890671b481adc15352105826dd59b4f13294f3708bead65ab2a
Official status history
- UNKNOWN → PUBLISHED · · evidence