GO-2025-3563

Request smuggling due to acceptance of invalid chunked data in net/http

At a glance

Published
Updated
CVE
CVE-2025-22871
Aliases
BIT-golang-2025-22871, GHSA-g9pc-8g42-g6vq

Description

The net/http package improperly accepts a bare LF as a line terminator in chunked data chunk-size lines. This can permit request smuggling if a net/http server is used in conjunction with a server that incorrectly accepts a bare LF as part of a chunk-ext.

Affected packages

PackageVersions
Go · stdlibintroduced 0, fixed 1.23.8, introduced 1.24.0-0, fixed 1.24.2

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database