# CVE-2025-58186: Lack of limit when parsing cookies can cause memory exhaustion in net/http

- Severity: Medium 5.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.56%, higher than 48% of CVEs (2026-12-01)
- Published: 2025-10-29T21:50:05.000Z
- Modified: 2026-10-11T20:10:00.200Z
- Also known as: GO-2025-4012, BIT-GOLANG-2025-58186
- Related: CGA-px9r-m4wp-7xgh, RHSA-2026:7291, RHSA-2026:7385
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Go

## Description

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.

(As written by CVE List.)

## Affected

- net/http: before 1.24.8; from 1.25.0 before 1.25.2
- stdlib (Go): before 1.24.8; from 1.25.0 before 1.25.2
- golang (Bitnami): before 1.24.8; from 1.25.0 before 1.25.2

## Every score

- CISA-ADP: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://go.dev/issue/75672> (report, web)
- <https://go.dev/cl/709855> (fix, web)
- <https://groups.google.com/g/golang-announce/c/4Emdl2iQ_bI> (web)
- <https://pkg.go.dev/vuln/GO-2025-4012> (web)
- <http://www.openwall.com/lists/oss-security/2025/10/08/1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-58186> (web)

## Sources

- CVE List: [CVE-2025-58186](https://www.cve.org/CVERecord?id=CVE-2025-58186), CVE Terms of Use, modified 2025-11-04
- Go Vulnerability Database: [GO-2025-4012](https://pkg.go.dev/vuln/GO-2025-4012), CC-BY-4.0, modified 2026-05-15
- NVD: [CVE-2025-58186](https://nvd.nist.gov/vuln/detail/CVE-2025-58186), Public domain, modified 2026-10-11
- Bitnami Vulnerability Database: [BIT-GOLANG-2025-58186](https://osv.dev/vulnerability/BIT-GOLANG-2025-58186), Apache-2.0, modified 2025-11-06

---

Page: https://cve.day/CVE-2025-58186 · Whole record: https://cve.day/CVE-2025-58186.json · Rebuilt by cve.day 2026-11-25T22:59:07.017Z
