github.com/prometheus/client_golang
Affected
- introduced
0, fixed1.11.1(semver)
Fixed versions
1.11.1
Fix
- Fixed version
1.11.1go get github.com/prometheus/[email protected]
Advisory
Also known as: CVE-2022-21698, GHSA-cg3q-j54f-5p7p
Uncontrolled resource consumption in github.com/prometheus/client_golang
The Prometheus client_golang HTTP server is vulnerable to a denial of service attack when handling requests with non-standard HTTP methods.
In order to be affected, an instrumented software must use any of the promhttp.InstrumentHandler* middleware except RequestsInFlight; not filter any specific methods (e.g GET) before middleware; pass a metric with a "method" label name to a middleware; and not have any firewall/LB/proxy that filters away requests with unknown "method".
Not rated by the source.
0, fixed 1.11.1 (semver)1.11.1
1.11.1go get github.com/prometheus/[email protected]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
Source: Go Vulnerability Database · CC BY 4.0