CVE-2024-24791
JSON

7.5high

Denial of service due to improper 100-continue handling in net/http

Severity
7.5high CVSS:3.1 by CISA-ADP
Exploit likelihood
1.41% (higher than 73% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Go
Also known as
GO-2024-2963BIT-GOLANG-2024-24791

Description

The net/http HTTP/1.1 client mishandled the case where a server responds to a request with an "Expect: 100-continue" header with a non-informational (200 or higher) status. This mishandling could leave a client connection in an invalid state, where the next request sent on the connection will fail. An attacker sending a request to a net/http/httputil.ReverseProxy proxy can exploit this mishandling to cause a denial of service by sending "Expect: 100-continue" requests which elicit a non-informational response from the backend. Each such request leaves the proxy with an invalid connection, and causes one subsequent request using that connection to fail.

Affected

Product or packageVersionsReported by
net/httpbefore 1.21.12, from 1.22.0-0 before 1.22.5CVE List
go_standard_library net\/httpbefore 1.21.12, from 1.22.0-0 before 1.22.5CVE List
stdlib (Go)before 1.21.12, from 1.22.0-0 before 1.22.5Go Vulnerability Database
golang (Bitnami)before 1.21.12, from 1.22.0-0 before 1.22.5Bitnami Vulnerability Database

All scores

CISA-ADP7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Bitnami Vulnerability Databasehigh rating

Classification

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

The net/http HTTP/1.1 client mishandled the case where a server responds to a request with an "Expect: 100-continue" header with a non-informational (200 or higher) status. This mishandling could leave a client connection in an invalid state, where the next request sent on the connection will fail. An attacker sending a request to a net/http/httputil.ReverseProxy proxy can exploit this mishandling to cause a denial of service by sending "Expect: 100-continue" requests which elicit a non-informational response from the backend. Each such request leaves the proxy with an invalid connection, and causes one subsequent request using that connection to fail.

NVD (es)

El cliente net/http HTTP/1.1 manejó mal el caso en el que un servidor responde a una solicitud con un encabezado "Expect: 100-continue" con un estado no informativo (200 o superior). Este mal manejo podría dejar una conexión de cliente en un estado no válido, donde la siguiente solicitud enviada a la conexión fallará. Un atacante que envía una solicitud a un proxy net/http/httputil.ReverseProxy puede aprovechar este mal manejo para provocar una denegación de servicio enviando solicitudes "Esperar: 100-continuar" que provocan una respuesta no informativa del backend. Cada una de estas solicitudes deja al proxy con una conexión no válida y provoca que falle una solicitud posterior que utiliza esa conexión.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2024-24791 changed 2024-10-04CVE Terms of Use
Go Vulnerability DatabaseGO-2024-2963 changed 2026-02-04CC-BY-4.0
NVDCVE-2024-24791 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-GOLANG-2024-24791 changed 2025-05-20Apache-2.0