Vulnerability · Published Dec 8, 2022 · Assigned by Go

CVE-2022-41717Excessive memory growth in net/http and golang.org/x/net/http2

Medium 5.3

In plain English

A medium-severity security flaw in net/http from Go standard library. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 6.1% (higher than 93% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)5.3Medium
Exploit odds (30 days)6.1%top 6.6% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling1Public PoC

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8aardvark-dns2:1.0.1-37.module_el8.8.0+3468+16b86c82ALSA-2023:2802
AlmaLinux:8aardvark-dns2:1.5.0-2.module_el8.8.0+3470+252b1910ALSA-2023:2758
AlmaLinux:8buildah1:1.29.1-1.module_el8.8.0+3470+252b1910ALSA-2023:2758
AlmaLinux:8buildah1:1.24.6-5.module_el8.8.0+3468+16b86c82ALSA-2023:2802
AlmaLinux:9buildah1:1.29.1-1.el9ALSA-2023:2253
AlmaLinux:8buildah-tests1:1.24.6-5.module_el8.8.0+3468+16b86c82ALSA-2023:2802
AlmaLinux:8buildah-tests1:1.29.1-1.module_el8.8.0+3470+252b1910ALSA-2023:2758
AlmaLinux:9buildah-tests1:1.29.1-1.el9ALSA-2023:2253
AlmaLinux:8cockpit-podman46-1.module_el8.7.0+3344+5bcd850fALSA-2023:2802
AlmaLinux:8cockpit-podman63.1-1.module_el8.8.0+3557+7ba9cc13ALSA-2023:2758
AlmaLinux:8conmon3:2.1.6-1.module_el8.8.0+3470+252b1910ALSA-2023:2758
AlmaLinux:8conmon2:2.1.4-1.module_el8.7.0+3344+5bcd850fALSA-2023:2802
AlmaLinux:9conmon2:2.1.7-1.el9_2ALSA-2023:2222
AlmaLinux:8container-selinux2:2.205.0-2.module_el8.8.0+3557+7ba9cc13ALSA-2023:2758
AlmaLinux:8container-selinux2:2.199.0-1.module_el8.8.0+3468+16b86c82ALSA-2023:2802
AlmaLinux:8containernetworking-plugins1:1.1.1-2.module_el8.7.0+3344+5bcd850fALSA-2023:2802
AlmaLinux:8containernetworking-plugins1:1.2.0-1.module_el8.8.0+3470+252b1910ALSA-2023:2758
AlmaLinux:9containernetworking-plugins1:1.2.0-1.el9ALSA-2023:2367
AlmaLinux:8containers-common2:1-63.module_el8.8.0+3568+e8578284ALSA-2023:2758
AlmaLinux:8containers-common2:1-37.module_el8.8.0+3468+16b86c82ALSA-2023:2802
AlmaLinux:8crit3.15-3.module_el8.6.0+2877+8e437bf5ALSA-2023:2802
AlmaLinux:8crit3.15-3.module_el8.6.0+3137+d33c3efbALSA-2023:2802
AlmaLinux:8crit3.15-3.module_el8.7.0+3407+95aa0ca9ALSA-2023:2758
AlmaLinux:8criu3.15-3.module_el8.6.0+2877+8e437bf5ALSA-2023:2802
AlmaLinux:8criu3.15-3.module_el8.7.0+3407+95aa0ca9ALSA-2023:2758
AlmaLinux:8criu3.15-3.module_el8.6.0+3137+d33c3efbALSA-2023:2802
AlmaLinux:8criu-devel3.15-3.module_el8.6.0+3137+d33c3efbALSA-2023:2802
AlmaLinux:8criu-devel3.15-3.module_el8.6.0+2877+8e437bf5ALSA-2023:2802
AlmaLinux:8criu-devel3.15-3.module_el8.7.0+3407+95aa0ca9ALSA-2023:2758
AlmaLinux:8criu-libs3.15-3.module_el8.6.0+3137+d33c3efbALSA-2023:2802
AlmaLinux:8criu-libs3.15-3.module_el8.7.0+3407+95aa0ca9ALSA-2023:2758
AlmaLinux:8criu-libs3.15-3.module_el8.6.0+2877+8e437bf5ALSA-2023:2802
AlmaLinux:8crun1.6-1.module_el8.8.0+3468+16b86c82ALSA-2023:2802
AlmaLinux:8crun1.8.1-2.module_el8.8.0+3568+e8578284ALSA-2023:2758
AlmaLinux:8fuse-overlayfs1.9-1.module_el8.7.0+3344+5bcd850fALSA-2023:2802
AlmaLinux:8fuse-overlayfs1.10-1.module_el8.8.0+3470+252b1910ALSA-2023:2758
AlmaLinux:8git-lfs3.2.0-2.el8ALSA-2023:2866
AlmaLinux:9git-lfs3.2.0-1.el9ALSA-2023:2357
AlmaLinux:9grafana9.2.10-7.el9_3.alma.1ALSA-2023:6420
AlmaLinux:8libslirp4.4.0-1.module_el8.6.0+2877+8e437bf5ALSA-2023:2802
AlmaLinux:8libslirp4.4.0-1.module_el8.7.0+3407+95aa0ca9ALSA-2023:2758
AlmaLinux:8libslirp4.4.0-1.module_el8.6.0+3137+d33c3efbALSA-2023:2802
AlmaLinux:8libslirp-devel4.4.0-1.module_el8.6.0+2877+8e437bf5ALSA-2023:2802
AlmaLinux:8libslirp-devel4.4.0-1.module_el8.7.0+3407+95aa0ca9ALSA-2023:2758
AlmaLinux:8libslirp-devel4.4.0-1.module_el8.6.0+3137+d33c3efbALSA-2023:2802
AlmaLinux:8netavark2:1.0.1-37.module_el8.8.0+3468+16b86c82ALSA-2023:2802
AlmaLinux:8netavark2:1.5.0-4.module_el8.8.0+3470+252b1910ALSA-2023:2758
AlmaLinux:8oci-seccomp-bpf-hook1.2.8-1.module_el8.8.0+3470+252b1910ALSA-2023:2758
AlmaLinux:8oci-seccomp-bpf-hook1.2.5-2.module_el8.8.0+3468+16b86c82ALSA-2023:2802
AlmaLinux:8osbuild-composer75-1.el8.almaALSA-2023:2780
AlmaLinux:9osbuild-composer76-2.el9_2.almaALSA-2023:2204
AlmaLinux:8osbuild-composer-core75-1.el8.almaALSA-2023:2780
AlmaLinux:9osbuild-composer-core76-2.el9_2.almaALSA-2023:2204
AlmaLinux:8osbuild-composer-dnf-json75-1.el8.almaALSA-2023:2780
AlmaLinux:9osbuild-composer-dnf-json76-2.el9_2.almaALSA-2023:2204
AlmaLinux:8osbuild-composer-worker75-1.el8.almaALSA-2023:2780
AlmaLinux:9osbuild-composer-worker76-2.el9_2.almaALSA-2023:2204
AlmaLinux:8podman3:4.4.1-8.module_el8.8.0+3568+e8578284ALSA-2023:2758
AlmaLinux:8podman2:4.0.2-20.module_el8.8.0+3468+16b86c82ALSA-2023:2802
AlmaLinux:9podman2:4.4.1-3.el9ALSA-2023:2282
AlmaLinux:8podman-catatonit2:4.0.2-20.module_el8.8.0+3468+16b86c82ALSA-2023:2802
AlmaLinux:8podman-catatonit3:4.4.1-8.module_el8.8.0+3568+e8578284ALSA-2023:2758
AlmaLinux:8podman-docker3:4.4.1-8.module_el8.8.0+3568+e8578284ALSA-2023:2758
AlmaLinux:8podman-docker2:4.0.2-20.module_el8.8.0+3468+16b86c82ALSA-2023:2802
AlmaLinux:9podman-docker2:4.4.1-3.el9ALSA-2023:2282
AlmaLinux:8podman-gvproxy2:4.0.2-20.module_el8.8.0+3468+16b86c82ALSA-2023:2802
AlmaLinux:8podman-gvproxy3:4.4.1-8.module_el8.8.0+3568+e8578284ALSA-2023:2758
AlmaLinux:9podman-gvproxy2:4.4.1-3.el9ALSA-2023:2282
AlmaLinux:8podman-plugins2:4.0.2-20.module_el8.8.0+3468+16b86c82ALSA-2023:2802
AlmaLinux:8podman-plugins3:4.4.1-8.module_el8.8.0+3568+e8578284ALSA-2023:2758
AlmaLinux:9podman-plugins2:4.4.1-3.el9ALSA-2023:2282
AlmaLinux:8podman-remote2:4.0.2-20.module_el8.8.0+3468+16b86c82ALSA-2023:2802
AlmaLinux:8podman-remote3:4.4.1-8.module_el8.8.0+3568+e8578284ALSA-2023:2758
AlmaLinux:9podman-remote2:4.4.1-3.el9ALSA-2023:2282
AlmaLinux:8podman-tests3:4.4.1-8.module_el8.8.0+3568+e8578284ALSA-2023:2758
AlmaLinux:8podman-tests2:4.0.2-20.module_el8.8.0+3468+16b86c82ALSA-2023:2802
AlmaLinux:9podman-tests2:4.4.1-3.el9ALSA-2023:2282
AlmaLinux:8python3-criu3.15-3.module_el8.7.0+3407+95aa0ca9ALSA-2023:2758
AlmaLinux:8python3-criu3.15-3.module_el8.6.0+2877+8e437bf5ALSA-2023:2802
AlmaLinux:8python3-criu3.15-3.module_el8.6.0+3137+d33c3efbALSA-2023:2802
AlmaLinux:8python3-podman4.4.1-1.module_el8.8.0+3470+252b1910ALSA-2023:2758
AlmaLinux:8python3-podman4.0.0-1.module_el8.6.0+2877+8e437bf5ALSA-2023:2802
AlmaLinux:8runc1:1.1.4-1.module_el8.7.0+3344+5bcd850fALSA-2023:2802
AlmaLinux:8runc1:1.1.4-1.module_el8.7.0+3407+95aa0ca9ALSA-2023:2758
AlmaLinux:8skopeo2:1.11.2-0.2.module_el8.8.0+3470+252b1910ALSA-2023:2758
AlmaLinux:8skopeo2:1.6.2-6.module_el8.8.0+3468+16b86c82ALSA-2023:2802
AlmaLinux:9skopeo2:1.11.2-0.1.el9ALSA-2023:2283
AlmaLinux:8skopeo-tests2:1.11.2-0.2.module_el8.8.0+3470+252b1910ALSA-2023:2758
AlmaLinux:8skopeo-tests2:1.6.2-6.module_el8.8.0+3468+16b86c82ALSA-2023:2802
AlmaLinux:9skopeo-tests2:1.11.2-0.1.el9ALSA-2023:2283
AlmaLinux:8slirp4netns1.1.8-2.module_el8.6.0+2877+8e437bf5ALSA-2023:2802
AlmaLinux:8slirp4netns1.1.8-2.module_el8.6.0+3137+d33c3efbALSA-2023:2802
AlmaLinux:8slirp4netns1.2.0-2.module_el8.7.0+3407+95aa0ca9ALSA-2023:2758
AlmaLinux:8toolbox0.0.99.3-7.module_el8.8.0+3468+16b86c82ALSA-2023:2802
AlmaLinux:8toolbox0.0.99.3-7.module_el8.8.0+3470+252b1910ALSA-2023:2758
AlmaLinux:9toolbox0.0.99.3-9.el9ALSA-2023:2236
AlmaLinux:8toolbox-tests0.0.99.3-7.module_el8.8.0+3470+252b1910ALSA-2023:2758
AlmaLinux:8toolbox-tests0.0.99.3-7.module_el8.8.0+3468+16b86c82ALSA-2023:2802
AlmaLinux:9toolbox-tests0.0.99.3-9.el9ALSA-2023:2236
AlmaLinux:8udica0.2.6-3.module_el8.6.0+2886+d33c3efbALSA-2023:2802
AlmaLinux:8udica0.2.6-20.module_el8.8.0+3470+252b1910ALSA-2023:2758
AlmaLinux:8weldr-client35.9-2.el8ALSA-2023:2780
AlmaLinux:9weldr-client35.9-1.el9ALSA-2023:2204
Alpine:v3.20go1.19.4-r0ALPINE-CVE-2022-41717
Alpine:v3.21go1.19.4-r0ALPINE-CVE-2022-41717
Alpine:v3.22go1.19.4-r0ALPINE-CVE-2022-41717
Alpine:v3.23go1.19.4-r0ALPINE-CVE-2022-41717
Alpine:v3.24go1.19.4-r0ALPINE-CVE-2022-41717
Alpine:v3.20minio-client0.20230111.031416-r0ALPINE-CVE-2022-41717
Alpine:v3.21minio-client0.20230111.031416-r0ALPINE-CVE-2022-41717
Alpine:v3.22minio-client0.20230111.031416-r0ALPINE-CVE-2022-41717
Alpine:v3.23minio-client0.20230111.031416-r0ALPINE-CVE-2022-41717
Alpine:v3.24minio-client0.20230111.031416-r0ALPINE-CVE-2022-41717
Debian:12golang-1.191.19.4-1DEBIAN-CVE-2022-41717
Debian:12golang-golang-x-net1:0.4.0+dfsg-1DEBIAN-CVE-2022-41717
Debian:13golang-golang-x-net1:0.4.0+dfsg-1DEBIAN-CVE-2022-41717
Debian:14golang-golang-x-net1:0.4.0+dfsg-1DEBIAN-CVE-2022-41717
Gogolang.org/x/net0.4.0GHSA-xrjj-mj9h-534m
Gogolang.org/x/net0.4.0GO-2022-1144
Gogolang.org/x/net/http20.4.0GHSA-xrjj-mj9h-534m
Gostdlib1.18.9, 1.19.4GO-2022-1144
Rocky Linux:8cockpit-podman0:46-1.module+el8.9.0+1445+07728297RLSA-2023:2802
Rocky Linux:8criu0:3.15-3.module+el8.9.0+1445+07728297RLSA-2023:2802
Rocky Linux:8criu0:3.15-3.module+el8.9.0+1445+07728297RLSA-2023:2758
Rocky Linux:8libslirp0:4.4.0-1.module+el8.9.0+1445+07728297RLSA-2023:2758
Rocky Linux:8libslirp0:4.4.0-1.module+el8.9.0+1445+07728297RLSA-2023:2802
Rocky Linux:8oci-seccomp-bpf-hook0:1.2.5-2.module+el8.9.0+1445+07728297RLSA-2023:2802
Ubuntu:22.04:LTSgolang-1.131.13.8-1ubuntu2.22.04.2UBUNTU-CVE-2022-41717
Ubuntu:22.04:LTSgolang-1.131.13.8-1ubuntu2.22.04.2USN-6038-2
Ubuntu:22.04:LTSgolang-1.17no fix listedUBUNTU-CVE-2022-41717
Ubuntu:22.04:LTSgolang-1.181.18.1-1ubuntu1.1UBUNTU-CVE-2022-41717
Ubuntu:22.04:LTSgolang-1.181.18.1-1ubuntu1.1USN-6038-1

Affected products (as reported)

VendorProductVersions
Go standard library net/http 0 – before 1.18.91.19.0-0 – before 1.19.4
golang.org/x/net golang.org/x/net/http2 0 – before 0.4.0

References