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.
CVE-2022-21698
This high-severity CVE scores 7.5 under NVD CVSS v3. EPSS exploit probability: 0.4%, top 40% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 7.5
- EG Score
- 7.5(medium)
- EPSS
- 92.5%
- KEV
- Not listed
Published
February 15, 2022
Last Modified
November 21, 2024
References (44)
- security-advisories@githubhttps://github.com/prometheus/client_golang/pull/962
- security-advisories@githubhttps://github.com/prometheus/client_golang/pull/987
- security-advisories@githubhttps://github.com/prometheus/client_golang/releases/tag/v1.11.1
- security-advisories@githubhttps://github.com/prometheus/client_golang/security/advisories/GHSA-cg3q-j54f-5p7p
- security-advisories@githubhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2IK53GWZ475OQ6ENABKMJMTOBZG6LXUR/
- security-advisories@githubhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2PFW6Q2LXXWTFRTMTRN4ZGADFRQPKJ3D/
- security-advisories@githubhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/36GUEPA5TPSC57DZTPYPBL6T7UPQ2FRH/
- security-advisories@githubhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3L6GDN5S5QZSCFKWD3GKL2RDZQ6B4UWA/
- security-advisories@githubhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4KDETHL5XCT6RZN2BBNOCEXRZ2W3SFU3/
- security-advisories@githubhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5OGNAFVXSMTTT2UPH6CS3IH6L3KM42Q7/
- security-advisories@githubhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7V7I72LSQ3IET3QJR6QPAVGJZ4CBDLN5/
- security-advisories@githubhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AK7CJBCGERCRXYUR2EWDSSDVAQMTAZGX/
- security-advisories@githubhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DLUJZV3HBP56ADXU6QH2V7RNYUPMVBXQ/
- security-advisories@githubhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FY3N7H6VSDZM37B4SKM2PFFCUWU7QYWN/
- security-advisories@githubhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HLAQRRGNSO5MYCPAXGPH2OCSHOGHSQMQ/
Vendor Advisories for CVE-2022-21698(20)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- CVE-2022-21698Microsoft Security Response Center (MSRC)
CVE-2022-21698
- RHSA-2026:0722Red Hat Product SecurityHigh
Red Hat Security Advisory: multicluster engine for Kubernetes v2.8.4 security update
- RHSA-2025:23528Red Hat Product SecurityHigh
Red Hat Security Advisory: multicluster engine for Kubernetes 2.6 security update
- RHSA-2025:22684Red Hat Product SecurityHigh
Red Hat Security Advisory: Red Hat Advanced Cluster Management for Kubernetes 2.12.6 security update
- RHSA-2025:22683Red Hat Product SecurityMedium
Red Hat Security Advisory: multicluster engine for Kubernetes v2.7.7 security update
- RHSA-2024:4631Red Hat Product SecurityHigh
Red Hat Security Advisory: Red Hat OpenShift Dev Spaces 3.15.0 release
- RHSA-2024:2944Red Hat Product SecurityHigh
Red Hat Security Advisory: AMQ Broker 7.12.0.OPR.1.GA Container Images release and security update
- RHSA-2024:0564Red Hat Product SecurityMedium
Red Hat Security Advisory: container-tools:3.0 security update
- +12 more
Weakness Classification(2)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(22)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
- Red HatRHBA-2022:5876MODERATE2022-02-15
RHBA-2022:5876 — Moderate
- Red HatRHSA-2022:1356MODERATE2022-02-15
RHSA-2022:1356 — Moderate
- Red HatRHSA-2022:1461MODERATE2022-02-15
RHSA-2022:1461 — Moderate
- Red HatRHSA-2022:1762MODERATE2022-02-15
RHSA-2022:1762 — Moderate
- Red HatRHSA-2022:2216MODERATE2022-02-15
RHSA-2022:2216 — Moderate
- Red HatRHSA-2022:2217MODERATE2022-02-15
RHSA-2022:2217 — Moderate
- Red HatRHSA-2022:2218MODERATE2022-02-15
RHSA-2022:2218 — Moderate
- Red HatRHSA-2022:2280MODERATE2022-02-15
RHSA-2022:2280 — Moderate
- Red HatRHSA-2022:4667MODERATE2022-02-15
RHSA-2022:4667 — Moderate
- Red HatRHSA-2022:5026MODERATE2022-02-15
RHSA-2022:5026 — Moderate
- Red HatRHSA-2022:5068MODERATE2022-02-15
RHSA-2022:5068 — Moderate
- Red HatRHSA-2022:5069MODERATE2022-02-15
RHSA-2022:5069 — Moderate
- Red HatRHSA-2022:5070MODERATE2022-02-15
RHSA-2022:5070 — Moderate
- Red HatRHSA-2022:6040MODERATE2022-02-15
RHSA-2022:6040 — Moderate
- Red HatRHSA-2022:6042MODERATE2022-02-15
RHSA-2022:6042 — Moderate
- Red HatRHSA-2022:6051MODERATE2022-02-15
RHSA-2022:6051 — Moderate
- Red HatRHSA-2022:6061MODERATE2022-02-15
RHSA-2022:6061 — Moderate
- Red HatRHSA-2022:6066MODERATE2022-02-15
RHSA-2022:6066 — Moderate
- Red HatRHSA-2022:6156MODERATE2022-02-15
RHSA-2022:6156 — Moderate
- Red HatRHSA-2022:6290MODERATE2022-02-15
RHSA-2022:6290 — Moderate
- Red HatRHSA-2022:6430MODERATE2022-02-15
RHSA-2022:6430 — Moderate
- Red HatRHSA-2022:7261MODERATE2022-02-15
RHSA-2022:7261 — Moderate
Frequently asked(5)
What is CVE-2022-21698?
When was CVE-2022-21698 disclosed?
Is CVE-2022-21698 actively exploited?
What is the CVSS score of CVE-2022-21698?
How do I remediate CVE-2022-21698?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2022-21698
Is Your Infrastructure Affected by CVE-2022-21698?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.