CVE-2023-39325

HTTP/2 rapid reset can cause excessive work in net/http

No CVSS score yet EPSS 3.85%

Published 11 Oct 2023 Updated 13 Feb 2025 CNA: Go

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.

Exploitation

EPSS 3.85%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 90.9% of all scored CVEs. Scores of 26 Nov 2026.

Affected products

As the CNA lists them.

ProductVersions
net/http
package net/http
affected before 1.20.10
affected from 1.21.0-0, before 1.21.3
Other versions: unaffected
golang.org/x/net/http2
package golang.org/x/net/http2
affected before 0.17.0
Other versions: unaffected

Is my server affected?

Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in their own package version, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2023-39325 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2023-39325

RHEL, Rocky, Alma, Fedora

rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2023-39325

Alpine

apk list --installed | grep -i PACKAGE

With Trivy, on the host and for a container image; it prints the installed and the fixed version when a package is affected:

trivy rootfs --scanners vuln / | grep CVE-2023-39325
trivy image --scanners vuln IMAGE | grep CVE-2023-39325

Patchbrief matches the package lists of your Linux servers and containers every day against the Trivy vulnerability database, which covers the packages of Linux distributions and language packages (npm, PyPI, Go, Maven and others), and sends one digest with the command that fixes each problem. Install the agent.

References

Other references

31 more

Guides

Source: the record CVE-2023-39325 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.