CVE-2022-21698Uncontrolled Resource Consumption in promhttp
- 7.5HighCVSS base score
- 6.0%Exploitation in 30 daysEPSS · top 6.6% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
client_golang is the instrumentation library for Go applications in Prometheus, and the promhttp package in client_golang provides tooling around HTTP servers and clients. In client_golang prior to version 1.11.1, HTTP server is 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 use any of `promhttp.InstrumentHandler*` middleware except `RequestsInFlight`; not filter any specific methods (e.g GET) before middleware; pass metric with `method` label name to our middleware; and not have any firewall/LB/proxy that filters away requests with unknown `method`. client_golang version 1.11.1 contains a patch for this issue. Several workarounds are available, including removing the `method` label name from counter/gauge used in the InstrumentHandler; turning off affected promhttp handlers; adding custom middleware before promhttp handler that will sanitize the request method given by Go http.Request; and using a reverse proxy or web application firewall, configured to only allow a limited set of methods.
Timeline
ID reserved
By GitHub_M
- 3 months later
· 3 months later
Published
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVDNVD · Modified | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 6.0% · top 6.6% of all CVEs (15 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: yes · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Affected products
- affected < 1.11.1
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Gogithub.com/prometheus/client_golangGHSA-cg3q-j54f-5p7p (opens in a new tab)
References
References22
- https://github.com/prometheus/client_golang/security/advisories/GHSA-cg3q-j54f-5p7p (opens in a new tab)x_transferred
- https://github.com/prometheus/client_golang/pull/962 (opens in a new tab)x_transferred
- https://github.com/prometheus/client_golang/pull/987 (opens in a new tab)x_transferred
- https://github.com/prometheus/client_golang/releases/tag/v1.11.1 (opens in a new tab)x_transferred
- FEDORA-2022-5f253807ce (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-6c4cb64314 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-eda0e65b01 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-6043a7b938 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-e244ad73d6 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-a7d438b30b (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-83405f9d5b (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-9dd03cab55 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-c87047f163 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-2067702f06 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-c5383675d9 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-5e637f6cc6 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-396c568c5e (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-92ef43c439 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-fae3ecee19 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-739c7a0058 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-13ad572b5a (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-741325e9a0 (opens in a new tab)vendor-advisoryx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2022-0960 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-cg3q-j54f-5p7p (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2022-21698)Record last updated .