Live threats

All CVEs / Go standard library

CVE-2023-45288Go standard library net/http

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
3.4%
probability of exploitation in 30 days · percentile 89
Auth required
No
Published
Apr 4, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

An attacker may cause an HTTP/2 endpoint to read arbitrary amounts of header data by sending an excessive number of CONTINUATION frames. Maintaining HPACK state requires parsing and processing all HEADERS and CONTINUATION frames on a connection. When a request's headers exceed MaxHeaderBytes, no memory is allocated to store the excess headers, but they are still parsed. This permits an attacker to cause an HTTP/2 endpoint to read arbitrary amounts of header data, all associated with a request which is going to be rejected. These headers can include Huffman-encoded data which is significantly more expensive for the receiver to decode than for an attacker to send. The fix sets a limit on the amount of excess header frames we will process before closing a connection.

Original NVD text.

What to do

  1. Apply the vendor's security update for net/http.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go golang.org/x/net < 0.23.0 0.23.0 go get golang.org/x/net@v0.23.0
Go golang.org/x/net < 0.23.0 0.23.0 go get golang.org/x/net@v0.23.0
Go golang.org/x/net/http2 < 0.23.0 0.23.0 go get golang.org/x/net/http2@v0.23.0
Go net/http < 1.21.9 1.21.9 go get net/http@v1.21.9
Go net/http ≥ 1.22.0-0 < 1.22.2 1.22.2 go get net/http@v1.22.2
Go stdlib < 1.21.9 1.21.9 go get stdlib@v1.21.9
Go stdlib ≥ 1.22.0-0 < 1.22.2 1.22.2 go get stdlib@v1.22.2

Per OSV / GitHub Advisories (GHSA-4v7x-pqxf-cx7m, GO-2024-2687). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official advisories

Also: SUSE (+15)

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.