Skip to main content
← All vulnerabilities
CVE-2022-41717GHSA-XRJJ-MJ9H-534MBIT-GOLANG-2022-41717GO-2022-1144

Excessive memory growth in net/http and golang.org/x/net/http2

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.18.9, 1.19.4, 0.4.0
1 proof of concept on GitHub

Summary

An attacker can cause excessive memory growth in a Go server accepting HTTP/2 requests. HTTP/2 server connections contain a cache of HTTP header keys sent by the client. While the total number of entries in this cache is capped, an attacker sending very large keys can cause the server to allocate approximately 64 MiB per open connection.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • net/http

    fixed in 1.18.9; From 1.19.0-0 · fixed in 1.19.4

  • golang.org/x/net/http2

    fixed in 0.4.0

  • golang.org/x/net/http2Go

    fixed in 0.4.0

  • golang.org/x/netGo

    fixed in 0.4.0

  • stdlibGo

    fixed in 1.18.9; From 1.19.0-0 · fixed in 1.19.4

References 24

go.dev

groups.google.com

pkg.go.dev

lists.fedoraproject.org

security.gentoo.org

GitHub · domdom82/h2conn-exploit