CVE-2022-41721
Java vulnerability analysis and mitigation

Overview

A request smuggling attack vulnerability (CVE-2022-41721) was discovered in the MaxBytesHandler functionality. The vulnerability was identified in golang.org/x/net/http2/h2c package, affecting versions from v0.0.0-20220524220425-1d687d428aca before v0.1.1-0.20221104162952-702349b0e862. The issue occurs when the body of an HTTP request is not fully consumed, allowing potential attackers to manipulate HTTP2 requests (Go Vulnerability).

Technical details

When using MaxBytesHandler, the handler fails to fully consume the HTTP request body. Subsequently, when the server attempts to read HTTP2 frames from the connection, it instead reads the body of the HTTP request. This vulnerability could allow attackers to manipulate these requests to represent arbitrary HTTP2 requests. The issue specifically affects the h2cHandler.ServeHTTP and h2cUpgrade components (Go Issue).

Impact

The vulnerability could enable attackers to perform request smuggling attacks, potentially leading to unauthorized access or manipulation of HTTP2 requests. Additionally, this could create a potential DOS vector in the http2 library (Go Issue).

Mitigation and workarounds

The vulnerability was fixed in version v0.2.0 of the golang.org/x/net package. The fix was implemented through a patch that can be found at go.googlesource.com/net/+/702349b0e8628371f0e5ba0c10407448d60a67b1. Various distributions have also released updates to address this vulnerability, including Fedora's caddy package update to version 2.6.4 (Fedora Update).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management