FlawAtlas
Search the atlas
UBUNTU-CVE-2023-45290 Moderate

UBUNTU-CVE-2023-45290

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.

Exploit probability Not scored
Published March 5, 2024
Required by Not available
Last source change May 20, 2026

02 / AFFECTED SOFTWARE

Affected packages

Ubuntu:14.04:LTS golang-1.10

1 explicit affected versions

Ubuntu:16.04:LTS golang-1.10

2 explicit affected versions

Ubuntu:16.04:LTS golang-1.6

10 explicit affected versions

Ubuntu:18.04:LTS golang-1.10

8 explicit affected versions

Ubuntu:18.04:LTS golang-1.8

2 explicit affected versions

Ubuntu:18.04:LTS golang-1.9

5 explicit affected versions

Ubuntu:20.04:LTS golang-1.13

10 explicit affected versions

Ubuntu:20.04:LTS golang-1.14

9 explicit affected versions

Ubuntu:20.04:LTS golang-1.18

2 explicit affected versions

Ubuntu:20.04:LTS golang-1.20

2 explicit affected versions

Ubuntu:20.04:LTS golang-1.21

2 explicit affected versions

Ubuntu:22.04:LTS golang-1.17

5 explicit affected versions

Ubuntu:22.04:LTS golang-1.18

7 explicit affected versions

Ubuntu:22.04:LTS golang-1.20

2 explicit affected versions

Ubuntu:22.04:LTS golang-1.21

2 explicit affected versions

Ubuntu:Pro:16.04:LTS golang-1.13

4 explicit affected versions

Ubuntu:Pro:16.04:LTS golang-1.18

1 explicit affected versions

Ubuntu:Pro:18.04:LTS golang-1.13

4 explicit affected versions

Ubuntu:Pro:18.04:LTS golang-1.16

2 explicit affected versions

Ubuntu:Pro:18.04:LTS golang-1.18

2 explicit affected versions

Ubuntu:Pro:20.04:LTS golang-1.16

3 explicit affected versions

Ubuntu:Pro:22.04:LTS golang-1.13

4 explicit affected versions

03 / CONNECTIONS

Connected vulnerabilities

04 / EVIDENCE

Source records

Open Source Vulnerabilities UBUNTU-CVE-2023-45290

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.

View original source

05 / REFERENCES

Further evidence