CVE-2022-21698 Details
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 23, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-770 | Allocation of Resources Without Limits or Throttling | [email protected] |
| CWE-400 | Uncontrolled Resource Consumption | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| prometheus client golang | < 1.11.1 |
CPE
Remediation
| |
| fedoraproject fedora | 34 35 36 37 |
CPE
Remediation
| |
| fedoraproject extra packages for enterprise linux | 7.0 8.0 |
CPE
Remediation
| |
| rdo project rdo | All versions |
CPE
Remediation
| |
Change History
23 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Nov 7, 2023 | CVE Modified | [email protected] |
| Jul 24, 2023 | Reanalysis | [email protected] |
| Dec 9, 2022 | Modified Analysis | [email protected] |
| Nov 14, 2022 | CVE Modified | [email protected] |
| Oct 30, 2022 | CVE Modified | [email protected] |
| Jul 4, 2022 | CVE Modified | [email protected] |
| Jul 1, 2022 | CVE Modified | [email protected] |
| Jun 14, 2022 | CPE Deprecation Remap | [email protected] |
| Jun 11, 2022 | CVE Modified | [email protected] |
| Jun 5, 2022 | Modified Analysis | [email protected] |
| May 14, 2022 | CVE Modified | [email protected] |
| May 7, 2022 | CVE Modified | [email protected] |
| May 7, 2022 | CVE Modified | [email protected] |
| Apr 29, 2022 | CVE Modified | [email protected] |
| Apr 20, 2022 | CVE Modified | [email protected] |
| Apr 14, 2022 | CVE Modified | [email protected] |
| Apr 2, 2022 | CVE Modified | [email protected] |
| Mar 29, 2022 | CVE Modified | [email protected] |
| Feb 24, 2022 | Initial Analysis | [email protected] |