Skip to content

CVE-2022-21698 Uncontrolled Resource Consumption in promhttp

HighCVSS 7.5 EPSS 6.0%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
UbuntuDebianNetwork Appliances

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.

Upgrade path

16 packages: 6 fixed, 8 with no fix yet.

PackageAffectedFixed inStatus
rdo project rdo All versions No fix listed No fix yet
ubuntu/golang-github-prometheus-client-golang(Ubuntu 18.04) = 0.8.0-1; = 0.8.0-2; All versions No fix listed No fix yet
ubuntu/golang-github-prometheus-client-golang(Ubuntu 20.04) = 0.9.2-0ubuntu3; All versions No fix listed No fix yet
ubuntu/golang-github-prometheus-client-golang(Ubuntu 22.04) = 1.9.0-2; = 1.11.0-3; All versions No fix listed No fix yet
ubuntu/golang-github-prometheus-client-golang(Ubuntu 24.04) = 1.16.0-4; = 1.17.0-2; = 1.18.0-2; = 1.18.0-3 +1 more No fix listed No fix yet
ubuntu/golang-github-prometheus-client-golang(Ubuntu 25.10) = 1.21.1-1; All versions No fix listed No fix yet
ubuntu/golang-github-prometheus-client-golang(Ubuntu 26.04) = 1.21.1-1; = 1.23.2-1ubuntu1; All versions No fix listed No fix yet
ubuntu/golang-github-prometheus-client-golang(Ubuntu 26.10) = 1.23.2-1ubuntu1; = 1.23.2-3; = 1.23.2-4; All versions No fix listed No fix yet
alpine/buildah(Alpine v3.15) < 1.23.4-r0 1.23.4-r0 Fixed
debian/golang-github-prometheus-client-golang(Debian 12) < 1.11.1-1 1.11.1-1 Fixed
debian/golang-github-prometheus-client-golang(Debian 13) < 1.11.1-1 1.11.1-1 Fixed
debian/golang-github-prometheus-client-golang(Debian 14) < 1.11.1-1 1.11.1-1 Fixed
prometheus github.com/prometheus/client_golang < 1.11.1; = < 1.11.1 1.11.1 Fixed
prometheus github.com/prometheus/client_golang(Go) < 1.11.1 1.11.1 Fixed
fedoraproject extra packages for enterprise linux = 7.0; = 8.0 No fix listed Versions listed
fedoraproject fedora = 34; = 35; = 36; = 37 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
prometheus github.com/prometheus/client_golang(Go) < 1.11.1 1.11.1
prometheus github.com/prometheus/client_golang = < 1.11.1 No fix listed
ubuntu/golang-github-prometheus-client-golang(Ubuntu:22.04) All versions No fix listed
prometheus github.com/prometheus/client_golang < 1.11.1 1.11.1
fedoraproject fedora = 34 No fix listed
fedoraproject fedora = 35 No fix listed
fedoraproject fedora = 36 No fix listed
fedoraproject fedora = 37 No fix listed
fedoraproject extra packages for enterprise linux = 7.0 No fix listed
fedoraproject extra packages for enterprise linux = 8.0 No fix listed
rdo project rdo All versions No fix listed
ubuntu/golang-github-prometheus-client-golang(Ubuntu:24.04) All versions No fix listed
ubuntu/golang-github-prometheus-client-golang(Ubuntu:26.04) All versions No fix listed
ubuntu/golang-github-prometheus-client-golang(Ubuntu:26.10) All versions No fix listed
debian/golang-github-prometheus-client-golang(Debian:12) < 1.11.1-1 1.11.1-1
debian/golang-github-prometheus-client-golang(Debian:14) < 1.11.1-1 1.11.1-1
debian/golang-github-prometheus-client-golang(Debian:13) < 1.11.1-1 1.11.1-1
ubuntu/golang-github-prometheus-client-golang(Ubuntu:18.04) All versions No fix listed
ubuntu/golang-github-prometheus-client-golang(Ubuntu:18.04) = 0.8.0-1 No fix listed
ubuntu/golang-github-prometheus-client-golang(Ubuntu:18.04) = 0.8.0-2 No fix listed
ubuntu/golang-github-prometheus-client-golang(Ubuntu:20.04) All versions No fix listed
ubuntu/golang-github-prometheus-client-golang(Ubuntu:20.04) = 0.9.2-0ubuntu3 No fix listed
ubuntu/golang-github-prometheus-client-golang(Ubuntu:22.04) = 1.9.0-2 No fix listed
ubuntu/golang-github-prometheus-client-golang(Ubuntu:22.04) = 1.11.0-3 No fix listed
ubuntu/golang-github-prometheus-client-golang(Ubuntu:24.04) = 1.16.0-4 No fix listed
Show 11 more
ProductAffected versionsFixed in
ubuntu/golang-github-prometheus-client-golang(Ubuntu:24.04) = 1.17.0-2 No fix listed
ubuntu/golang-github-prometheus-client-golang(Ubuntu:24.04) = 1.18.0-2 No fix listed
ubuntu/golang-github-prometheus-client-golang(Ubuntu:24.04) = 1.18.0-3 No fix listed
ubuntu/golang-github-prometheus-client-golang(Ubuntu:25.10) All versions No fix listed
ubuntu/golang-github-prometheus-client-golang(Ubuntu:25.10) = 1.21.1-1 No fix listed
ubuntu/golang-github-prometheus-client-golang(Ubuntu:26.10) = 1.23.2-1ubuntu1 No fix listed
ubuntu/golang-github-prometheus-client-golang(Ubuntu:26.10) = 1.23.2-3 No fix listed
ubuntu/golang-github-prometheus-client-golang(Ubuntu:26.10) = 1.23.2-4 No fix listed
ubuntu/golang-github-prometheus-client-golang(Ubuntu:26.04) = 1.21.1-1 No fix listed
ubuntu/golang-github-prometheus-client-golang(Ubuntu:26.04) = 1.23.2-1ubuntu1 No fix listed
alpine/buildah(Alpine:v3.15) < 1.23.4-r0 1.23.4-r0

References