Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

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

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

URLSource(s)Tag(s)
https://github.com/prometheus/client_golang/pull/962 CVEPatchThird Party Advisory
https://github.com/prometheus/client_golang/pull/987 CVEPatchThird Party Advisory
https://github.com/prometheus/client_golang/releases/tag/v1.11.1 CVERelease NotesThird Party Advisory
https://github.com/prometheus/client_golang/security/advisories/GHSA-cg3q-j54f-5p7p CVEIssue TrackingThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2IK53GWZ475OQ6ENABKMJMTOBZG6LXUR/ CVE

see all 44 references

Weakness Enumeration

CWE-IDCWE NameSource
CWE-770Allocation of Resources Without Limits or Throttling[email protected]
CWE-400Uncontrolled Resource Consumption[email protected]

Affected Products

ProductVersions
prometheus client golang
< 1.11.1

CPE

  • cpe:2.3:a:prometheus:client_golang:*:*:*:*:*:go:*:*

Remediation

  • No remediation found in references.
fedoraproject fedora
34
35
36
37

CPE

  • cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
  • cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
  • cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*
  • cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*

Remediation

  • No remediation found in references.
fedoraproject extra packages for enterprise linux
7.0
8.0

CPE

  • cpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:7.0:*:*:*:*:*:*:*
  • cpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:8.0:*:*:*:*:*:*:*

Remediation

  • No remediation found in references.
rdo project rdo
All versions

CPE

  • cpe:2.3:a:rdo_project:rdo:-:*:*:*:*:*:*:*

Remediation

  • No remediation found in references.

Change History

23 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2022-21698
NVD Published Date:
Feb 15, 2022
NVD Last Modified:
Jun 17, 2026
Source:
[email protected]
CVE-2022-21698 Details - Not Deferred