CVE-2022-21698 json
Uncontrolled Resource Consumption in promhttp
published 2022-02-15 4 y ago modified 2026-09-10 1 mo ago also GHSA-cg3q-j54f-5p7p , GO-2022-0322 , EUVD-2022-0960
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 6.0%
- EPSS 6.0% chance of exploitation in 30 days, percentile 93%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/prometheus/client_golang 1.11.1
- prometheus client_golang 1.11.1
- golang-github-prometheus-client-golang Debian 14, Debian 13, Debian 12 1.11.1-1
debian advisories DEBIAN-CVE-2022-21698
- crit RHEL 8 3.15-1.module+el8.7.0+16212+65e1b35f
- criu RHEL 8 3.15-1.module+el8.7.0+16212+65e1b35f
- crun RHEL 8 0.18-3.module+el8.7.0+16212+65e1b35f
- runc RHEL 8 1.0.0-73.rc95.module+el8.7.0+16212+65e1b35f
- udica RHEL 8 0.2.4-1.module+el8.7.0+16212+65e1b35f
- conmon RHEL 8 2:2.0.26-3.module+el8.7.0+16212+65e1b35f
- podman RHEL 8 3.0.1-13.module+el8.7.0+16212+65e1b35f
- skopeo RHEL 8 1:1.2.4-2.module+el8.7.0+16212+65e1b35f
red hat advisories RHSA-2024:0564RHSA-2022:7529RHSA-2022:1762RHSA-2022:7519RHSA-2022:8057RHSA-2022:6066
- golang-github-vpenso-prometheus_slurm_exporter SLES 15 SP6-LTSS, SLE Module for Package Hub 15 SP7, SLE Module for HPC 15 SP7 +4 more 0.20-150300.3.11.2
- grafana Manager Client Tools 15 12.4.5-150000.1.98.1
- golang-github-prometheus-prometheus Manager Client Tools 15 3.5.4-150000.3.75.1
- golang-github-prometheus-alertmanager Manager Client Tools 15 0.28.1-150100.4.34.1
- uyuni-tools Multi-Linux Manager Server Extension for SLE 5.1, Multi-Linux Manager Proxy Extension for SLE 5.1 5.1.29-150700.3.26.1
- suse-multi-linux-manager-5.1-s390x-server-image Multi-Linux Manager Server Extension for SLE 5.1 5.1.4-8.20.34
- suse-multi-linux-manager-5.1-x86_64-server-image Multi-Linux Manager Server Extension for SLE 5.1 5.1.4-8.20.34
- suse-multi-linux-manager-5.1-aarch64-server-image Multi-Linux Manager Server Extension for SLE 5.1 5.1.4-8.20.34
suse advisories SUSE-SU-2026:4106-1SUSE-SU-2026:3714-1SUSE-SU-2026:2774-1SUSE-SU-2026:2768-1SUSE-SU-2026:2766-1SUSE-SU-2026:2765-1
- kured openSUSE Tumbleweed 1.23.0-1.1
- ctop openSUSE Leap 16.0 0.7.7-bp160.2.1
- golang-github-QubitProducts-exporter_exporter openSUSE Tumbleweed 0.4.0-16.1
- prometheus-postgres_exporter openSUSE Tumbleweed 0.10.1-6.1
- kubeseal openSUSE Tumbleweed 0.17.4-1.1
- golang-github-prometheus-node_exporter openSUSE Tumbleweed 1.3.1-2.1
- podman openSUSE Tumbleweed 4.2.1-2.1
opensuse advisories openSUSE-SU-2026:12271-1openSUSE-SU-2026:21379-1openSUSE-SU-2026:10634-1openSUSE-SU-2026:10644-1openSUSE-SU-2024:11965-1openSUSE-SU-2024:12259-1
- grafana AlmaLinux 9 7.5.15-3.el9
- grafana AlmaLinux 8 7.5.15-3.el8
- crit AlmaLinux 8 3.15-1.module_el8.6.0+2876+9ed4eae2
- crit AlmaLinux 8 3.15-1.module_el8.6.0+3136+bfcd65b6
- criu AlmaLinux 8 3.15-1.module_el8.6.0+2876+9ed4eae2
- criu AlmaLinux 8 3.15-1.module_el8.6.0+3136+bfcd65b6
- crun AlmaLinux 8 0.18-3.module_el8.6.0+2876+9ed4eae2
- crun AlmaLinux 8 0.18-3.module_el8.6.0+3136+bfcd65b6
almalinux advisories ALSA-2022:8057ALSA-2022:7519ALSA-2022:7529ALSA-2022:1762
- grafana Rocky Linux 9 7.5.15-3.el9
- criu Rocky Linux 8 3.15-1.module+el8.7.0+1076+9b1c11c1
- criu Rocky Linux 8 3.15-1.module+el8.4.0+556+40122d08
- criu Rocky Linux 8 3.15-1.module+el8.5.0+709+440d5e7e
- criu Rocky Linux 8 3.15-1.module+el8.6.0+783+10209741
- crun Rocky Linux 8 0.18-3.module+el8.7.0+1076+9b1c11c1
- crun Rocky Linux 8 0.18-3.module+el8.6.0+783+10209741
- runc Rocky Linux 8 1.0.0-73.rc95.module+el8.7.0+1076+9b1c11c1
rocky linux advisories RLSA-2022:8057RLSA-2022:7529RLSA-2022:7519RLSA-2022:1762
- buildah Alpine 3.15 1.23.4-r0
alpine advisories ALPINE-CVE-2022-21698
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kured CBL-Mariner 2.0 1.13.2-1
- application-gateway-kubernetes-ingress CBL-Mariner 2.0 1.4.0-17
- kube-vip-cloud-provider CBL-Mariner 2.0 0.0.2-14
- local-path-provisioner CBL-Mariner 2.0 0.0.21-14
- moby-buildx CBL-Mariner 2.0 0.7.1-16
- moby-cli CBL-Mariner 2.0 20.10.27-5
- moby-engine CBL-Mariner 2.0 20.10.27-3
- nmi CBL-Mariner 2.0 1.8.11-2
azure linux advisories AZL-31981AZL-33567AZL-33603AZL-33611AZL-33614AZL-33618
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
- github.com/prometheus/client_golang#962 pull request
- github.com/prometheus/client_golang#987 pull request
- github.com/prometheus/client_golang/releases/tag/v1.11.1 release
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-21698 updated cvss 7.5
prometheus/client_golang: Denial of service using InstrumentHandlerCounter
-
Red Hat Cost Management Metrics Operator costmanagement/costmanagement-metrics-rhel8-operator Red Hat Migration Toolkit for Containers rhmtc/openshift-velero-plugin-rhel8, rhmtc/openshift-migration-velero-rhel8, rhmtc/openshift-migration-controller-rhel8, rhmtc/openshift-migration-velero-restic-restore-helper-rhel8 Red Hat Migration Toolkit for Virtualization migration-toolkit-virtualization/mtv-controller-rhel9affected: no fix available
-
Red Hat OpenShift Developer Tools and Services odo, helm, source-to-image-container, jenkins-operator-container, ocp-tools-4/service-binding-rhel8-operatoraffected: no fix available, no fix planned “Will not fix”
-
Red Hat OpenShift Pipelines openshift-pipelines-client Red Hat OpenShift Serverless openshift-serverless-1/openshift-serverless-1-eventing-kafka-channel-webhook-rhel8affected: no fix planned “Will not fix”
-
Red Hat OpenShift Service Mesh 2.0 servicemesh, servicemesh-mixc, servicemesh-mixs, servicemesh-grafana, servicemesh-istioctl, servicemesh-operator, +4 moreaffected: no fix available
-
Red Hat OpenShift Service Mesh 2.1 servicemesh, servicemesh-cni, servicemesh-grafana, servicemesh-pilot-agent, servicemesh-pilot-discovery, openshift-service-mesh/kiali-rhel8affected: no fix planned “Will not fix”
-
Red Hat 3scale API Management Platform 2 3scale-amp26/3scale-operator, 3scale-amp2/apicast-rhel9-operator Red Hat Advanced Cluster Management for Kubernetes 2 client_golang Red Hat AMQ Broker 7 ansible-automation-platform-24/controller-rhel8-operatoraffected: no fix available
-
Red Hat Enterprise Linux 7 podman, buildah Red Hat Enterprise Linux 8 podman, skopeo, buildah, podman-tests, skopeo-tests, buildah-tests, +7 moreaffected: no fix planned “Out of support scope”
-
Red Hat OpenShift Container Platform 3.11 atomic-openshift, openshift3/grafana, atomic-openshift-pod, atomic-openshift-node, atomic-openshift-tests, atomic-openshift-master, +11 moreaffected: no fix available, no fix planned “Will not fix”
show 18 moreshow fewer
-
Red Hat OpenShift Container Platform 4 podman, skopeo, openshift, podman-tests, skopeo-tests, podman-docker, +88 moreaffected: no fix available, no fix planned “Out of support scope”
-
Red Hat OpenShift Container Platform Assisted Installer 1 rhai-tech-preview/assisted-installer-rhel8 Red Hat OpenShift distributed tracing 2 rhosdt/opentelemetry-rhel8-operator, rhosdt/opentelemetry-collector-rhel8affected: no fix available
-
Red Hat OpenShift GitOps openshift-gitops-1/argocd-rhel8, openshift-gitops-1/gitops-rhel8, openshift-gitops-1/applicationset-rhel8, openshift-gitops-1/openshift-gitops-operatoraffected: no fix available, no fix planned “Will not fix”
-
Red Hat OpenShift Virtualization 2 kubevirt, kubemacpool-container, virt-launcher-container, ovs-cni-plugin-container, virt-cdi-cloner-container, vm-import-virtv2v-container, +8 moreaffected: no fix planned “Will not fix”
-
Red Hat OpenShift Virtualization 4 container-native-virtualization/kubemacpool, container-native-virtualization/virt-launcher, container-native-virtualization/libguestfs-tools, container-native-virtualization/virt-launcher-rhel9, container-native-virtualization/virt-cdi-cloner-rhel9, container-native-virtualization/vm-import-virtv2v-rhel8, +6 moreaffected: no fix available, no fix planned “Will not fix”
-
Red Hat OpenStack Platform 16.1 smart-gateway-containeraffected: no fix planned “Out of support scope”
-
Red Hat Quay 3 quay/quay-rhel8, quay/clair-rhel8, quay-bridge-operator, quay/quay-builder-rhel8, quay/quay-operator-rhel8, quay/quay-container-security-operator-rhel8affected: no fix available, no fix planned “Will not fix”
-
Red Hat Service Telemetry Framework 1.3 for RHEL 8 stf/sg-core-rhel8 Red Hat Service Telemetry Framework 1.5 stf/sg-core-rhel8affected: no fix planned “Will not fix”
-
Red Hat Advanced Cluster Management for Kubernetes 2 rhacm2/work-rhel8, rhacm2/search-rhel8, rhacm2/subctl-rhel9, rhacm2/thanos-rhel7, rhacm2/volsync-rhel8, rhacm2/placement-rhel8, +57 more Red Hat Advanced Cluster Security 3 advanced-cluster-security/rhacs-docs-rhel8, advanced-cluster-security/rhacs-main-rhel8, advanced-cluster-security/rhacs-scanner-rhel8 Red Hat Ceph Storage 4 rhceph/rhceph-4-dashboard-rhel8 Red Hat Ceph Storage 5 rhceph/rhceph-5-dashboard-rhel8 Red Hat Openshift Container Storage 4 mcg, ocs4/cephcsi-rhel8, ocs4/mcg-rhel8-operator, odf4/ocs-rhel9-operator, ocs4/rook-ceph-rhel8-operator, ocs4/volume-replication-rhel8-operator Red Hat Quay 3 quay/quay-openshift-bridge-rhel8-operatorunder investigation
-
Red Hat CNV 4.10 for RHEL 7 kubevirt 4.10.1-489.el7, kubevirt-virtctl 4.10.1-489.el7, kubevirt-virtctl-redistributable 4.10.1-489.el7 Red Hat CNV 4.10 for RHEL 8 kubevirt 4.10.1-489.el8, kubevirt-virtctl 4.10.1-489.el8, kubevirt-virtctl-redistributable 4.10.1-489.el8, container-native-virtualization/hostpath-csi-driver v4.10.2-1, container-native-virtualization/hostpath-csi-driver-rhel8 v4.10.2-1fixed: vendor fix RHSA-2022:4667
-
Red Hat Middleware Containers for OpenShift amq7/amq-broker-rhel8-operator 7.12.0-16, amq7/amq-broker-rhel8-operator-bundle 7.12.0-10fixed: vendor fix RHSA-2024:2944
-
Red Hat multicluster engine for Kubernetes 2.6 multicluster-enginefixed: vendor fix RHSA-2025:23528
-
Red Hat multicluster engine for Kubernetes 2.7 multicluster-enginefixed: vendor fix RHSA-2025:22683
-
Red Hat multicluster engine for Kubernetes 2.8 multicluster-engine 1766274324fixed: vendor fix RHSA-2026:0722
-
Red Hat OpenShift API for Data Protection 1.0 oadp/oadp-registry-rhel8 1.0.4-6, oadp/oadp-rhel8-operator 1.0.5-16, oadp/oadp-mustgather-rhel8 1.0.5-20fixed: vendor fix RHSA-2022:7261
-
Red Hat OpenShift API for Data Protection 1.1 oadp/oadp-velero-rhel8 1.1.6-7, oadp/oadp-velero-plugin-rhel8 1.1.0-20fixed: vendor fix RHSA-2022:6290
-
Red Hat OpenShift Logging 5.2 openshift-logging/elasticsearch-proxy-rhel8 v1.0.0-168, openshift-logging/elasticsearch-rhel8-operator v5.2.10-5fixed: vendor fix RHSA-2022:2218
-
Red Hat OpenShift Logging 5.3 openshift-logging/elasticsearch-proxy-rhel8 v1.0.0-171, openshift-logging/elasticsearch-rhel8-operator v5.3.7-5fixed: vendor fix RHSA-2022:2217
19 more fixed, 30 more not affected in the full advisory
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
5.99% chance of exploitation in the next 30 days, higher than 93% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/prometheus/client_golang | <1.11.1 |
1.11.1 |
Affected products
- prometheus client_golang
Classification
References
-
github.com
/prometheus/client_golang/pull/962
web, patch, third-party-advisory
-
github.com
/prometheus/client_golang/pull/987
web, patch, third-party-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/FY3N7H6VSDZM37B4SKM2PFFCUWU7QYWN/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/ZKORFJTRRDJCWBTJPISKKCVMMMJBIRLG/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/AK7CJBCGERCRXYUR2EWDSSDVAQMTAZGX/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/SASRKYHT5ZFSVMJUQUG3UAEQRJYGJKAR/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/KBMVIQFKQDSSTHVVJWJ4QH6TW3JVB7XZ/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/7V7I72LSQ3IET3QJR6QPAVGJZ4CBDLN5/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/HLAQRRGNSO5MYCPAXGPH2OCSHOGHSQMQ/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/2PFW6Q2LXXWTFRTMTRN4ZGADFRQPKJ3D/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/J5WPM42UR6XIBQNQPNQHM32X7S4LJTRX/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/4KDETHL5XCT6RZN2BBNOCEXRZ2W3SFU3/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/36GUEPA5TPSC57DZTPYPBL6T7UPQ2FRH/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/DLUJZV3HBP56ADXU6QH2V7RNYUPMVBXQ/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/2IK53GWZ475OQ6ENABKMJMTOBZG6LXUR/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/MH6ALXEQXIFQRQFNJ5Y2MJ5DFPIX76VN/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/ZY2SLWOQR4ZURQ7UBRZ7JIX6H6F5JHJR/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/RN7JGC2LVHPEGSJYODFUV5FEKPBVG4D7/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/5OGNAFVXSMTTT2UPH6CS3IH6L3KM42Q7/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/3L6GDN5S5QZSCFKWD3GKL2RDZQ6B4UWA/
vendor-advisory
-
github.com
/prometheus/client_golang/security/advisories/GHSA-cg3q-j54f-5p7p
web, issue-tracking, third-party-advisory
-
github.com
/prometheus/client_golang/releases/tag/v1.11.1
web, release-notes, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-21698
advisory
-
pkg.go.dev
/vuln/GO-2022-0322
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/ZY2SLWOQR4ZURQ7UBRZ7JIX6H6F5JHJR
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/ZKORFJTRRDJCWBTJPISKKCVMMMJBIRLG
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/SASRKYHT5ZFSVMJUQUG3UAEQRJYGJKAR
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/RN7JGC2LVHPEGSJYODFUV5FEKPBVG4D7
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/MH6ALXEQXIFQRQFNJ5Y2MJ5DFPIX76VN
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/KBMVIQFKQDSSTHVVJWJ4QH6TW3JVB7XZ
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/J5WPM42UR6XIBQNQPNQHM32X7S4LJTRX
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/HLAQRRGNSO5MYCPAXGPH2OCSHOGHSQMQ
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/FY3N7H6VSDZM37B4SKM2PFFCUWU7QYWN
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/DLUJZV3HBP56ADXU6QH2V7RNYUPMVBXQ
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/AK7CJBCGERCRXYUR2EWDSSDVAQMTAZGX
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/7V7I72LSQ3IET3QJR6QPAVGJZ4CBDLN5
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/5OGNAFVXSMTTT2UPH6CS3IH6L3KM42Q7
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/4KDETHL5XCT6RZN2BBNOCEXRZ2W3SFU3
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/3L6GDN5S5QZSCFKWD3GKL2RDZQ6B4UWA
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/36GUEPA5TPSC57DZTPYPBL6T7UPQ2FRH
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/2PFW6Q2LXXWTFRTMTRN4ZGADFRQPKJ3D
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/2IK53GWZ475OQ6ENABKMJMTOBZG6LXUR
web
-
github.com
/prometheus/client_golang
package
Sources
- CVE List CVE-2022-21698
- GitHub Advisory GHSA-cg3q-j54f-5p7p
- NVD CVE-2022-21698
- OSV GO-2022-0322
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.