What’s Vulnerable › Vulnerabilities

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

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 products

How to fix

Upgrade to a fixed version: golang.org/x/net/http2/h2c 2022-11-04. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-41721 or the next vulnerability affects your stack