# CVE-2023-45290: Memory exhaustion in multipart form parsing in net/textproto and net/http

- Severity: Medium 6.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- 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): 1.16%, higher than 67% of CVEs (2026-12-01)
- Published: 2024-03-05T22:15:00.000Z
- Modified: 2026-06-17T06:28:36.013Z
- Also known as: GO-2024-2599, BIT-GOLANG-2023-45290
- Related: CGA-5mf6-fhc2-jwpm, RHSA-2024:0045, RHSA-2024:2562, RHSA-2024:2724, RHSA-2024:3259, RHSA-2024:3346, RHSA-2024:3781, RHSA-2024:3826, RHSA-2024:3827, RHSA-2024:3830, RHSA-2024:3831, RHSA-2024:4023, RHSA-2024:4893, RHSA-2024:5075, RHSA-2024:5077, RHSA-2024:5202, RHSA-2024:5258, RHSA-2024:5436, RHSA-2024:5442, RHSA-2024:5446, RHSA-2024:5810, RHSA-2024:6969, RHSA-2024:8038, RHSA-2024:9135
- Weaknesses: CWE-400, CWE-770
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Go

## Description

When parsing a multipart form (either explicitly with Request.ParseMultipartForm or implicitly with Request.FormValue, Request.PostFormValue, or Request.FormFile), limits on the total size of the parsed form were not applied to the memory consumed while reading a single form line. This permits a maliciously crafted input containing very long lines to cause allocation of arbitrarily large amounts of memory, potentially leading to memory exhaustion. With fix, the ParseMultipartForm function now correctly limits the maximum size of form lines.

(As written by CVE List.)

## Affected

- net/textproto: before 1.21.8; from 1.22.0-0 before 1.22.1
- stdlib (Go): before 1.21.8; from 1.22.0-0 before 1.22.1
- golang (Bitnami): before 1.21.8; from 1.22.0-0 before 1.22.1

## Every score

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

## References

- <https://go.dev/issue/65383> (report, web)
- <https://go.dev/cl/569341> (fix, web)
- <https://groups.google.com/g/golang-announce/c/5pwGVUPoMbg> (web)
- <https://pkg.go.dev/vuln/GO-2024-2599> (web)
- <https://security.netapp.com/advisory/ntap-20240329-0004/> (web)
- <http://www.openwall.com/lists/oss-security/2024/03/08/4> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-45290> (web)

## Sources

- CVE List: [CVE-2023-45290](https://www.cve.org/CVERecord?id=CVE-2023-45290), CVE Terms of Use, modified 2025-02-13
- Go Vulnerability Database: [GO-2024-2599](https://pkg.go.dev/vuln/GO-2024-2599), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2023-45290](https://nvd.nist.gov/vuln/detail/CVE-2023-45290), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GOLANG-2023-45290](https://osv.dev/vulnerability/BIT-GOLANG-2023-45290), Apache-2.0, modified 2026-01-28

---

Page: https://cve.day/CVE-2023-45290 · Whole record: https://cve.day/CVE-2023-45290.json · Rebuilt by cve.day 2026-11-25T22:58:33.267Z
