CVE-2022-21698: Uncontrolled Resource Consumption in promhttp
Vulnerability summary
CVE-2022-21698 is a high (CVSS 7.5) Uncontrolled Resource Consumption vulnerability in fedoraproject extra_packages_for_enterprise_linux. EPSS estimates a 5.99% chance of exploitation in the next 30 days, higher than 93.3% of scored vulnerabilities.
Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 6% (FIRST, 03-11-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 28 · Related 23Timeline
- 15-02-2022PublishedVulnerability first disclosed.
- 23-04-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
10 scores · 9 sources · 2 versions- OSV · Red hatEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · WolfiEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · GoEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · ChainguardEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
5.99%
Chance of exploitation in the next 30 days
Percentile
93%
Versus all other CVEs
30-day change
No change 0.00 pp
From 5.99% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-400Uncontrolled Resource ConsumptionThe product does not properly control the allocation and maintenance of a limited resource.
- CWE-770Allocation of Resources Without Limits or ThrottlingThe product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Suse63 products
- firewalld&distro=SUSE Linux Enterprise Micro 5.1< 0.9.3-150300.3.6.1
- firewalld&distro=SUSE Linux Enterprise Micro 5.2< 0.9.3-150300.3.6.1
- firewalld&distro=SUSE Linux Enterprise Module for Basesystem 15 SP3< 0.9.3-150300.3.6.1
- firewalld&distro=SUSE Linux Enterprise Module for Desktop Applications 15 SP3< 0.9.3-150300.3.6.1
- golang-github-boynux-squid_exporter&distro=SUSE Multi Linux Manager Tools SLE-12< 1.13.0-120002.3.6.1
Opensuse11 products
- firewalld&distro=openSUSE Leap 15.3< 0.9.3-150300.3.6.1
- golang-github-prometheus-alertmanager&distro=openSUSE Leap 15.3< 0.23.0-150100.4.7.1
- golang-github-prometheus-alertmanager&distro=openSUSE Leap 15.4< 0.23.0-150100.4.7.1
- golang-github-prometheus-node_exporter&distro=openSUSE Leap 15.3< 1.3.0-150100.3.12.1 | < 1.3.0-150100.3.18.1
- golang-github-prometheus-node_exporter&distro=openSUSE Leap 15.4< 1.3.0-150100.3.12.1 | < 1.3.0-150100.3.18.1
Chainguard5 products
- dynamic-localpv-provisioner< 3.4.1-r3
- dynamic-localpv-provisioner-fips< 3.5.0-r0
- harbor-2.14-photon-registryAll versions (No fix recorded) | < 2.14.5-r2 | < 2.14.5-r1
- harbor-fips-2.14-photon-registryAll versions (No fix recorded) | < 2.14.5-r1 | < 2.14.5-r2
- prometheus-postgres-exporter-0.10All versions (No fix recorded)
Redhat3 products
- kubevirt< 0:4.10.1-489.el7 | < 0:4.10.1-489.el8
- kubevirt-virtctl< 0:4.10.1-489.el7 | < 0:4.10.1-489.el8
- kubevirt-virtctl-redistributable< 0:4.10.1-489.el7 | < 0:4.10.1-489.el8
Fedoraproject2 products
- extra_packages_for_enterprise_linux7.0 | 8.0
- fedoraEOL34 | 35 | 36 | 37
Alpine1 product
- buildah< 1.23.4-r0
Debian1 product
- golang-github-prometheus-client-golang< 1.11.1-1
Github.com/prometheus1 product
- client_golang< 1.11.1
Mageia1 product
- golang-github-prometheus-client< 1.11.1-1.mga8
Prometheus1 product
- client_golang< 1.11.1
Rdo_project1 product
- rdona
Ubuntu1 product
- golang-github-prometheus-client-golangAll versions (No fix recorded)
Wolfi1 product
- dynamic-localpv-provisioner< 3.4.1-r3
13 vendors · 92 products
References
101 links- github.com/prometheus/client_golang/security/advisories/GHSA-cg3q-j54f-5p7pAdvisoryARTICLEREPORTWEBIssue TrackingThird Party Advisory
Show all 100 references
Showing 100 of 101.