CWE
444
Advisory Published
CVE Published
Updated

CVE-2025-22871: Request smuggling due to acceptance of invalid chunked data in net/http

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 SoftwareAffected VersionHow to fix
Go (Golang) language by Google

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2025-22871?

    CVE-2025-22871 is rated as a medium severity vulnerability affecting the net/http package in Google Go.

  • How does CVE-2025-22871 impact applications?

    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.

  • How do I fix CVE-2025-22871?

    To fix CVE-2025-22871, upgrade to the latest version of Google Go where the vulnerability has been addressed.

  • What versions of Go are affected by CVE-2025-22871?

    CVE-2025-22871 affects all versions of Google Go prior to the patch for this vulnerability.

  • What should I do if I cannot update my Go application to address CVE-2025-22871?

    If you cannot update, implement additional security measures such as using a different server implementation that properly handles request parsing.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203