Skip to content

CVE-2022-41721 Request smuggling due to improper request handling in golang.org/x/net/http2/h2c

HighCVSS 7.5 EPSS 1.9%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial
Technology
Debian

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.

Upgrade path

6 packages: 6 fixed.

PackageAffectedFixed inStatus
debian/golang-golang-x-net(Debian 12) < 1:0.4.0+dfsg-1 1:0.4.0+dfsg-1 Fixed
debian/golang-golang-x-net(Debian 13) < 1:0.4.0+dfsg-1 1:0.4.0+dfsg-1 Fixed
debian/golang-golang-x-net(Debian 14) < 1:0.4.0+dfsg-1 1:0.4.0+dfsg-1 Fixed
golang h2c < 2022-11-04 2022-11-04 Fixed
golang.org/x/net(Go) >= 0.0.0-20220524220425-1d687d428aca, < 0.1.1-0.20221104162952-702349b0e862 0.1.1-0.20221104162952-702349b0e862 Fixed
golang.org/x/net/http2/h2c(Go) >= 0.0.0-20220524220425-1d687d428aca, < 0.1.1-0.20221104162952-702349b0e862 0.1.1-0.20221104162952-702349b0e862 Fixed

Affected products

ProductAffected versionsFixed in
golang.org/x/net(Go) >= 0.0.0-20220524220425-1d687d428aca, < 0.1.1-0.20221104162952-702349b0e862 0.1.1-0.20221104162952-702349b0e862
golang.org/x/net/http2/h2c(Go) >= 0.0.0-20220524220425-1d687d428aca, < 0.1.1-0.20221104162952-702349b0e862 0.1.1-0.20221104162952-702349b0e862
golang h2c < 2022-11-04 2022-11-04
debian/golang-golang-x-net(Debian:12) < 1:0.4.0+dfsg-1 1:0.4.0+dfsg-1
debian/golang-golang-x-net(Debian:14) < 1:0.4.0+dfsg-1 1:0.4.0+dfsg-1
debian/golang-golang-x-net(Debian:13) < 1:0.4.0+dfsg-1 1:0.4.0+dfsg-1

References