CVE-2023-39326
JSON

5.3medium

Denial of service via chunk extensions in net/http

Severity
5.3medium CVSS:3.1 by NVD
Exploit likelihood
1.21% (higher than 69% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Go
Also known as
GO-2023-2382BIT-GOLANG-2023-39326

Description

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.

Affected

Product or packageVersionsReported by
net/http/internalbefore 1.20.12, from 1.21.0-0 before 1.21.5CVE List
stdlib (Go)before 1.20.12, from 1.21.0-0 before 1.21.5Go Vulnerability Database
golang gobefore 1.20.12, from 1.21.0-0 before 1.21.5NVD
golang (Bitnami)before 1.20.12, from 1.21.0-0 before 1.21.5Bitnami Vulnerability Database

All scores

NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Bitnami Vulnerability Databasemedium rating

Classification

What each source says

CVE List

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.

NVD (es)

Un remitente HTTP malicioso puede usar extensiones de fragmentos para hacer que un receptor que lea el cuerpo de una solicitud o respuesta lea muchos más bytes de la red que los que hay en el cuerpo. Un cliente HTTP malicioso puede aprovechar esto aún más para hacer que un servidor lea automáticamente una gran cantidad de datos (hasta aproximadamente 1 GiB) cuando un controlador no puede leer el cuerpo completo de una solicitud. Las extensiones fragmentadas son una característica HTTP poco utilizada que permite incluir metadatos adicionales en el cuerpo de una solicitud o respuesta enviada utilizando la codificación fragmentada. El lector de codificación fragmentada net/http descarta estos metadatos. Un remitente puede aprovechar esto insertando un segmento de metadatos grande con cada byte transferido. El lector de fragmentos ahora produce un error si la proporción entre el cuerpo real y los bytes codificados es demasiado pequeña.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2023-39326 changed 2025-02-13CVE Terms of Use
Go Vulnerability DatabaseGO-2023-2382 changed 2026-02-04CC-BY-4.0
NVDCVE-2023-39326 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-GOLANG-2023-39326 changed 2026-09-08Apache-2.0