Live threats
VulnFox

All CVEs / Golang

CVE-2022-41721Golang H2c

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
—
Auth required
No
Published
Jan 13, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-444
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for H2c.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go golang.org/x/net ≥ 0.0.0-20220524220425-1d687d428aca < 0.1.1-0.20221104162952-702349b0e862 0.1.1-0.20221104162952-702349b0e862 go get golang.org/x/net@v0.1.1-0.20221104162952-702349b0e862
Go golang.org/x/net ≥ 0.0.0-20220524220425-1d687d428aca < 0.1.1-0.20221104162952-702349b0e862 0.1.1-0.20221104162952-702349b0e862 go get golang.org/x/net@v0.1.1-0.20221104162952-702349b0e862

Per OSV / GitHub Advisories (GHSA-fxg5-wq6x-vr4w, GO-2023-1495). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
golangh2c< 2022-11-04

Official sources

References

Links published by the sources. Open them with care.