HTTP Request Smuggling Affecting golang.org/x/net/http2/h2c package, versions >=0.1.0 <0.2.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.17% (56th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GOLANGORGXNETHTTP2H2C-3230894
  • published15 Jan 2023
  • disclosed15 Jan 2023
  • creditJohn Howard

Introduced: 15 Jan 2023

CVE-2022-41721  (opens in a new tab)
CWE-444  (opens in a new tab)

How to fix?

Upgrade golang.org/x/net/http2/h2c to version 0.2.0 or higher.

Overview

golang.org/x/net/http2/h2c is a module for the unencrypted "h2c" form of HTTP/2

Affected versions of this package are vulnerable to HTTP Request Smuggling when using MaxBytesHandler. An attacker can manipulate an HTTP request to cause HTTP2 frames to be read before the previous request was fully consumed.

CVSS Base Scores

version 3.1