This is the Go client library for Prometheus. It has two separate parts, one for instrumenting application code, and one for creating clients that talk to the Prometheus HTTP API. clientgolang is the instrumentation library for Go applications in Prometheus, and the promhttp package in clientgolang provides tooling around HTTP servers and clients.
HTTP server susceptible to a Denial of Service through unbounded cardinality, and potential memory exhaustion, when handling requests with non-standard HTTP methods.
In order to be affected, an instrumented software must
promhttp.InstrumentHandler*
middleware except RequestsInFlight
.method
label name to our middleware.method
.If you cannot upgrade to v1.11.1 or above, in order to stop being affected you can:
method
label name from counter/gauge you use in the InstrumentHandler.If you have any questions or comments about this advisory:
prometheus-team@googlegroups.com
{ "nvd_published_at": "2022-02-15T16:15:00Z", "cwe_ids": [ "CWE-400", "CWE-772" ], "severity": "HIGH", "github_reviewed": true, "github_reviewed_at": "2022-02-16T22:26:35Z" }