CVE-2022-41721
JSON

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 packageVersionsReported by
golang.org/x/net/http2/h2cfrom 0.0.0-20220524220425-1d687d428aca before 0.1.1-0.20221104162952-702349b0e862CVE List
golang.org/x/net (Go)from 0.0.0-20220524220425-1d687d428aca before 0.1.1-0.20221104162952-702349b0e862GitHub Advisory Database, Go Vulnerability Database
golang h2cbefore 2022-11-04NVD

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
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-444

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

https://go.dev/issue/56352exploit, issue-tracking, patch, report, vendor-advisory, web
https://go.dev/cl/447396fix, patch, vendor-advisory, web
https://pkg.go.dev/vuln/GO-2023-1495vendor-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/X3H3EWQXM2XL5AGBX6UL443JEJ3GQXJN/
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/X5DXTLLWN6HKI5I35EUZRBISTNZJ75GP/
https://nvd.nist.gov/vuln/detail/CVE-2022-41721advisory
https://cs.opensource.google/go/x/netpackage
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/X3H3EWQXM2XL5AGBX6UL443JEJ3GQXJNweb
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/X5DXTLLWN6HKI5I35EUZRBISTNZJ75GPweb

Sources

SourceRecordLicence
CVE ListCVE-2022-41721 changed 2025-04-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-fxg5-wq6x-vr4w changed 2026-08-07CC-BY-4.0
Go Vulnerability DatabaseGO-2023-1495 changed 2026-08-07CC-BY-4.0
NVDCVE-2022-41721 changed 2026-06-17Public domain