7.5high
Request smuggling due to improper request handling in golang.org/x/net/http2/h2c
- Severity
- 7.5high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 1.88% (higher than 80% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Go
- Also known as
- GHSA-fxg5-wq6x-vr4wGO-2023-1495
Description
A request smuggling attack is possible when using MaxBytesHandler. When using MaxBytesHandler, the body of an HTTP request is not fully consumed. When the server attempts to read HTTP2 frames from the connection, it will instead be reading the body of the HTTP request, which could be attacker-manipulated to represent arbitrary HTTP2 requests.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| golang.org/x/net/http2/h2c | from 0.0.0-20220524220425-1d687d428aca before 0.1.1-0.20221104162952-702349b0e862 | CVE List |
| golang.org/x/net (Go) | from 0.0.0-20220524220425-1d687d428aca before 0.1.1-0.20221104162952-702349b0e862 | GitHub Advisory Database, Go Vulnerability Database |
| golang h2c | before 2022-11-04 | NVD |
All scores
| CISA-ADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
A request smuggling attack is possible when using MaxBytesHandler. When using MaxBytesHandler, the body of an HTTP request is not fully consumed. When the server attempts to read HTTP2 frames from the connection, it will instead be reading the body of the HTTP request, which could be attacker-manipulated to represent arbitrary HTTP2 requests.
GitHub Advisory Database
A request smuggling attack is possible when using MaxBytesHandler. When using MaxBytesHandler, the body of an HTTP request is not fully consumed. When the server attempts to read HTTP2 frames from the connection, it will instead be reading the body of the HTTP request, which could be attacker-manipulated to represent arbitrary HTTP2 requests.
Specific Go Packages Affected
golang.org/x/net/http2/h2c
NVD (es)
Es posible un ataque de contrabando de solicitudes cuando se utiliza MaxBytesHandler. Cuando se utiliza MaxBytesHandler, el cuerpo de una solicitud HTTP no se consume por completo. Cuando el servidor intenta leer tramas HTTP2 de la conexión, leerá el cuerpo de la solicitud HTTP, que podría ser manipulado por un atacante para representar solicitudes HTTP2 arbitrarias.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-41721 changed 2025-04-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-fxg5-wq6x-vr4w changed 2026-08-07 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2023-1495 changed 2026-08-07 | CC-BY-4.0 |
| NVD | CVE-2022-41721 changed 2026-06-17 | Public domain |