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

High 7.5 Published Updated

A malicious HTTP/2 client can cause excessive server resource consumption by rapidly creating and resetting requests, leading to denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-39325?

CVE-2023-39325 is a high-severity denial of service vulnerability in Fedoraproject Fedora, published on 11 Oct 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

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.

Weakness: CWE-770

Which versions are affected by CVE-2023-39325?

5 open source packages ship an affected version, including golang.org/x/net, golang and stdlib. It affects 5 products.

PackageAffectedFixed in
golang.org/x/net GoAll versions0.17.0
golang.org/x/net GoAll versions0.17.0
golang.org/x/net GoAll versions0.17.0
golang BitnamiFrom 1.20.01.20.10, 1.21.3
stdlib GoAll versions1.20.10, 1.21.3
Linux distribution packages (22)
receptor Red Hat:ansible_automation_platform:2.2::el8All versions0:1.4.2-1.el8ap
receptorctl Red Hat:ansible_automation_platform:2.2::el8All versions0:1.4.2-1.el8ap
receptor Red Hat:ansible_automation_platform:2.2::el9All versions0:1.4.2-1.el9ap
receptorctl Red Hat:ansible_automation_platform:2.2::el9All versions0:1.4.2-1.el9ap
receptor Red Hat:ansible_automation_platform:2.3::el8All versions0:1.4.2-1.el8ap
receptorctl Red Hat:ansible_automation_platform:2.3::el8All versions0:1.4.2-1.el8ap
receptor Red Hat:ansible_automation_platform:2.3::el9All versions0:1.4.2-1.el9ap
receptorctl Red Hat:ansible_automation_platform:2.3::el9All versions0:1.4.2-1.el9ap
receptor Red Hat:ansible_automation_platform_developer:2.3::el8All versions0:1.4.2-1.el8ap
receptorctl Red Hat:ansible_automation_platform_developer:2.3::el8All versions0:1.4.2-1.el8ap
receptor Red Hat:ansible_automation_platform_developer:2.3::el9All versions0:1.4.2-1.el9ap
receptorctl Red Hat:ansible_automation_platform_developer:2.3::el9All versions0:1.4.2-1.el9ap
receptor Red Hat:ansible_automation_platform_inside:2.3::el8All versions0:1.4.2-1.el8ap
receptorctl Red Hat:ansible_automation_platform_inside:2.3::el8All versions0:1.4.2-1.el8ap
receptor Red Hat:ansible_automation_platform_inside:2.3::el9All versions0:1.4.2-1.el9ap
receptorctl Red Hat:ansible_automation_platform_inside:2.3::el9All versions0:1.4.2-1.el9ap
openshift-gitops-kam Red Hat:openshift_gitops:1.10::el8All versions0:1.10.1-22.el8
openshift-gitops-kam-redistributable Red Hat:openshift_gitops:1.10::el8All versions0:1.10.1-22.el8
fake-gcs-server openSUSE:TumbleweedAll versions1.56.1-1.1
go1.20 openSUSE:TumbleweedAll versions1.20.10-1.1
go1.21 openSUSE:TumbleweedAll versions1.21.3-1.1
velero openSUSE:TumbleweedAll versions1.12.1-1.1

Products include Fedoraproject Fedora, Golang Go, Golang Http2, Netapp Astra Trident, Netapp Astra Trident Autosupport.

How do I fix CVE-2023-39325?

Upgrade golang.org/x/net to 0.17.0 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2023-39325 being exploited?

There is no known exploitation of CVE-2023-39325 in the wild and no public exploit code.

Public exploit code: 1 proofs of concept on GitHub.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as AZL-31310, AZL-31608, AZL-31609, AZL-31616, AZL-31639, AZL-31645 and 62 more.

Is CVE-2023-39325 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free