Vulnerability · Published Jan 13, 2023 · Assigned by Go
CVE-2022-41721Request smuggling due to improper request handling in golang.org/x/net/http2/h2c
High 7.5
In plain English
A high-severity security flaw in golang.org/x/net/http2/h2c from golang.org/x/net. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.8% (higher than 79% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.8%top 21.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | golang-golang-x-net | 1:0.4.0+dfsg-1 | DEBIAN-CVE-2022-41721 |
| Debian:13 | golang-golang-x-net | 1:0.4.0+dfsg-1 | DEBIAN-CVE-2022-41721 |
| Debian:14 | golang-golang-x-net | 1:0.4.0+dfsg-1 | DEBIAN-CVE-2022-41721 |
| Go | golang.org/x/net | 0.1.1-0.20221104162952-702349b0e862 | GO-2023-1495 |
| Go | golang.org/x/net | 0.1.1-0.20221104162952-702349b0e862 | GHSA-fxg5-wq6x-vr4w |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| golang.org/x/net | golang.org/x/net/http2/h2c | 0.0.0-20220524220425-1d687d428aca – before 0.1.1-0.20221104162952-702349b0e862 |
References
- https://go.dev/issue/56352
- https://go.dev/cl/447396
- https://pkg.go.dev/vuln/GO-2023-1495
- 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/