First published: Fri Apr 04 2025(Updated: )
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.
Credit: security@golang.org
Affected Software | Affected Version | How to fix |
---|---|---|
Go (Golang) language by Google |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2025-22871 is rated as a medium severity vulnerability affecting the net/http package in Google Go.
CVE-2025-22871 can lead to request smuggling vulnerabilities if a net/http server interacts with another server that improperly handles bare LF in chunk-size lines.
To fix CVE-2025-22871, upgrade to the latest version of Google Go where the vulnerability has been addressed.
CVE-2025-22871 affects all versions of Google Go prior to the patch for this vulnerability.
If you cannot update, implement additional security measures such as using a different server implementation that properly handles request parsing.