CVE-2022-2880 Incorrect sanitization of forwarded query parameters in net/http/httputil
HighCVSS 7.5
EPSS 1.4%
- Published
- Updated
- Exploit status
- No public exploit known
Description
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| stdlib(Go) | < 1.18.7 | 1.18.7 |
| stdlib(Go) | >= 1.19.0-0, < 1.19.2 | 1.19.2 |
| debian/golang-1.19(Debian:12) | < 1.19.2-1 | 1.19.2-1 |
| net/http/httputil(Go) | < 1.18.7 | 1.18.7 |
| net/http/httputil(Go) | >= 1.19.0-0, < 1.19.2 | 1.19.2 |
| ubuntu/golang-1.13(Ubuntu:22.04) | < 1.13.8-1ubuntu2.22.04.2 | 1.13.8-1ubuntu2.22.04.2 |
| ubuntu/golang-1.17(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/golang-1.18(Ubuntu:22.04) | < 1.18.1-1ubuntu1.1 | 1.18.1-1ubuntu1.1 |
| golang go | < 1.18.7 | 1.18.7 |
| golang go | >= 1.19.0, < 1.19.2 | 1.19.2 |
| alpine/go(Alpine:v3.16) | < 1.18.7-r0 | 1.18.7-r0 |
| alpine/go(Alpine:v3.17) | >= 1.19.0, < 1.19.2-r0 | 1.19.2-r0 |
| alpine/go(Alpine:v3.18) | >= 1.19.0, < 1.19.2-r0 | 1.19.2-r0 |
| alpine/go(Alpine:v3.19) | >= 1.19.0, < 1.19.2-r0 | 1.19.2-r0 |
| alpine/go(Alpine:v3.20) | >= 1.19.0, < 1.19.2-r0 | 1.19.2-r0 |
| alpine/go(Alpine:v3.21) | >= 1.19.0, < 1.19.2-r0 | 1.19.2-r0 |
| alpine/go(Alpine:v3.22) | >= 1.19.0, < 1.19.2-r0 | 1.19.2-r0 |
| alpine/go(Alpine:v3.23) | >= 1.19.0, < 1.19.2-r0 | 1.19.2-r0 |
| alpine/go(Alpine:v3.24) | >= 1.19.0, < 1.19.2-r0 | 1.19.2-r0 |
References
- go.dev exploit issue-tracking third-party-advisory
- go.dev patch
- groups.google.com mailing-list release-notes
- Debian Security Tracker CVE-2022-2880 vendor-advisory
- pkg.go.dev vendor-advisory
- security.gentoo.org
- Ubuntu CVE tracker vendor-advisory
- USN-6038-1 vendor-advisory
- USN-6038-2 vendor-advisory
- www.cve.org
- security.alpinelinux.org vendor-advisory