Advisory

GHSA-fxg5-wq6x-vr4w

Also known as: CVE-2022-41721, GO-2023-1495

Summary

golang.org/x/net/http2/h2c vulnerable to request smuggling attack

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2023-01-14 00:30 UTC
Modified
2026-08-07 08:12 UTC

Affected packages and fixes

golang.org/x/net

Go · All systems

Affected

  • introduced 0.0.0-20220524220425-1d687d428aca, fixed 0.1.1-0.20221104162952-702349b0e862 (semver)

Fixed versions

0.1.1-0.20221104162952-702349b0e862

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences