Skip to main content
Public proof of conceptFix available

CVE-2022-41721

A public proof of concept exists; no exploitation attested.

  • Published2023-01-13
  • Fixed in2022-11-04
  • WeaknessCWE-444

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2023-01-1323:15CVE publishedNVD

Versions per branch

NVD · OSV
Golang h2c
BranchAffectedFixed in
2022.x< 2022-11-042022-11-04
golang.org/x/net
BranchAffectedFixed in
0.x≥ 0.0.0-20220524220425-1d687d428aca, < 0.1.1-0.20221104162952-702349b0e8620.1.1-0.20221104162952-702349b0e862

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As Go, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • golang.org/x/net/http2/h2cother versions: not affected

    https://pkg.go.dev

    Affected
    • ≥ 0.0.0-20220524220425-1d687d428aca, < 0.1.1-0.20221104162952-702349b0e862fixed in 0.1.1-0.20221104162952-702349b0e862semver

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2023-08-27

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • caddyopenSUSE:Tumbleweedall versions · fixed in 2.6.3-1.1
  • golang-golang-x-netDebian:14all versions · fixed in 1:0.4.0+dfsg-1
  • golang-golang-x-netDebian:13all versions · fixed in 1:0.4.0+dfsg-1
  • golang-golang-x-netDebian:12all versions · fixed in 1:0.4.0+dfsg-1
  • opaAzure Linux:2all versions · fixed in 0.50.2-5
  • wavefront-collector-for-kubernetesCleanStartall versions · fixed in 1.13.0-r0

Vendor advisories

  • CVE-2022-41721 Red Hat Product Security5 products fixed · 24 known affected

    x/net/http2/h2c: request smuggling

    cli as a component of OpenShift Serverless · knative-eventing as a component of OpenShift Serverless · knative-serving as a component of OpenShift Serverless · +21 more

  • RHSA-2023:4627 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Migration Toolkit for Applications security and bug fix update

  • RHSA-2023:1326 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: OpenShift Container Platform 4.13.0 security update

Full record on NVD

Fix

  1. Update Golang h2c to 2022-11-04
  2. Vendor fix Red Hat Product Security RHSA-2023:4627 · 1 productFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  3. Vendor fix Red Hat Product Security RHSA-2023:1326 · 4 productsFor OpenShift Container Platform 4.13 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.openshift.com/container-platform/4.13/release_notes/ocp-4-1…
  4. No fix available, says the vendor Red Hat Product Security CVE-2022-41721 · 7 productsAffected
  5. No fix planned, says the vendor Red Hat Product Security CVE-2022-41721 · 17 productsWill not fix

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
2023-01-13
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-fxg5-wq6x-vr4w

Frequently asked questions

What is CVE-2022-41721?

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.

Is CVE-2022-41721 actively exploited?

A proof-of-concept exploit exists for CVE-2022-41721, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2022-41721?

CVE-2022-41721 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Running x/net/http2/h2c? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record