Vulnerability · Published Oct 11, 2023 · Assigned by Go

CVE-2023-39325HTTP/2 rapid reset can cause excessive work in net/http

High 7.5

In plain English

A high-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 3.8% (higher than 90% 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)7.5High
Exploit odds (30 days)3.8%top 10.0% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling1Public PoC

Official description

A malicious HTTP/2 client which rapidly creates requests and immediately resets them can cause excessive server resource consumption. While the total number of requests is bounded by the http2.Server.MaxConcurrentStreams setting, resetting an in-progress request allows the attacker to create a new request while the existing one is still executing. With the fix applied, HTTP/2 servers now bound the number of simultaneously executing handler goroutines to the stream concurrency limit (MaxConcurrentStreams). New requests arriving when at the limit (which can only happen after the client has reset an existing, in-flight request) will be queued until a handler exits. If the request queue grows too large, the server will terminate the connection. This issue is also fixed in golang.org/x/net/http2 for users manually configuring HTTP/2. The default stream concurrency limit is 250 streams (requests) per HTTP/2 connection. This value may be adjusted using the golang.org/x/net/http2 package; see the Server.MaxConcurrentStreams setting and the ConfigureServer function.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8delve1.9.1-1.module_el8.8.0+3471+a62632a0ALSA-2023:5721
AlmaLinux:8go-toolset1.19.13-1.module_el8.8.0+3625+a06035cfALSA-2023:5721
AlmaLinux:9go-toolset1.19.13-1.el9_2ALSA-2023:5738
AlmaLinux:8golang1.19.13-1.module_el8.8.0+3625+a06035cfALSA-2023:5721
AlmaLinux:9golang1.19.13-1.el9_2ALSA-2023:5738
AlmaLinux:8golang-bin1.19.13-1.module_el8.8.0+3625+a06035cfALSA-2023:5721
AlmaLinux:9golang-bin1.19.13-1.el9_2ALSA-2023:5738
AlmaLinux:8golang-docs1.19.13-1.module_el8.8.0+3625+a06035cfALSA-2023:5721
AlmaLinux:9golang-docs1.19.13-1.el9_2ALSA-2023:5738
AlmaLinux:8golang-misc1.19.13-1.module_el8.8.0+3625+a06035cfALSA-2023:5721
AlmaLinux:9golang-misc1.19.13-1.el9_2ALSA-2023:5738
AlmaLinux:8golang-race1.19.13-1.module_el8.8.0+3625+a06035cfALSA-2023:5721
AlmaLinux:9golang-race1.19.13-1.el9_2ALSA-2023:5738
AlmaLinux:8golang-src1.19.13-1.module_el8.8.0+3625+a06035cfALSA-2023:5721
AlmaLinux:9golang-src1.19.13-1.el9_2ALSA-2023:5738
AlmaLinux:8golang-tests1.19.13-1.module_el8.8.0+3625+a06035cfALSA-2023:5721
AlmaLinux:9golang-tests1.19.13-1.el9_2ALSA-2023:5738
AlmaLinux:8grafana7.5.15-5.el8_8.alma.1ALSA-2023:5863
AlmaLinux:9grafana9.0.9-4.el9_2.alma.1ALSA-2023:5867
AlmaLinux:9toolbox0.0.99.3-10.el9_2ALSA-2023:6077
AlmaLinux:9toolbox-tests0.0.99.3-10.el9_2ALSA-2023:6077
Alpine:v3.20go1.21.3-r0ALPINE-CVE-2023-39325
Alpine:v3.21go1.21.3-r0ALPINE-CVE-2023-39325
Alpine:v3.22go1.21.3-r0ALPINE-CVE-2023-39325
Alpine:v3.23go1.21.3-r0ALPINE-CVE-2023-39325
Alpine:v3.24go1.21.3-r0ALPINE-CVE-2023-39325
Debian:12golang-1.19no fix listedDEBIAN-CVE-2023-39325
Gogolang.org/x/net0.17.0GO-2023-2102
Gogolang.org/x/net0.17.0GHSA-4374-p667-p6c8
Gostdlib1.20.10, 1.21.3GO-2023-2102
Rocky Linux:8delve0:1.9.1-1.module+el8.8.0+1263+19d1a562RLSA-2023:5721
Rocky Linux:8go-toolset0:1.19.13-1.module+el8.8.0+1526+386b5e05RLSA-2023:5721
Rocky Linux:9go-toolset0:1.19.13-1.el9_2RLSA-2023:5738
Rocky Linux:8golang0:1.19.13-1.module+el8.8.0+1526+386b5e05RLSA-2023:5721
Rocky Linux:8grafana0:7.5.15-5.el8_8RLSA-2023:5863
Rocky Linux:9toolbox0:0.0.99.3-10.el9_2.rocky.0.1RLSA-2023:6077
Ubuntu:22.04:LTSgolang-1.171.17.13-3ubuntu1.2USN-7061-1
Ubuntu:22.04:LTSgolang-1.171.17.13-3ubuntu1.2UBUNTU-CVE-2023-39325
Ubuntu:22.04:LTSgolang-1.181.18.1-1ubuntu1.2UBUNTU-CVE-2023-39325
Ubuntu:22.04:LTSgolang-1.181.18.1-1ubuntu1.2USN-7109-1
Ubuntu:22.04:LTSgolang-1.201.20.3-1ubuntu0.1~22.04.1USN-6574-1
Ubuntu:22.04:LTSgolang-1.201.20.3-1ubuntu0.1~22.04.1UBUNTU-CVE-2023-39325
Ubuntu:22.04:LTSgolang-1.211.21.1-1~ubuntu22.04.2USN-6574-1
Ubuntu:22.04:LTSgolang-1.211.21.1-1~ubuntu22.04.2UBUNTU-CVE-2023-39325

Affected products (as reported)

VendorProductVersions
Go standard library net/http 0 – before 1.20.101.21.0-0 – before 1.21.3
golang.org/x/net golang.org/x/net/http2 0 – before 0.17.0

References