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 package | Versions | Reported by |
|---|---|---|
| net/http/internal | before 1.20.12, from 1.21.0-0 before 1.21.5 | CVE List |
| stdlib (Go) | before 1.20.12, from 1.21.0-0 before 1.21.5 | Go Vulnerability Database |
| golang go | before 1.20.12, from 1.21.0-0 before 1.21.5 | NVD |
| golang (Bitnami) | before 1.20.12, from 1.21.0-0 before 1.21.5 | Bitnami Vulnerability Database |
All scores
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| Bitnami Vulnerability Database | medium 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
| https://go.dev/issue/64433 | advisory, issue-tracking, patch, report, vendor-advisory | |
| https://go.dev/cl/547335 | fix, patch | |
| https://groups.google.com/g/golang-dev/c/6ypN5EjibjM/m/KmLVYH_uAgAJ | advisory, mailing-list, vendor-advisory, web | |
| https://pkg.go.dev/vuln/GO-2023-2382 | advisory, patch, vendor-advisory | |
| https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UIU6HOGV6RRIKWM57LOXQA75BGZSIH6G/ | web | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-39326 | web | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-39326 changed 2025-02-13 | CVE Terms of Use |
| Go Vulnerability Database | GO-2023-2382 changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2023-39326 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-GOLANG-2023-39326 changed 2026-09-08 | Apache-2.0 |