cve.bz

CVE-2022-21698 Uncontrolled Resource Consumption

7.5 highEPSS 6.0%Fix available

High (7.5). EPSS 6.0% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/prometheus/client_golang 1.11.1.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
6.0% (unchanged from 6.0% a week ago; 6.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 93rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-04-23. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-770 Allocation of Resources Without Limits or Throttling
CWE-400 Uncontrolled Resource Consumption
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-21698 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-21698?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-21698?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-21698 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
prometheus:client_golangbefore 1.11.1
fedoraproject:fedora34
fedoraproject:fedora35
fedoraproject:fedora36
fedoraproject:extra_packages_for_enterprise_linux7.0
fedoraproject:extra_packages_for_enterprise_linux8.0
fedoraproject:fedora37

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-cg3q-j54f-5p7pGogithub.com/prometheus/client_golang<1.11.11.11.1
GO-2022-0322Gogithub.com/prometheus/client_golang<1.11.11.11.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14golang-github-prometheus-client-golang1.11.1-1DEBIAN-CVE-2022-21698
Ubuntu18.04:LTS, 20.04:LTS, 22.04:LTS and 4 moregolang-github-prometheus-client-golangno fix listedUBUNTU-CVE-2022-21698
Red Hatcontainer_native_virtualization:4.10::el7kubevirt, kubevirt-virtctl, kubevirt-virtctl-redistributable0:4.10.1-489.el7RHSA-2022:4667
Red Hatcontainer_native_virtualization:4.10::el8kubevirt, kubevirt-virtctl, kubevirt-virtctl-redistributable0:4.10.1-489.el8RHSA-2022:4667
Red Hatenterprise_linux:8::appstreambuildah, buildah-tests, buildah-debuginfo and 2 more0:1.19.9-6.module+el8.7.0+16212+65e1b35fRHSA-2022:7529
Red Hatenterprise_linux:8::appstreambuildah, buildah-tests, buildah-debuginfo and 2 more1:1.24.2-4.module+el8.6.0+14673+621cb8beRHSA-2022:1762
Red Hatenterprise_linux:8::appstreamcockpit-podman0:29-2.module+el8.7.0+16212+65e1b35fRHSA-2022:7529
Red Hatenterprise_linux:8::appstreamcockpit-podman0:43-1.module+el8.6.0+14673+621cb8beRHSA-2022:1762
Red Hatenterprise_linux:8::appstreamconmon, conmon-debuginfo, conmon-debugsource2:2.0.26-3.module+el8.7.0+16212+65e1b35fRHSA-2022:7529
Red Hatenterprise_linux:8::appstreamconmon, conmon-debuginfo, conmon-debugsource2:2.1.0-1.module+el8.6.0+14673+621cb8beRHSA-2022:1762
Red Hatenterprise_linux:8::appstreamcontainer-selinux2:2.179.1-1.module+el8.6.0+14673+621cb8beRHSA-2022:1762
Red Hatenterprise_linux:8::appstreamcontainer-selinux2:2.189.0-1.module+el8.7.0+16212+65e1b35fRHSA-2022:7529
Red Hatenterprise_linux:8::appstreamcontainernetworking-plugins, containernetworking-plugins-debuginfo, containernetworking-plugins-debugsource0:0.9.1-1.module+el8.7.0+16212+65e1b35fRHSA-2022:7529
Red Hatenterprise_linux:8::appstreamcontainernetworking-plugins, containernetworking-plugins-debuginfo, containernetworking-plugins-debugsource1:1.0.1-2.module+el8.6.0+14673+621cb8beRHSA-2022:1762
200 more for Red Hat in the JSON and on Red Hat's page.
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatefdupes1.61-90002.3.3.1SUSE-SU-2026:2763-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatego1.22-EL1.22.9-90002.1.3.2SUSE-SU-2026:2763-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updategolang-github-prometheus-promu0.17.0-90002.3.6.3SUSE-SU-2026:2763-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updategolang-packaging15.0.17-90002.3.3.1SUSE-SU-2026:2763-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundle-libsodium1.0.21-90002.3.3.1SUSE-SU-2026:2763-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundle-swig4.1.1-90002.3.3.1SUSE-SU-2026:2763-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundle-zeromq4.3.5-90002.3.9.1SUSE-SU-2026:2763-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy, saltbundlepy-core3.11.15-90002.4.12.2SUSE-SU-2026:2763-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-docker7.1.0-90002.4.3.2SUSE-SU-2026:2763-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-lxml6.0.2-90002.3.6.2SUSE-SU-2026:2763-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-m2crypto0.45.1-90002.3.14.1SUSE-SU-2026:2763-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-passlib, saltbundlepy-passlib-test1.7.4-90002.3.9.2SUSE-SU-2026:2763-1
74 more for SUSE in the JSON and on SUSE's page.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This flaw has been rated as having a moderate impact for two main reasons. The opportunity for a Denial of Service is limited to the golang runtime. In the case of OpenShift Container Platform, this would be restricted within each individual container. Additionally, this is in alignment with upstream's (the Prometheus project) impact rating.

ProductPackageStateAdvisory
Logging subsystem for Red Hat OpenShift 5.4openshift-logging/elasticsearch-proxy-rhel8:v1.0.0-163Fixed 2022-04-20RHSA-2022:1461
Logging subsystem for Red Hat OpenShift 5.4openshift-logging/elasticsearch-rhel8-operator:v5.4.1-4Fixed 2022-05-11RHSA-2022:2216
OADP-1.0-RHEL-8oadp/oadp-registry-rhel8:1.0.4-6Fixed 2022-09-13RHSA-2022:6430
OADP-1.0-RHEL-8oadp/oadp-mustgather-rhel8:1.0.5-20Fixed 2022-10-31RHSA-2022:7261
OADP-1.0-RHEL-8oadp/oadp-rhel8-operator:1.0.5-16Fixed 2022-10-31RHSA-2022:7261
OADP-1.1-RHEL-8oadp/oadp-velero-plugin-rhel8:1.1.0-20Fixed 2022-09-01RHSA-2022:6290
OADP-1.1-RHEL-8oadp/oadp-velero-rhel8:1.1.6-7Fixed 2023-09-20RHSA-2023:5314
OpenShift Logging 5.2openshift-logging/elasticsearch-proxy-rhel8:v1.0.0-168Fixed 2022-05-11RHSA-2022:2218
OpenShift Logging 5.2openshift-logging/elasticsearch-rhel8-operator:v5.2.10-5Fixed 2022-05-11RHSA-2022:2218
OpenShift Logging 5.3openshift-logging/elasticsearch-proxy-rhel8:v1.0.0-171Fixed 2022-05-11RHSA-2022:2217
Cost Management Metrics Operatorcostmanagement-metrics-operator-containerAffected
Migration Toolkit for Containersrhmtc/openshift-migration-controller-rhel8Affected
Migration Toolkit for Containersrhmtc/openshift-migration-velero-restic-restore-helper-rhel8Affected
Migration Toolkit for Containersrhmtc/openshift-migration-velero-rhel8Affected
Migration Toolkit for Containersrhmtc/openshift-velero-plugin-rhel8Affected
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-controller-rhel9Affected
Multicluster Engine for Kubernetesmulticluster-engine/kube-rbac-proxy-mce-rhel8Not affected
OpenShift Developer Tools and ServiceshelmAffected
OpenShift Developer Tools and Servicesjenkins-operator-containerWill not fix
OpenShift Developer Tools and Servicesocp-tools-4/service-binding-rhel8-operatorWill not fix
417 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-21698.

Attack patterns (CAPEC)

  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement
  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-770 (20).

References

Check your stackJSON