CVE-2023-39326: Denial of service via chunk extensions in net/http

Published Dec 6, 2023
·
Updated

A malicious HTTP sender can use chunk extensions to cause a receiver reading from a request or response body to read many more bytes from the network than are in the body. A malicious HTTP client can further exploit this to cause a server to automatically read a large amount of data (up to about 1GiB) when a handler fails to read the entire body of a request. Chunk extensions are a little-used HTTP feature which permit including additional metadata in a request or response body sent using the chunked encoding. The net/http chunked encoding reader discards this metadata. A sender can exploit this by inserting a large metadata segment with each byte transferred. The chunk reader now produces an error if the ratio of real body to encoded bytes grows too small.

Other sources

Denial of service via chunk extensions in net/http

Microsoft

Golang Go could allow a remote attacker to obtain sensitive information, caused by a flaw in the net/http package. By sending a specially crafted HTTP request, an attacker could exploit this vulnerability to read many more bytes from the network than are in the body, and use this information to launch further attacks against the affected system.

IBM

Affected Software

13 affected componentsFixes available
debian/golang-1.15<=1.15.15-1~deb11u4
debian/golang-1.19<=1.19.8-2
Golang Go<1.20.12
Golang Go>=1.21.0-0<1.21.5
IBM Concert Software<=1.0.0-1.0.5
redhat/golang<1.20.12
1.20.12
redhat/golang 1.21.0<0
0
redhat/golang<1.21.5
1.21.5
Microsoft cbl2 golang 1.21.5-1
Microsoft cbl2 golang 1.17.13-2
Microsoft cbl2 msft-golang 1.21.5-1
Microsoft cbl2 golang 1.21.6-1
Microsoft cbl2 golang 1.18.8-7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 1.20.12
  2. Upgrade

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

    Fixed in 0
  3. Upgrade

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

    Fixed in 1.21.5
  4. Configuration

    Upgrade to a Go version where the net/http chunked encoding reader discards chunk extension metadata and produces an error when the ratio of real body to encoded bytes grows too small (mitigates DoS via chunk extensions).

    Golang net/http chunked encoding reader Chunk extension metadata handling = Discard chunk extension metadata and enforce a failure when encoded-to-real body ratio grows too small

Event History

Dec 6, 2023
CVE Published
via MITRE·04:27 PM
Data Sourced
via MITRE·04:27 PM
DescriptionWeakness
Data Sourced
via Red Hat·08:47 PM
DescriptionSeverityAffected Software
Jan 28, 2024
Data Sourced
via Launchpad·12:29 AM
Description
Sep 16, 2024
Data Sourced
via Ubuntu·02:41 AM
RemedyDescriptionSeverityAffected Software
Sep 4, 2025
Data Sourced
via Microsoft·06:35 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·06:35 AM
Affected Software
Updated
via Microsoft·06:35 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-39326?

CVE-2023-39326 has been classified with a significant severity level due to its potential for denial of service through excessive data reading.

2

How do I fix CVE-2023-39326?

To mitigate CVE-2023-39326, upgrade to Go version 1.20.12 or later for Red Hat packages, or version 1.21.5 or later.

3

Which versions are affected by CVE-2023-39326?

CVE-2023-39326 affects Go versions up to 1.20.12 and versions before 1.21.0 for certain Red Hat packages.

4

What type of vulnerability is CVE-2023-39326?

CVE-2023-39326 is a denial of service vulnerability that can be exploited via malicious HTTP requests.

5

Can all Go versions be impacted by CVE-2023-39326?

No, only specific versions of Go, particularly those outlined in the affected software list, are impacted by CVE-2023-39326.

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