Skip to main content
← All vulnerabilities
CVE-2022-2880GO-2022-1038BIT-GOLANG-2022-2880

Incorrect sanitization of forwarded query parameters in net/http/httputil

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.18.7, 1.19.2
None on Exploit-DB, Metasploit or GitHub

Summary

Requests forwarded by ReverseProxy include the raw query parameters from the inbound request, including unparsable parameters rejected by net/http. This could permit query parameter smuggling when a Go proxy forwards a parameter with an unparsable value. After fix, ReverseProxy sanitizes the query parameters in the forwarded query when the outbound request's Form field is set after the ReverseProxy. Director function returns, indicating that the proxy has parsed the query parameters. Proxies which do not parse query parameters continue to forward the original query parameters unchanged.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • net/http/httputil

    fixed in 1.18.7; From 1.19.0-0 · fixed in 1.19.2

  • stdlibGo

    fixed in 1.18.7; From 1.19.0-0 · fixed in 1.19.2

References 5

go.dev

groups.google.com

pkg.go.dev

security.gentoo.org