Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2023-24536

golang: net/http, net/textproto, mime/multipart: denial of service from excessive resource consumption

Overview

Published
6 Apr 2023
Modified
17 Jun 2026
High CVE
2 Registry packages
119 OS packages
15 Linux distributions
Yes Fix available

Description

Multipart form parsing can consume large amounts of CPU and memory when processing form inputs containing very large numbers of parts. This stems from several causes: 1. mime/multipart.Reader.ReadForm limits the total memory a parsed multipart form can consume. ReadForm can undercount the amount of memory consumed, leading it to accept larger inputs than intended. 2. Limiting total memory does not account for increased pressure on the garbage collector from large numbers of small allocations in forms with many parts. 3. ReadForm can allocate a large number of short-lived buffers, further increasing pressure on the garbage collector. The combination of these factors can permit an attacker to cause an program that parses multipart forms to consume large amounts of CPU and memory, potentially resulting in a denial of service. This affects programs that use mime/multipart.Reader.ReadForm, as well as form parsing in the net/http package with the Request methods FormFile, FormValue, ParseMultipartForm, and PostFormValue. With fix, ReadForm now does a better job of estimating the memory consumption of parsed forms, and performs many fewer short-lived allocations. In addition, the fixed mime/multipart.Reader imposes the following limits on the size of parsed forms: 1. Forms parsed with ReadForm may contain no more than 1000 parts. This limit may be adjusted with the environment variable GODEBUG=multipartmaxparts=. 2. Form parts parsed with NextPart and NextRawPart may contain no more than 10,000 header fields. In addition, forms parsed with ReadForm may contain no more than 10,000 header fields across all parts. This limit may be adjusted with the environment variable GODEBUG=multipartmaxheaders=.

Source: OX vulnerability database

Severity

7.5 · HIGH

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Weakness: CWE-770

Affected packages · 2

Packages affected by CVE-2023-24536
EcosystemPackageVulnerableFixed in
Bitnami golang <1.19.8>=1.20.0, <1.20.3 1.19.81.20.3
Go stdlib <1.19.8>=1.20.0-0, <1.20.3 1.19.81.20.3

Open a package to see all its vulnerabilities.

Operating systems · 194 fixes

Oracle Linux 2 releases · 18 packages

fixed 22
udica fuse-overlayfs slirp4netns oci-seccomp-bpf-hook crun runc +12
Oracle Linux fixes for CVE-2023-24536
ReleasePackageFixed in
8 udica 0.2.6-20.module+el8.9.0+90021+ce997450
8 fuse-overlayfs 1.12-1.module+el8.9.0+90021+ce997450
8 slirp4netns 1.2.1-1.module+el8.9.0+90021+ce997450
8 oci-seccomp-bpf-hook 1.2.9-1.module+el8.9.0+90021+ce997450
8 crun 1.8.7-1.module+el8.9.0+90021+ce997450
8 runc 1:1.1.9-1.module+el8.9.0+90021+ce997450

16 more rows

Photon OS 2 releases · 4 packages

fixed 7
pmd-ng falco kubernetes-dashboard go
Photon OS fixes for CVE-2023-24536
ReleasePackageFixed in
4.0 pmd-ng 0.1-2.ph4
4.0 falco +1 0.35.0-4.0510183001.ph4
4.0 kubernetes-dashboard 2.7.0-1.ph4
5.0 pmd-ng 0.1-3.ph5
5.0 falco 0.32.2-6.0601037001.ph5
5.0 go 1.26.3-1.ph5

1 more row

Red Hat 8 releases · 33 packages

eol 2 wont fix 5 fixed 71
heketi go-toolset-7-golang golang buildah git-lfs containernetworking-plugins +27
Red Hat fixes for CVE-2023-24536
ReleasePackageFixed inAdvisory
heketi +2 eol —
go-toolset-7-golang +9 wont fix —
7 golang +2 eol —
7 buildah +10 wont fix —
8 git-lfs +5 wont fix —
8 containernetworking-plugins 0:1.0.1-7.rhaos4.13.el8 RHSA-2023:3612

72 more rows

SUSE Linux Enterprise 1 release · 2 packages

fixed 2
go1-19 go1-20
SUSE Linux Enterprise fixes for CVE-2023-24536
ReleasePackageFixed inAdvisory
15.4 go1-19 +2 1.19.8-150000.1.26.1 SUSE-SU-2023:1792-1
15.4 go1-20 +2 1.20.3-150000.1.8.1 SUSE-SU-2023:1791-1

alma 3 releases · 20 packages

fixed 44
toolbox udica slirp4netns oci-seccomp-bpf-hook crun fuse-overlayfs +14
alma fixes for CVE-2023-24536
ReleasePackageFixed in
8 (container-tools:4.0) toolbox +1 0.0.99.4-5.module_el8.9.0+3627+db8ec155
8 (container-tools:4.0) udica 0.2.6-4.module_el8.9.0+3627+db8ec155
8 (container-tools:4.0) slirp4netns 1.1.8-3.module_el8.9.0+3627+db8ec155
8 (container-tools:4.0) oci-seccomp-bpf-hook 1.2.5-2.module_el8.8.0+3468+16b86c82
8 (container-tools:4.0) crun 1.8.3-1.module_el8.9.0+3627+db8ec155
8 (container-tools:4.0) fuse-overlayfs 1.9-2.module_el8.9.0+3627+db8ec155

38 more rows

alpine 4 releases · 1 package

fixed 4
go
alpine fixes for CVE-2023-24536
ReleasePackageFixed in
3.22 go 1.20.3-r0
3.23 go 1.20.3-r0
3.24 go 1.20.3-r0
edge go 1.20.3-r0

amazon linux 1 release · 1 package

fixed 1
golang
amazon linux fixes for CVE-2023-24536
ReleasePackageFixed in
2023 golang +7 1.19.8-1.amzn2023.0.1

chainguard 1 release · 2 packages

fixed 2
kubeflow-katib go-1-20
chainguard fixes for CVE-2023-24536
ReleasePackageFixed in
kubeflow-katib 0.19.0-r40
go-1-20 1.20.3-r1

debian 3 releases · 3 packages

affected 2 fixed 1
golang-1-11 golang-1-15 golang-1-19
debian fixes for CVE-2023-24536
ReleasePackageFixed in
10 golang-1-11 affected
11 golang-1-15 affected
12 golang-1-19 1.19.8-2

echo 1 release · 1 package

fixed 1
golang-1-19
echo fixes for CVE-2023-24536
ReleasePackageFixed in
golang-1-19 1.19.8-2

openSUSE 1 release · 2 packages

fixed 2
go1-19 go1-20
openSUSE fixes for CVE-2023-24536
ReleasePackageFixed inAdvisory
Tumbleweed go1-19 +2 1.19.8-1.1 openSUSE-SU-2024:12845-1
Tumbleweed go1-20 +3 1.20.3-1.1 openSUSE-SU-2024:12841-1

rocky 1 release · 17 packages

fixed 17
udica slirp4netns oci-seccomp-bpf-hook crun fuse-overlayfs containernetworking-plugins +11
rocky fixes for CVE-2023-24536
ReleasePackageFixed in
8 (container-tools:4.0) udica 0.2.6-4.module+el8.9.0+1445+07728297
8 (container-tools:4.0) slirp4netns 1.1.8-3.module+el8.9.0+1445+07728297
8 (container-tools:4.0) oci-seccomp-bpf-hook 1.2.5-2.module+el8.9.0+1445+07728297
8 (container-tools:4.0) crun 1.8.3-1.module+el8.9.0+1445+07728297
8 (container-tools:4.0) fuse-overlayfs 1.9-2.module+el8.9.0+1445+07728297
8 (container-tools:4.0) containernetworking-plugins 1:1.1.1-5.module+el8.9.0+1445+07728297

11 more rows

root.io debian 1 release · 1 package

fixed 1
rootio-golang-1-19
root.io debian fixes for CVE-2023-24536
ReleasePackageFixed in
12 rootio-golang-1-19 1.19.8-2

ubuntu 4 releases · 4 packages

affected 3 fixed 5
golang-1-10 golang-1-18 golang-1-13 golang-1-17
ubuntu fixes for CVE-2023-24536
ReleasePackageFixed in
18.04-ESM golang-1-10 +4 affected
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-ESM golang-1-13 +2 affected
20.04-ESM golang-1-18 1.18.1-1ubuntu1~20.04.3
22.04 golang-1-13 affected

2 more rows

wolfi 1 release · 2 packages

fixed 2
kubeflow-katib go-1-20
wolfi fixes for CVE-2023-24536
ReleasePackageFixed in
kubeflow-katib 0.19.0-r40
go-1-20 1.20.3-r1

References

Show all 69 references

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.