CVE-2023-24536: Excessive resource consumption in net/http, net/textproto and mime/multipart

Published Apr 4, 2023
·
Updated

Excessive resource consumption in net/http, net/textproto and mime/multipart

Other sources

Golang Go is vulnerable to a denial of service, caused by a flaw during multipart form parsing. By sending a specially crafted input, a remote attacker could exploit this vulnerability to consume large amounts of CPU and memory, and results in a denial of service condition.

IBM

Multipart form parsing can consume large amounts of CPU and memory whe ...

Debian

Affected Software

11 affected componentsFixes available
Golang Go<1.19.8
Golang Go>=1.20.0<1.20.3
debian/golang-1.15<=1.15.15-1~deb11u4
debian/golang-1.19
1.19.8-2
IBM Concert Software<=1.0.0 - 1.0.1
redhat/golang<1.20.3
1.20.3
redhat/golang<1.19.8
1.19.8
Microsoft cbl2 golang 1.17.13-2
Microsoft cbl2 golang 1.18.8-7
Microsoft cbl2 msft-golang 1.20.7-1<1.20.7-1
1.20.7-1
Microsoft cbl2 golang 1.21.6-1<1.21.6-1
1.21.6-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/golang-1.19 to a version that resolves this vulnerability.

    Fixed in 1.19.8-2
  2. Upgrade

    Upgrade redhat/golang to a version that resolves this vulnerability.

    Fixed in 1.20.3
  3. Upgrade

    Upgrade redhat/golang to a version that resolves this vulnerability.

    Fixed in 1.19.8
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.21.6-1
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.20.7-1
  6. Upgrade

    Upgrade golang/go/mime/multipart.Reader (ReadForm) to a version that resolves this vulnerability.

    Patch https://github.com/golang/go/issues/59153
  7. Upgrade

    Upgrade golang/go/mime/multipart.Reader (ReadForm) to a version that resolves this vulnerability.

    Patch https://github.com/golang/go/issues/59270
  8. Configuration

    Limit multipart form parsing header-field count by setting environment variable GODEBUG=multipartmaxheaders= to enforce the vendor-stated maximum of 10,000 header fields for forms parsed with NextPart/NextRawPart.

    Go mime/multipart.Reader (ReadForm / multipart form parsing) GODEBUG=multipartmaxheaders = Set/adjust to a value that limits the maximum number of header fields per form part (up to 10,000)
  9. Configuration

    Limit multipart form parsing part count by setting environment variable GODEBUG=multipartmaxparts= to enforce the vendor-stated maximum of 1000 parts for forms parsed with ReadForm.

    Go net/http Request form parsing (ReadForm / ParseMultipartForm / PostFormValue / FormFile / FormValue) GODEBUG=multipartmaxparts = Set/adjust to a value that limits the maximum number of parts (up to 1000)

Event History

Apr 4, 2023
Data Sourced
via Red Hat·08:23 PM
DescriptionSeverityAffected Software
Apr 6, 2023
CVE Published
via MITRE·03:50 PM
Data Sourced
via MITRE·03:50 PM
DescriptionWeakness
Oct 21, 2024
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Nov 14, 2024
Data Sourced
via Ubuntu·03:00 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Launchpad·03:01 PM
Description
Sep 4, 2025
Data Sourced
via Microsoft·06:51 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·06:51 AM
Affected Software
Updated
via Microsoft·06:51 AM
DescriptionSeverity

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is CVE-2023-24536?

CVE-2023-24536 is a vulnerability that allows for consuming large amounts of CPU and memory during multipart form parsing.

2

What is the severity of CVE-2023-24536?

CVE-2023-24536 has a severity rating of 7.5 (High).

3

How does CVE-2023-24536 affect the affected software?

CVE-2023-24536 affects the affected software by causing excessive consumption of CPU and memory when processing multipart form inputs with a large number of parts.

4

How can I fix CVE-2023-24536?

To fix CVE-2023-24536, update the affected software to version 1.20.3 (for Red Hat's golang package) or version 1.19.8 (for Golang Go).

5

Where can I find more information about CVE-2023-24536?

You can find more information about CVE-2023-24536 at the following references: [Reference 1](https://go.dev/cl/482075), [Reference 2](https://go.dev/cl/482076), [Reference 3](https://go.dev/cl/482077).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203