CVE-2023-45290: Memory exhaustion in multipart form parsing in net/textproto and net/http

Published Mar 5, 2024
·
Updated

Last updated 14 November 2024

Other sources

Memory exhaustion in multipart form parsing in net/textproto and net/http

Microsoft

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.

Launchpad

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 permitted a maliciously crafted input containing very long lines to cause allocation of arbitrarily large amounts of memory, potentially leading to memory exhaustion.

ParseMultipartForm now correctly limits the maximum size of form lines.

https://github.com/golang/go/issues/65383

Red Hat

Affected Software

8 affected componentsFixes available
debian/golang-1.15<=1.15.15-1~deb11u4
debian/golang-1.19<=1.19.8-2
IBM Concert Software<=1.0.0-1.1.0
redhat/go<1.21.8
1.21.8
redhat/go<1.22.1
1.22.1
Microsoft cbl2 golang 1.18.8-7
Microsoft cbl2 golang 1.17.13-2
Microsoft cbl2 golang 1.21.6-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 1.21.8
  2. Upgrade

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

    Fixed in 1.22.1

Event History

Mar 5, 2024
CVE Published
via MITRE·10:22 PM
Data Sourced
via MITRE·10:22 PM
DescriptionWeakness
Data Sourced
via NVD·11:15 PM
DescriptionSeverityWeakness
Mar 6, 2024
Data Sourced
via Red Hat·01:50 AM
DescriptionSeverityAffected Software
Jul 9, 2024
Data Sourced
via Launchpad·03:35 PM
Description
Nov 15, 2024
Data Sourced
via Ubuntu·01:21 PM
RemedyDescriptionSeverityAffected Software
Aug 18, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Sep 4, 2025
Data Sourced
via Microsoft·07:08 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:08 AM
Affected Software
Updated
via Microsoft·07:08 AM
Description
Updated
via Microsoft·07:08 AM
DescriptionSeverity

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2023-45290?

CVE-2023-45290 has a high severity level due to its ability to cause denial of service through arbitrary memory allocation.

2

How do I fix CVE-2023-45290?

To fix CVE-2023-45290, update to Go version 1.21.8 or later, or 1.22.1 or later, depending on your package source.

3

What software is affected by CVE-2023-45290?

CVE-2023-45290 affects several versions of IBM Concert Software and various versions of Go packages, including golang-1.15, golang-1.19, and golang-1.22.

4

What could an attacker achieve by exploiting CVE-2023-45290?

An attacker exploiting CVE-2023-45290 could create a denial of service by sending specially crafted input to allocate large amounts of memory.

5

Is CVE-2023-45290 a remote code execution vulnerability?

No, CVE-2023-45290 is not a remote code execution vulnerability; it leads to denial of service instead.

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