CVE-2023-24536

Summary

CVECVE-2023-24536
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2023-04-06 16:15:00 UTC
Updated2023-11-25 11:15:00 UTC
DescriptionMultipart 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=.

Risk And Classification

Problem Types: CWE-770

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Golang Go All All All All

References

ReferenceSourceLinkTags
Go: Multiple Vulnerabilities (GLSA 202311-09) — Gentoo security security.gentoo.org
go.dev/cl/482076 MISC go.dev
April 2023 Golang Vulnerabilities in NetApp Products | NetApp Product Security MISC security.netapp.com
go.dev/cl/482077 MISC go.dev
[security] Go 1.20.3 and Go 1.19.8 are released MISC groups.google.com
go.dev/cl/482075 MISC go.dev
GO-2023-1705 - Go Packages MISC pkg.go.dev
net/http, net/textproto, mime/multipart: denial of service from excessive resource consumption (CVE-2023-24536) · Issue #59153 · golang/go · GitHub MISC go.dev
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 161061 Oracle Enterprise Linux Security Update for skopeo (ELSA-2023-6363)
  • 161062 Oracle Enterprise Linux Security Update for containernetworking-plugins (ELSA-2023-6402)
  • 161063 Oracle Enterprise Linux Security Update for podman (ELSA-2023-6474)
  • 161105 Oracle Enterprise Linux Security Update for buildah (ELSA-2023-6473)
  • 161175 Oracle Enterprise Linux Security Update for container-tools:ol8 (ELSA-2023-6939)
  • 161187 Oracle Enterprise Linux Security Update for container-tools:4.0 (ELSA-2023-6938)
  • 241582 Red Hat Update for OpenStack Platform 16.2 (RHSA-2023:3445)
  • 241715 Red Hat OpenShift Container Platform 4.13 Security Update (RHSA-2023:3540)
  • 241745 Red Hat OpenShift Container Platform 4.13 Security Update (RHSA-2023:3612)
  • 241856 Red Hat OpenShift Container Platform 4.13 Security Update (RHSA-2023:4093)
  • 242287 Red Hat Update for buildah (RHSA-2023:6473)
  • 242288 Red Hat Update for toolbox (RHSA-2023:6346)
  • 242299 Red Hat Update for containernetworking-plugins (RHSA-2023:6402)
  • 242319 Red Hat Update for skopeo (RHSA-2023:6363)
  • 242335 Red Hat Update for podman security (RHSA-2023:6474)
  • 242365 Red Hat Update for OpenStack Platform 16.2.5 (RHSA-2023:5964)
  • 242415 Red Hat Update for container-tools:rhel8 (RHSA-2023:6939)
  • 242458 Red Hat Update for container-tools:4.0 (RHSA-2023:6938)
  • 354890 Amazon Linux Security Advisory for golang : ALAS2-2023-2015
  • 354901 Amazon Linux Security Advisory for golang : ALAS-2023-1731
  • 355216 Amazon Linux Security Advisory for golang : ALAS2023-2023-175
  • 355697 Amazon Linux Security Advisory for golang : ALAS2-2023-2163
  • 355797 Amazon Linux Security Advisory for containerd : ALAS2NITRO-ENCLAVES-2023-026
  • 355837 Amazon Linux Security Advisory for containerd : ALAS2DOCKER-2023-029
  • 356180 Amazon Linux Security Advisory for golang : ALASGOLANG1.19-2023-001
  • 356503 Amazon Linux Security Advisory for golang : ALAS2GOLANG1.19-2023-001
  • 379641 Alibaba Cloud Linux Security Update for container-tools:rhel8 (ALINUX3-SA-2024:0050)
  • 502863 Alpine Linux Security Update for go
  • 503188 Alpine Linux Security Update for go
  • 506081 Alpine Linux Security Update for go
  • 673210 EulerOS Security Update for golang (EulerOS-SA-2023-2382)
  • 673238 EulerOS Security Update for golang (EulerOS-SA-2023-2356)
  • 673548 EulerOS Security Update for golang (EulerOS-SA-2023-2644)
  • 673694 EulerOS Security Update for golang (EulerOS-SA-2023-2686)
  • 691117 Free Berkeley Software Distribution (FreeBSD) Security Update for go (348ee234-d541-11ed-ad86-a134a566f1e6)
  • 710791 Gentoo Linux Go Multiple Vulnerabilities (GLSA 202311-09)
  • 753895 SUSE Enterprise Linux Security Update for go1.19 (SUSE-SU-2023:1792-1)
  • 753976 SUSE Enterprise Linux Security Update for go1.19 (SUSE-SU-2023:2127-1)
  • 753977 SUSE Enterprise Linux Security Update for go1.20 (SUSE-SU-2023:2105-2)
  • 770195 Red Hat OpenShift Container Platform 4.13 Security Update (RHSA-2023:3612)
  • 770200 Red Hat OpenShift Container Platform 4.13 Security Update (RHSA-2023:4093)
  • 907884 Common Base Linux Mariner (CBL-Mariner) Security Update for msft-golang (26028-1)
  • 908056 Common Base Linux Mariner (CBL-Mariner) Security Update for golang (37431-1)
  • 941383 AlmaLinux Security Update for containernetworking-plugins (ALSA-2023:6402)
  • 941386 AlmaLinux Security Update for buildah (ALSA-2023:6473)
  • 941391 AlmaLinux Security Update for toolbox (ALSA-2023:6346)
  • 941399 AlmaLinux Security Update for podman (ALSA-2023:6474)
  • 941405 AlmaLinux Security Update for skopeo (ALSA-2023:6363)
  • 941444 AlmaLinux Security Update for container-tools:4.0 (ALSA-2023:6938)
  • 941481 AlmaLinux Security Update for container-tools:rhel8 (ALSA-2023:6939)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report