Lucene search

K
cvelistGoCVELIST:CVE-2022-2880
HistoryOct 14, 2022 - 12:00 a.m.

CVE-2022-2880 Incorrect sanitization of forwarded query parameters in net/http/httputil

2022-10-1400:00:00
Go
www.cve.org
cve-2022-2880
query parameter smuggling
reverseproxy

7.8 High

AI Score

Confidence

High

0.002 Low

EPSS

Percentile

52.3%

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.

CNA Affected

[
  {
    "vendor": "Go standard library",
    "product": "net/http/httputil",
    "collectionURL": "https://pkg.go.dev",
    "packageName": "net/http/httputil",
    "versions": [
      {
        "version": "0",
        "lessThan": "1.18.7",
        "status": "affected",
        "versionType": "semver"
      },
      {
        "version": "1.19.0-0",
        "lessThan": "1.19.2",
        "status": "affected",
        "versionType": "semver"
      }
    ],
    "programRoutines": [
      {
        "name": "ReverseProxy.ServeHTTP"
      }
    ],
    "defaultStatus": "unaffected"
  }
]