HIGH 7.5
GHSA-fxg5-wq6x-vr4w
golang.org/x/net/http2/h2c vulnerable to request smuggling attack
Quick fix
GHSA-fxg5-wq6x-vr4w — golang.org/x/net: upgrade to the fixed version with the command below.
go get golang.org/x/net@v0.1.1-0.20221104162952-702349b0e862 Details
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
Are you affected?
Enter the version of the package you're using.
Affected packages
Go / golang.org/x/net
Introduced in:
0.0.0-20220524220425-1d687d428aca Fixed in: 0.1.1-0.20221104162952-702349b0e862 Fix
go get golang.org/x/net@v0.1.1-0.20221104162952-702349b0e862 References
- https://nvd.nist.gov/vuln/detail/CVE-2022-41721 [ADVISORY]
- https://cs.opensource.google/go/x/net [PACKAGE]
- https://go.dev/cl/447396 [WEB]
- https://go.dev/issue/56352 [WEB]
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/X3H3EWQXM2XL5AGBX6UL443JEJ3GQXJN [WEB]
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/X5DXTLLWN6HKI5I35EUZRBISTNZJ75GP [WEB]
- https://pkg.go.dev/vuln/GO-2023-1495 [WEB]