Skip to content
OpenAdvisories
Medium · 5.9 CVE-2021-31525 BIT-golang-2021-31525EUVD-2022-4104GHSA-h86h-8ppg-mxmhGO-2022-0236

golang.org/x/net/http/httpguts vulnerable to Uncontrolled Recursion

Published May 27, 2021 · Updated Aug 3, 2024 · Assigned by mitre

Description

net/http in Go before 1.15.12 and 1.16.x before 1.16.4 allows remote attackers to cause a denial of service (panic) via a large header to ReadRequest or ReadResponse. Server, Transport, and Client can each be affected in some configurations.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 golang-golang-x-net 1:0.0+git20210119.5f4716e+dfsg-3 —
Debian 13 golang-golang-x-net 1:0.0+git20210119.5f4716e+dfsg-3 —
Debian 12 golang-golang-x-net 1:0.0+git20210119.5f4716e+dfsg-3 —
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS golang-1.16 +1 No fix yet —
Ubuntu Pro 18.04 LTS golang-1.16 +1 No fix yet —
Ubuntu Pro 16.04 LTS google-guest-agent +1 No fix yet —
ReleasePackageFixed inAdvisory
RHEL 8 delve 1.5.0-2.module+el8.4.0+8864+58b0fcdb RHSA-2021:3076
RHEL 8 golang +7 1.15.14-1.module+el8.4.0+11833+614b07b8 RHSA-2021:3076
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Serverless 1 openshift-serverless-clients 0.22.0-3.el8 RHSA-2021:3555, RHSA-2021:2704
Red Hat OpenStack 16 etcd 3.3.23-3.1.el8ost.1 RHSA-2021:5072, RHSA-2021:3487
Red Hat OpenShift 4 atomic-openshift-service-idler 4.7.0-202107291238.p0.git.39cfc66.assembly.stream.el8 RHBA-2021:2979
Red Hat OpenShift 4 containernetworking-plugins 0.8.6-3.rhaos4.6.el7 RHSA-2021:3248
Red Hat OpenShift 4 cri-o 1.20.4-7.rhaos4.7.git6287500.el7 RHSA-2021:2984, RHBA-2021:2979
Red Hat OpenShift 4 cri-tools 1.21.0-3.el8 RHSA-2021:3248
Red Hat OpenShift 4 ignition +1 2.9.0-4.rhaos4.7.git1d56dc8.el8 RHSA-2021:2984, RHBA-2021:2979
Red Hat OpenShift 4 openshift +1 4.7.0-202107292242.p0.git.558d959.assembly.stream.el7 RHSA-2021:2984, RHBA-2021:2979
Red Hat OpenShift 4 openshift-clients +1 4.7.0-202107292242.p0.git.8b4b094.assembly.stream.el7 RHSA-2021:2984, RHBA-2021:2979
Red Hat OpenShift 4 prometheus-promu +1 0.5.0-4.git642a960.el8 RHSA-2021:3248
Red Hat OpenShift 4 redhat-release-coreos 47.84-1.el8 RHBA-2021:2979
Red Hat Gluster Storage 3 heketi +2 10.4.0-2.el7rhgs RHSA-2022:0308
Red Hat Container Native Virtualization 4 kubevirt +2 4.9.0-287.el7 RHSA-2021:4103

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 delve 1.5.0-2.module+el8.4.0+396+d2d16ae3 RLSA-2021:3076
Rocky Linux 8 golang +1 1.15.14-1.module+el8.4.0+632+4dba2916 RLSA-2021:3076
ReleasePackageFixed inAdvisory
SLES 15 SP3 go1.15 1.15.12-1.30.1 SUSE-SU-2021:2082-1
SLES 15 SP3 go1.16 1.16.4-1.14.2 SUSE-SU-2021:2085-1
SLES 15 SP2 go1.15 1.15.12-1.30.1 SUSE-SU-2021:2082-1
SLES 15 SP2 go1.16 1.16.4-1.14.2 SUSE-SU-2021:2085-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed go1.15 1.15.15-1.2 openSUSE-SU-2024:10808-1
openSUSE Tumbleweed go1.16 1.16.8-1.1 openSUSE-SU-2024:10809-1
openSUSE Leap 15.2 go1.15 1.15.12-lp152.17.1 openSUSE-SU-2021:0904-1
ReleasePackageFixed inAdvisory
Alpine v3.24 go 1.16.4-r0 —
Alpine v3.23 go 1.16.4-r0 —
Alpine v3.22 go 1.16.4-r0 —
Alpine v3.21 go 1.16.4-r0 —
Alpine v3.20 go 1.16.4-r0 —
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 go 1.16.4-r0 —
Alpine v3.18 go 1.16.4-r0 —
Alpine v3.17 go 1.16.4-r0 —
Alpine v3.16 go 1.16.4-r0 —
Alpine v3.15 go 1.16.4-r0 —
Alpine v3.14 go 1.16.4-r0 —
Alpine v3.13 go 1.15.12-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 golang +6 1.15.12-1.amzn2.0.1 ALAS2-2021-1657

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 delve 1.5.0-2.0.1.module+el8.4.0+20021+8a86d991 ELSA-2021-3076
Oracle Linux 8 golang +7 1.15.14-1.module+el8.4.0+20290+7af514f4 ELSA-2021-3076

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling grpcurl 1.8.7-r7 —
Wolfi rolling hey 0.1.4-r3 —
Wolfi rolling k3d +2 5.6.0-r11 —
Wolfi rolling terraform-provider-sendgrid 1.0.1-r1 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go golang.org/x/net < 0.0.0-20210428140749-89ef3d95e781 0.0.0-20210428140749-89ef3d95e781 GHSA-h86h-8ppg-mxmh
Go stdlib < 1.15.12 · >= 1.16.0-0, < 1.16.4 1.15.12, 1.16.4 GO-2022-0236

Advisories 20

References