Advisory

GO-2022-0322

Also known as: CVE-2022-21698, GHSA-cg3q-j54f-5p7p

Summary

Uncontrolled resource consumption in github.com/prometheus/client_golang

Details

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".

Severity

Not rated by the source.

Dates

Published
2022-07-15 23:29 UTC
Modified
2026-02-04 02:57 UTC

Affected packages and fixes

github.com/prometheus/client_golang

Go · All systems

Affected

  • introduced 0, fixed 1.11.1 (semver)

Fixed versions

1.11.1

Fix

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