CVE-2023-45290
golang: net/http: golang: mime/multipart: golang: net/textproto: memory exhaustion in Request.ParseMultipartForm
Overview
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.
Source: OX vulnerability database
Severity
6.5 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness: CWE-770
Affected packages · 2
Operating systems · 852 fixes
Oracle Linux 2 releases · 23 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | udica | 0.2.6-21.module+el8.10.0+90416+5b0f6a17 |
| 8 | fuse-overlayfs | 1.13-1.module+el8.10.0+90416+5b0f6a17 |
| 8 | crun | 1.14.3-2.module+el8.10.0+90416+5b0f6a17 |
| 8 | oci-seccomp-bpf-hook | 1.2.10-1.module+el8.10.0+90416+5b0f6a17 |
| 8 | slirp4netns | 1.2.3-1.module+el8.10.0+90416+5b0f6a17 |
| 8 | delve | 1.21.2-3.0.1.module+el8.10.0+90307+cdf2b281 |
22 more rows
Photon OS 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 5.0 | go | 1.26.3-1.ph5 |
Red Hat 7 releases · 36 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| golang +10 | eol | — | |
| 7 | butane +7 | affected | — |
| 7 | rhc-worker-script | 0:0.9-5.el7_9 | RHSA-2024:4893 |
| 8 | etcd +20 | wont fix | — |
| 8 | butane +1 | 0:0.21.0-1.rhaos4.16.el8 | RHSA-2024:0045 |
| 8 | cri-o | 0:1.25.5-25.rhaos4.12.git6556f50.el8 | RHSA-2024:5202 |
127 more rows
SUSE Linux Enterprise 4 releases · 4 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | go1-21 +1 | 1.21.8-1.27.1 | SUSE-SU-2024:0800-1 |
| 12.5 | go1-22 +1 | 1.22.1-1.3.1 | SUSE-SU-2024:0936-1 |
| 15.4 | go1-21-openssl +2 | 1.21.13.1-150000.1.11.1 | SUSE-SU-2024:3089-1 |
| 15.4 | go1-21 +2 | 1.21.8-150000.1.27.1 | SUSE-SU-2024:0811-1 |
| 15.5 | go1-21-openssl +2 | 1.21.13.1-150000.1.11.1 | SUSE-SU-2024:3089-1 |
| 15.5 | go1-21 +2 | 1.21.8-150000.1.27.1 | SUSE-SU-2024:0811-1 |
4 more rows
alma 4 releases · 32 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | git-lfs | 3.4.1-2.el8_10 |
| 8 (container-tools:rhel8) | toolbox | 0.0.99.5-2.module_el8.10.0+3845+87b84552 |
| 8 (container-tools:rhel8) | toolbox-tests | 0.0.99.5-2.module_el8.10.0+3901+4b80ecd7 |
| 8 (container-tools:rhel8) | udica | 0.2.6-21.module_el8.10.0+3876+e55593a8 |
| 8 (container-tools:rhel8) | fuse-overlayfs | 1.13-1.module_el8.10.0+3792+03eaed9c |
| 8 (container-tools:rhel8) | crun | 1.14.3-2.module_el8.10.0+3876+e55593a8 |
32 more rows
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | go | 1.22.1-r0 |
| 3.23 | go | 1.22.1-r0 |
| 3.24 | go | 1.22.1-r0 |
| edge | go | 1.22.1-r0 |
amazon linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 2023 | golang +6 | 1.22.3-1.amzn2023.0.1 |
chainguard 1 release · 275 packages
| Release | Package | Fixed in |
|---|---|---|
| go-1-20 | not affected | |
| pombump | 0.0.11-r1 | |
| stakater-reloader-0-0-119 | 0.0.119-r5 | |
| stakater-reloader-0-0-128 | 0.0.128-r4 | |
| yam | 0.0.2-r1 | |
| gke-gcloud-auth-plugin | 0.0.2-r7 |
269 more rows
debian 3 releases · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 10 | golang-1-11 | affected |
| 11 | golang-1-15 | affected |
| 12 | golang-1-19 | affected |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| golang-1-19 | affected |
minimos 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| solr-operator-0-8 | 0.8.1-r1 | |
| trigger-dev | 4.5.11-r1 |
openSUSE 1 release · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | go1-21 +3 | 1.21.8-1.1 | openSUSE-SU-2024:13756-1 |
| Tumbleweed | go1-22 +3 | 1.22.1-1.1 | openSUSE-SU-2024:13752-1 |
rocky 4 releases · 24 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | git-lfs | 3.4.1-2.el8_10 |
| 8 (container-tools:rhel8) | toolbox +1 | 0.0.99.5-2.module+el8.10.0+1815+5fe7415e.rocky.0.2.rocky.0.2 |
| 8 (container-tools:rhel8) | toolbox +1 | 0.0.99.5-2.module+el8.10.0+1825+623b0c20.rocky.0.2 |
| 8 (container-tools:rhel8) | toolbox +1 | 0.0.99.5-2.module+el8.10.0+1829+9bb2696f.rocky.0.2 |
| 8 (container-tools:rhel8) | toolbox +1 | 0.0.99.5-2.module+el8.10.0+1843+6892ab28.rocky.0.2 |
| 8 (container-tools:rhel8) | toolbox +1 | 0.0.99.5-2.module+el8.10.0+1872+2e18eb19.rocky.0.2 |
135 more rows
root.io debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-golang-1-19 | affected |
seal Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | python-jinja2 +1 | 2.7.2-4.el7+sp999 |
ubuntu 4 releases · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | golang-1-18 | 1.18.1-1ubuntu1~18.04.4+esm1 |
| 20.04 | golang-1-18 | 1.18.1-1ubuntu1~20.04.3 |
| 20.04 | golang-1-21 | 1.21.1-1~ubuntu20.04.3 |
| 20.04-ESM | golang-1-18 | 1.18.1-1ubuntu1~20.04.3 |
| 20.04-ESM | golang-1-21 | 1.21.1-1~ubuntu20.04.3 |
| 22.04 | golang-1-17 | 1.17.13-3ubuntu1.3 |
2 more rows
wolfi 1 release · 203 packages
| Release | Package | Fixed in |
|---|---|---|
| go-1-20 | not affected | |
| pombump | 0.0.11-r1 | |
| yam | 0.0.2-r1 | |
| gke-gcloud-auth-plugin | 0.0.2-r7 | |
| wireguard-go | 0.0.20230223-r8 | |
| local-path-provisioner | 0.0.26-r3 |
197 more rows
References
- www.openwall.com http://www.openwall.com/lists/oss-security/2024/03/08/4
- access.redhat.com https://access.redhat.com/errata/RHSA-2024:8038
- access.redhat.com https://access.redhat.com/errata/RHSA-2024:9135
- access.redhat.com https://access.redhat.com/security/cve/CVE-2023-45290
- bugzilla.redhat.com https://bugzilla.redhat.com/2268017
- bugzilla.redhat.com https://bugzilla.redhat.com/2268022
- bugzilla.redhat.com https://bugzilla.redhat.com/2279814
- bugzilla.redhat.com https://bugzilla.redhat.com/2295310
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2268017
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2310527
Show all 35 references
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2310528
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2310529
- creativecommons.org https://creativecommons.org/licenses/by/4.0/
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-45290
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-34155
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-34156
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-34158
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2024-9135.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2024:8038
- github.com https://github.com/golang/go/commit/041a47712e765e94f86d841c3110c840e76d8f82 (go1.22.1)
- github.com https://github.com/golang/go/commit/bf80213b121074f4ad9b449410a4d13bae5e9be0 (go1.21.8)
- github.com https://github.com/golang/go/issues/65383
- go.dev https://go.dev/cl/569341
- go.dev https://go.dev/issue/65383
- groups.google.com https://groups.google.com/g/golang-announce/c/5pwGVUPoMbg
- linux.oracle.com https://linux.oracle.com/cve/CVE-2023-45290.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2024-8038.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2023-45290
- pkg.go.dev https://pkg.go.dev/vuln/GO-2024-2599
- security.netapp.com https://security.netapp.com/advisory/ntap-20240329-0004
- security.netapp.com https://security.netapp.com/advisory/ntap-20240329-0004/
- ubuntu.com https://ubuntu.com/security/notices/USN-6886-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7109-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7111-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2023-45290
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.