CVE-2022-2880: Requests forwarded by ReverseProxy include the raw query parameters from the inbound request, including unparsable parameters rejected by net/http.
High CVSS 7.5
- CVE id
- CVE-2022-2880
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Go Runtimes and servers |
< 1.18.7 >= 1.19.0, < 1.19.2 |
1.18.7, 1.19.2 |
How to fix it
Upgrade Go to the fixed release of the line you run: 1.18.7, 1.19.2.
go version
- Build with the patched Go release (set "toolchain" in go.mod, or the golang image tag) and redeploy: Go programs include the standard library, so they must be rebuilt.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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.
References
- CVE-2022-2880 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2022-2880
- Web: https://go.dev/cl/432976
- Web: https://go.dev/issue/54663
- Web: https://groups.google.com/g/golang-announce/c/xtuG5faxtaU
- Web: https://pkg.go.dev/vuln/GO-2022-1038
- Web: https://security.gentoo.org/glsa/202311-09
- Web: https://go.dev/cl/432976
- Web: https://go.dev/issue/54663
- Web: https://groups.google.com/g/golang-announce/c/xtuG5faxtaU
- Web: https://pkg.go.dev/vuln/GO-2022-1038
- Web: https://security.gentoo.org/glsa/202311-09
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.