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

Published Jan 13, 2023
·
Updated

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.

Other sources

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 read the body of the HTTP request, which could be attacker-manipulated to represent arbitrary HTTP2 requests.

Golang Go is vulnerable to HTTP request smuggling, caused by a flaw when using MaxBytesHandler. By sending a specially-crafted HTTP(S) transfer-encoding request header, an attacker could exploit this vulnerability to poison the web cache, bypass web application firewall protection, and conduct XSS attacks.

IBM

Affected Software

9 affected componentsFixes available
Golang H2c Go<2022-11-04
redhat/golang.org/x/net 0.1.1-0.20221104162952<702349
702349
IBM Data Virtualization on Cloud Pak for Data<=3.0
IBM Watson Query on Cloud Pak for Data<=2.2
IBM Watson Query on Cloud Pak for Data<=2.1
IBM Watson Query on Cloud Pak for Data<=2.0
IBM Data Virtualization on Cloud Pak for Data<=1.8
IBM Data Virtualization on Cloud Pak for Data<=1.7
go/golang.org/x/net>=0.0.0-20220524220425-1d687d428aca<0.1.1-0.20221104162952-702349b0e862
0.1.1-0.20221104162952-702349b0e862

Remediation

Event History

Jan 13, 2023
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityWeaknessAffected Software
CVE Published
via MITRE·10:46 PM
Data Sourced
via MITRE·10:46 PM
DescriptionWeakness
Jan 14, 2023
Advisory Published
via GitHub·12:30 AM
Jan 19, 2023
Data Sourced
via Red Hat·03:52 AM
DescriptionSeverityAffected Software
Aug 15, 2025
Data Sourced
via IBM·03:29 PM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2022-41721?

CVE-2022-41721 is a vulnerability that allows for a request smuggling attack when using MaxBytesHandler.

2

What is the severity of CVE-2022-41721?

CVE-2022-41721 has a severity level of high.

3

How does CVE-2022-41721 work?

CVE-2022-41721 occurs when the body of an HTTP request is not fully consumed, allowing an attacker to manipulate the request and potentially carry out a request smuggling attack.

4

What software is affected by CVE-2022-41721?

The software affected by CVE-2022-41721 includes golang.org/x/net, golang.org/x/net/http2/h2c, and Golang H2c.

5

How can I fix CVE-2022-41721?

To fix CVE-2022-41721, update your affected software to the recommended version provided by the vendor.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203