ADVISORIES

Vulnerability

CVE-2022-21698

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.

92 advisories report this vulnerability, across 13 ecosystems.

Advisories in Red Hat

  • RHSA-2022:1762

    Red Hat Security Advisory: container-tools:rhel8 security, bug fix, and enhancement update

    CVE-2020-28851CVE-2022-1227CVE-2022-21698CVE-2022-27649 Red Hat Updated 25 November 2026
  • RHSA-2022:2280

    Red Hat Security Advisory: OpenShift Container Platform 3.11.705 security update

    CVE-2022-21698CVE-2022-29036CVE-2022-29046 Red Hat Updated 25 November 2026
  • RHSA-2022:4667

    Red Hat Security Advisory: OpenShift Virtualization 4.10.1 RPMs security and bug fix update

    CVE-2022-21698 Red Hat Updated 26 November 2026
  • RHSA-2022:5068

    Red Hat Security Advisory: OpenShift Container Platform 4.11.0 packages and security update

    CVE-2021-43565CVE-2022-1705CVE-2022-1706CVE-2022-21698 Red Hat Updated 25 November 2026
  • RHSA-2022:6042

    Red Hat Security Advisory: Release of OpenShift Serverless Client kn 1.24.0

    CVE-2022-1705CVE-2022-1962CVE-2022-1996CVE-2022-21698 Red Hat Updated 25 November 2026
  • RHSA-2022:6061

    Red Hat Security Advisory: Red Hat OpenStack Platform 16.2 (etcd) security update

    CVE-2022-21698CVE-2022-30631 Red Hat Updated 25 November 2026
  • RHSA-2022:6066

    Red Hat Security Advisory: Red Hat OpenStack Platform 16.1 (etcd) security update

    CVE-2022-21698CVE-2022-30631 Red Hat Updated 26 November 2026
  • RHSA-2022:7519

    Red Hat Security Advisory: grafana security, bug fix, and enhancement update

    CVE-2021-23648CVE-2022-1705CVE-2022-1962CVE-2022-21673 Red Hat Updated 25 November 2026
  • RHSA-2022:7529

    Red Hat Security Advisory: container-tools:3.0 security update

    CVE-2022-1705CVE-2022-1708CVE-2022-1962CVE-2022-21698 Red Hat Updated 25 November 2026
  • RHSA-2022:8057

    Red Hat Security Advisory: grafana security, bug fix, and enhancement update

    CVE-2021-23648CVE-2022-1705CVE-2022-1962CVE-2022-21673 Red Hat Updated 26 November 2026
  • RHSA-2024:0564

    Red Hat Security Advisory: container-tools:3.0 security update

    CVE-2022-21698CVE-2023-28642 Red Hat Updated 25 November 2026
  • RHVEX-CVE-2022-21698

    prometheus/client_golang: Denial of service using InstrumentHandlerCounter

    Moderate CVE-2022-21698 Red Hat Updated 25 November 2026

References