Advisory

GO-2022-1038

Also known as: BIT-golang-2022-2880, CVE-2022-2880

Summary

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

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.

Severity

Not rated by the source.

Dates

Published
2022-10-06 16:42 UTC
Modified
2026-07-15 16:30 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • introduced 0, fixed 1.18.7, introduced 1.19.0-0, fixed 1.19.2 (semver)

Fixed versions

1.18.7, 1.19.2

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences