Live threats

All CVEs / Golang

CVE-2023-39326Golang Go

Medium 5.3 No auth needed

Priority
47
CVSS 3.1
5.3
EPSS
1.1%
probability of exploitation in 30 days · percentile 65
Auth required
No
Published
Dec 6, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

What happens

A malicious HTTP sender can use chunk extensions to cause a receiver reading from a request or response body to read many more bytes from the network than are in the body. A malicious HTTP client can further exploit this to cause a server to automatically read a large amount of data (up to about 1GiB) when a handler fails to read the entire body of a request. Chunk extensions are a little-used HTTP feature which permit including additional metadata in a request or response body sent using the chunked encoding. The net/http chunked encoding reader discards this metadata. A sender can exploit this by inserting a large metadata segment with each byte transferred. The chunk reader now produces an error if the ratio of real body to encoded bytes grows too small.

Original NVD text.

What to do

  1. Apply the vendor's security update for Go.
  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 stdlib < 1.20.12 1.20.12 go get stdlib@v1.20.12
Go stdlib ≥ 1.21.0-0 < 1.21.5 1.21.5 go get stdlib@v1.21.5

Per OSV / GitHub Advisories (GO-2023-2382). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
golanggo< 1.20.12
golanggo≥ 1.21.0-0 < 1.21.5

Official advisories

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

Official sources

References

Links published by the sources. Open them with care.